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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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