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
K4rL0L
Advocate II
Advocate II

DAX ABC Analysis

Hey,

I used https://www.daxpatterns.com/abc-classification-dynamic/ to build the ABC analysis.
I am working with customers and sales. The analysis works but is not exact. Out of 953 users 8 are missing and their sales too.
The rows missing are seemingly random or maybe are saved next to each other on the hard drives, don't know. But they don't have a connection to each other in any other way (Customer, Salesamount, Sale day, sale month, product... ).
The data ist just about the last 3 years and even then not even a million rows. With a slicer i am viewing different years and the numbers missing change from year to year, but they are always the same customers and sales.
Does anyone have an idea why they are missing?

 

ABCUmsatz =

CALCULATE(
    [Gesamtumsatz];
    VALUES(rpt_VK_Historie[KNDNR]);
    FILTER(
        CALCULATETABLE(
            ADDCOLUMNS(
                ADDCOLUMNS(
                    VALUES(rpt_VK_Historie[KNDNR]);
                    "Äußerer Wert"; [Gesamtumsatz]
                                         );
                                   "ZusammengefügterUmsatzProzent"; DIVIDE(
                                   SUMX(
                                             FILTER(
                                                        ADDCOLUMNS(
                                                                                  VALUES(rpt_VK_Historie[KNDNR]);
                                                                                 "Innerer Wert"; [Gesamtumsatz]
                                                                                );
                                                       [Innerer Wert] >= [Äußerer Wert]
                                                       );
                                          [Innerer Wert]
                                          );
                            CALCULATE(
                                                [Gesamtumsatz];
                                                VALUES(rpt_VK_Historie[KNDNR])
                                               )
                                   )
                              );
              ALL(rpt_VK_Historie)
              );
            [ZusammengefügterUmsatzProzent] > [MinUntereGrenze]
            && [ZusammengefügterUmsatzProzent] <= [MaxObereGrenze]
    )
)




Thanks for your help 🙂

2 REPLIES 2
K4rL0L
Advocate II
Advocate II

Ok i figured it out. Now i am using Customer groups and Sales. For some reason that works correctly. And if i need the customers it is no problem to just display those out of  the customergroups.

Nevermind. The values are corrct again but if a customer is in group A B or C depends now on which customers group he is in. Not exactly what i was looking for.

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.