Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi there,
i have a data table with columns ServiceDirectionCode and DateTo
I would like this data table to give me all the different ServiceDirectionCodes, and for the duplicate codes, I only want to keep the row with the latest DateTo.
Is this possible to do in the Query Editor?
Thanks,
Wes
Solved! Go to Solution.
Hi,
You may use the Group By feature and take the maximum of the DateTo column.
As @Ashish_Mathur suggsted, just have your records group on Code level with max aggregation on Date column.
Regards,
As @Ashish_Mathur suggsted, just have your records group on Code level with max aggregation on Date column.
Regards,
Hi,
You may use the Group By feature and take the maximum of the DateTo column.
User | Count |
---|---|
107 | |
87 | |
81 | |
76 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |