Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
benech
New Member

how to get top/flop 5 with multiple columns

Hi all

 

I have a table and I need to get TOP/FLOP 5 for a measure called 'perf' but for all columns not by group and I didn't find any answer yet. Hope someone can help!

I have three columns that need to be used, year, amount and score 

 

year      amount   score    perf  

2024       2K          12       8%

2023       1K          8         5%

2023       7K          5        -2%

2022       10K        3        -6%

2022       6K          1         2%

2024       15K         7         -1%

2024       5K          3         -7%

 

the expected result would be for the top5

 

year      amount   score    perf    rank 

2024       2K          12       8%      1

2023       1K          8         5%      2

2022       6K          1         2%      3

2024       15K         7        -1%     4

2023       7K          5        -2%      5 

 

Thanks a lot !! 🙂

1 ACCEPTED SOLUTION
qqqqqwwwweeerrr
Super User
Super User

Hi @benech 

 

you can create rank columns by using this measure:

Rank = RANKX(ALL('YourTableName'), [ColumnToRank], , DESC, Dense)

 

and use that in filter 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more interesting solution here: www.youtube.com/@Howtosolveprobem

Regards

 

View solution in original post

1 REPLY 1
qqqqqwwwweeerrr
Super User
Super User

Hi @benech 

 

you can create rank columns by using this measure:

Rank = RANKX(ALL('YourTableName'), [ColumnToRank], , DESC, Dense)

 

and use that in filter 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more interesting solution here: www.youtube.com/@Howtosolveprobem

Regards

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.