Forum Discussion
Group By Query
- 2 years ago
here is a workaround for you
try to create a rank column
= Table.AddColumn(#"Changed Type","Rank",each Table.RowCount(Table.Distinct(Table.SelectRows(#"Changed Type",(x)=>x[SD]>[SD] and x[SN]=[SN]),"SD"))+1)
then filter rank =1
at last you can delete rank column
pls see the attachment below
Hi Apollo71 ,
ryan_mayu Good answer!
And if you must want to use Group by, you can try this way:
First, Duplicate the Table:
In the new table Table(2), use Group by:
Then in the Table(2), click Merge Queries as New:
Configure as shown in the following figure:
Match the Serial number column of the two tables, and have the Max and Service Date columns match.
The output is as below:
Click here to expand the Table column:
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.