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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Need Help Measure SUMX with worng Total

Hello dear Community,

 

Could you help me check why my total doesn't return the right result please?

From the column Potential $, I want to return the total and it should be 2477508 but my total from this cololumn is 2259259 (coming from 1.07*2104791).

 

Thanks a lot for your help.
Best regards,

 


This is my Measure: 

Measure Potential $ =

var avg_potential=[Volume]*[Average 3]

return

 

if(

HASONEVALUE(Plant[Unit]),

avg_potential,

SUMX(values('Table Plant[Unit]),avg_potential))

 

 
 
UnitVolumeAverage 3Potential $ 
A15255141,73908860 
A21614691,91309002 
A31215421,85225162 
A42072230,87181102 
A51096611,15126602 
A61446640,80115472 
A71374940,84115384 
A81187830,94111785 
A9815021,26102720 
A102122060,4493834 
A11882851,0390888 
A12788920,9071214 
A131175560,2225483 
 SumAverageSum 
Total21047911,072259259Wrong result from measure
 SumAverageSum 
Total21047911,072477508Right result
5 REPLIES 5
Anonymous
Not applicable

This is your measure:

[Measure Potential $] =
    SUMX(
        VALUES( 'Table Plant'[Unit] ),
        [Volume] * [Average 3]
    )

You have to remember that variables, once set, are STATIC.

 

Best

D

Anonymous
Not applicable

Hello @Anonymous , Thanks for the reply but it doesn't work either.

Still get the same result 😞

 

1.PNG2.PNG3.PNG

I am getting the correct result, looks like your multiplication in the origianl post is incorrect.

harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

Try this measure

 

Measure Potential $ =
VAR avg_potential = [Volume] * [Average 3]
RETURN
    IF (
        HASONEVALUE ( Plant[Unit] ),
        SUMX (
            'Table Plant',
            avg_potential
        ),
        SUMX (
            VALUES ( 'Table Plant'[Unit] ),
            avg_potential
        )
    )

 

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

 

 

Anonymous
Not applicable

Hi @harshnathani  , thanks for your reply but it unfortunately doesn't work.

I end up with the same result at the end 😞 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.