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
Marac0105
Frequent Visitor

Top N

Hi all,

 

I have dataset (please see example) and trying to have a matrix which will show Top 10, Top 15, Top 25 customers, depending on slicer selection, ranked by Total amount column. I have an issue due to the fact that I have Other and Total rows, and in matrix Total should be sum of Totals from data set and Other should be variance of Total and sum of Top 10, Top 15, Top 25 (depending of the slicer selection).

2019-06-19 12_06_55-Book1 - Excel.jpg

Thanks in advance.

 

1 ACCEPTED SOLUTION

@Marac0105 

 

You may take a look at the following post.

https://community.powerbi.com/t5/Desktop/RANKX-excluding-blanks/m-p/397656#M181491

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @Marac0105 

To make it dynamic ie Top 10, Top 15 and top 25 it would have to be a Measure.

To make it display 1, 2, 3 ... 10 and Other it would have to be a Column.

You can not have both

 

Regards,
Mariusz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi@Mariusz 

Thanks for your reply.

I was planning to use RANKX for Top N. Final output that I want to achieve is something like table below

 

2019-06-19 12_36_33-Book1 - Excel.jpg

I am also planning to use TOP N.

Main trouble here is that Other and Total from dataset is also ranked and included in TOP N.

@Marac0105 

 

You may take a look at the following post.

https://community.powerbi.com/t5/Desktop/RANKX-excluding-blanks/m-p/397656#M181491

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.