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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.