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
OlgaJoana
New Member

DAX measure not summarizing correctly

Hi all,

 

I created a measure which works fine on row level but not on total level.

This is my measure:

"

VAR _NUM = CALCULATE( [CP_RR_All Products], FILTER('Dim_Customer', 'Dim_Customer'[SalesNetworkCustomer_Name] = "Account Pure Player" || 'Dim_Customer'[SalesNetworkCustomer_Name] = "Account Specialized" ), FILTER('Dim_Product', 'Dim_Product'[Item type descr] = "FINISHED GOODS"), FILTER('Dim_Customer', 'Dim_Customer'[InternationalGroupName] <> "1.AMAZON"), FILTER('Dim_Product', 'CP_RR - Product List'[CP_List Products RR] = 1))
"
OlgaJoana_0-1686575692513.png

 

As you can see, the total at the end of 122201.89 is not correct.

 

Who can help?

 

Thank you!

1 ACCEPTED SOLUTION

Hi @OlgaJoana 

Please try

M2 CorrectTotal =
SUMX (
    CROSSJOIN (
        VALUES ( 'Date'[Year] ),
        VALUES ( 'Table'[SalesNetworkCustomer_Name] )
    ),
    [M2]
)

View solution in original post

7 REPLIES 7
OlgaJoana
New Member

The issue is now solved.

Thank your for your time and help Tamer

 

Have a nice day!

OlgaJoana
New Member

Hi,

Thank you for the tip, but it's not working...

Is there any possibility to have a call with you, so that I can easily explain what I need?

 

Thanks!

 

@OlgaJoana 

Please share a meeting link

tamerj1
Super User
Super User

Hi @OlgaJoana 

What column(s) do you have in the same table visual?

Hi,

 

The table is the following:

OlgaJoana_1-1686579345392.png

 

And I need to divide the "M2" by the "CP_RR_All Products" (the percentage result of this math is in the column "CP_Evaluation_RecoRange%" - for example, 3020.25 / 9010.42 = 34%). And this works by line, but not in the total level (as you can see 3020.25 + 750719.90 = 753740.15 and 753740.15 / 95792031.32 = 0.78% and not 19%)

 

Thnak you!

Hi @OlgaJoana 

Please try

M2 CorrectTotal =
SUMX (
    CROSSJOIN (
        VALUES ( 'Date'[Year] ),
        VALUES ( 'Table'[SalesNetworkCustomer_Name] )
    ),
    [M2]
)

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.