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

Is it possible to do a top N1-10 customers vs brands matrix, with N11+ customers agregated to other?

Dear all,

 

I work for a alcohol / spirits company, at the moment I am trying to create a matrix table visualisation.

 

Desired column ordering - Top N1-10 customers with N11+ aggregated into an "other" line

Rows - these are the brands ideally ordered by biggest first but I think I can do this in the visualisation formatting

Matrix Values - this will be Actuals Vs Budget variance - which I currently have as a measure.

 

I am just wondering how to achieve the column ordering, if I make a calculated column using Rank will still work when people use the slicers e.g. on countries / regions?

 

Alternatively I was thinking of making 10 measures instead one for each N...but this would create a lot of measures, especially if I want to also do actuals vs PY

 

 

 

 

1 REPLY 1
Anonymous
Not applicable

First, a calculated column is STATIC, not dynamic. So, once you calculate the rank, it'll not respond to any filtering. Second, it's not DAX measure competence to create such a grouping. You have to have a visual that does it for you, that is, is able to get TopN customers and aggregate the rest into 'Others.' Of course, it's possible to write a DAX query that does it but it's a query, not a measure. Such a query should be written behind the scenes by a suitable visual.

 

Best

Darek

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