The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
trying to get 10 Most/least booked spaces, from a building desk booking table. I tried to do ranking and select top/bottom 10 from the list, but the ranking logic does not work properly, when it has the same duration total (when it's a tie).
For Top10, expecting it to return only the top 5 results (the ranking should be sequential and unique).
measures,
Any help or suggestions please?
Solved! Go to Solution.
Hi @Anonymous ,
1, First, add a grouping and sum column in Power Query (Equivalent to the measure [TableTotalDuration].)
2, Sort the column created in the first step.
3, Add an Index column.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
1, First, add a grouping and sum column in Power Query (Equivalent to the measure [TableTotalDuration].)
2, Sort the column created in the first step.
3, Add an Index column.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.