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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

RANKX + Others without calculated column

Hi,

 

I have seen a lots of topics talking about it, but every time, it was about creating new tables or calculated columns ; I cannot.

I use DirectQuery mode, and I want to have a pie chart with Top 5 turnover and "Others" category represented.

 

I hope to have not missed the right topic, but here is this one.

 

I already have a rank measure which ranks the cities by turnover.

 

Thank you.

7 REPLIES 7
Anonymous
Not applicable

Try below measure,

Rank =
var a =RANKX(ALLSELECTED(Table1[Customer]),[Sales],,DESC,Dense)
var b =5 (As you want  top 5 you can make it dynamic also.... top N customers)
return
if(a<=b,1,0)
And add it in visual level filter and set is not 0.
This will give you top 5 Customers without creating any Column.
Anonymous
Not applicable

Thank you for your answer @Anonymous.

Will it gives me the "others" category?

Anonymous
Not applicable

share your sample dataset.

Anonymous
Not applicable

sorry it will not show others. let me try for others

Anonymous
Not applicable

I can't add an attachment to the message.

 

But here is some data:

CountryTurnover
USA100
CANADA200
AUSTRALIA300
GERMANY100
RUSSIA500
LITHUANIA600
UKRAINE400

 

The result should be:

error3.png

Anonymous
Not applicable

without column in not possible. you need to create calculated column.

Anonymous
Not applicable

Ok so no solution for me 😔 as I cannot create calculated columns.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors