Hey
I have record table, and users table, I want add query table that bring the two table together and remove duplicated names and keep only the name has greater date
Thanks
Hey
I have record table, and users table, I want add query table that bring the two table together and remove duplicated names and keep only the name has greater date
Thanks
One way:
1. Load the Users table into PQ (Connection Only).
2. Load the Add Record table into PQ - group on name with aggregated column using Date (aggregate = MAX).
3. Merge the Add Record query with the Users query on the Name field.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Please try
let
![]()
Source = Table.NestedJoin( Excel.CurrentWorkbook(){[Name="Table2"]}[Content], {"name"}, Excel.CurrentWorkbook(){[Name="Table1"]}[Content], {"name"}, "Table1", JoinKind.LeftOuter), MaxDate = Table.AggregateTableColumn(Source, "Table1", {{"date", List.Max, "date"}}), ReorderedColumns = Table.ReorderColumns(MaxDate,{"name", "date", "age"}), #"Changed Type" = Table.TransformColumnTypes(ReorderedColumns,{{"date", type date}, {"name", type text}, {"age", Int64.Type}}) in #"Changed Type"
I was hoping that the OP would have a go himself without being handed a solution: he's had a lot of help on PQ so far and should have been able to follow my instructions.![]()
Thanks all, Yes Aligw I do, working!
Excellent - good news.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks