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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Potterismagik
Regular Visitor

STATIC Classification ABC

Hi,

 

I'm new to power BI and I'm trying to add ABC classification to my model.

 

I'd like this classification to be static and not dynamic :

- I want my ABC to stay the same, regardless of the filter on the report

 

I tried this methodology but the "EARLIER" function does not seem to work : https://www.daxpatterns.com/abc-classification/

Moreovre, I do not quite understand this part of the code : 

[CumulatedSales] =
CALCULATE (
    SUM ( Products[ProductSales] ),
    ALL ( Products ),
    Products[ProductSales] >= EARLIER ( Products[ProductSales] )
 
In my data model I have a product table and a sales table, I do not know how to interpret Products[ProductSales] as both are in a separate table for me
 
Thanks a lot for your help,
 
Antoine
 
(PS : The Dynamic ABC works really well)
1 ACCEPTED SOLUTION

Hi,

The only way to make it static is to write calculated column formulas.  I think it will be easier to solve this question by writing measures but that would make the classification dynamic.


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

View solution in original post

6 REPLIES 6
dax
Community Support
Community Support

Hi @Potterismagik , 

I am not clear about your requirement, if possible could you please inform me more detailed information(such as your expected output and your sample data (by OneDrive for Business))? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

I've upload this simple table :

 

https://easyupload.io/msazon

 

What I want is to classify in PowerBI all of my products based on the sales (pareto rule) (ABC classification).

My output is for every Product, I want to have a new classification  "A" / "B" or "C" .

Output example :

ProductTotal SalesCumulated SalesCumulated PercentageABC
A110010055%A
A25015083%B
A32017094%B
A410180100%C

To be calculated in Power BI

 

I also want it to be static : when I use a slicer in Power BI I do not want this ABC to be dynamically adjust.

 

Thanks for your help !

 

 

Hi,

The only way to make it static is to write calculated column formulas.  I think it will be easier to solve this question by writing measures but that would make the classification dynamic.


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

It works, thanks a lot 🙂

Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result in a simple table format.


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

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors