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

Calculating ABC over different product categories

 Hey Power BI Community! 

 

I'm trying to calculate ABC classification for items over different product categories. I've already solved the ABC calculation when I'm working at SKU level (Scenario 1) using this tutorial (https://www.daxpatterns.com/abc-classification/). But there I'm mixing all the product categories and we'd like to see the ABC for each product category or even the ABC for each category and sale store. 

 

I'm having troubles with the DAX formulas in this case. I'd like to get the cumulated percentages, and hence, the ABC calculations by product family as in Scenario 2.

 

Any ideas here please? 

 

 ABC question.png 

 

 

1 REPLY 1
Greg_Deckler
Super User
Super User

@realexander- I've been taking a look at this and I've been thinking about an ABC measure for quite a bit. Problem that I see is that there is no way to dynamically sort a temp table in a DAX variable that I can find. I believe this would be needed to dynamically do an ABC calculation like what you are trying to do. So, I believe at this point that you would need to create a "static" calculated table for each ABC analysis that you want to do, sort it and then put in your calculated columns. Not optimal. I've reached out to a few folks on this and will post back here if I find out some trick for this.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.