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
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
Super User
Super User

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


@ 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.