Forum Discussion
Apollo71
2 years agoNew Member
Group By Query
Hi, I am trying to create a Power BI form with the following data, but group by serial number and showing the latest service date and corresponding name of the engineer. Serial number Serv...
- 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
ryan_mayu
2 years agoSuper User
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