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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Top N + Others - Using RANK

Dears,

 

I have one table where i need to create a Top N + Others using two collumns, there is a Project and a Cost collum. i´ve create a rank using this two values and now i want to create a measure using IF parameter to create get the first 20 itens in the Rank measure as 'Top N' and all other as 'Others'

To do that i am using the following code :


Group2 = IF([rank]<=20,"TopN","Others")

But when i try to run this measure i get an error as image below

Error1.PNG

 

 

 

 

 

I modified the command just to check if the error disapear, when i replaced 20 to 20,0, the error gone.
Error2.PNG

But using 20,0 i cant get what is TopN and what is others, all the values will be considered as Others.

After that, if i can get the TopN and Other, i will apply a What If Parameters

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.