Forum Discussion

Potterismagik's avatar
Potterismagik
Regular Visitor
6 years ago
Solved

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)
  • Ashish_Mathur's avatar
    Ashish_Mathur
    6 years ago

    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.

6 Replies

  • dax's avatar
    dax
    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.

    • Potterismagik's avatar
      Potterismagik
      Regular Visitor

      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 !

       

       

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        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.