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

top n with others on matrix breaks

Hi there,

I follow the SQLBI blog

https://www.sqlbi.com/articles/showing-the-top-5-products-and-others-row/ (Fo1 TAB - the static one)

And when I added Year and Month to the columns in the matrix the top-5 breaks and show all products intead of 5 and others

My question is how to keep topN with others on matrix

(I've try regular Rankx and it works but not show the Others)

 

Thanks,

Ed Dror

 

 

1 ACCEPTED SOLUTION
eddror
Frequent Visitor

Got fix by adding remove filter to date dimension

View solution in original post

3 REPLIES 3
eddror
Frequent Visitor

Got fix by adding remove filter to date dimension

Ashish_Mathur
Super User
Super User

Hi,

This measure should work

=calculate([measure],top(5,all(Products[Product]),[measure]),values(Products[Product]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Ashish,

 

After I post I figure out how to fix it I added Removefilters on date dimension and it got fix.

Thanks,

Ed Dror

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.