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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.