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
LeahZhang
Microsoft Employee
Microsoft Employee

SUMX Calculation

 

Dear Team, 

 

Thanks for your prompt and continious support.

I am fresh new to DAX, and seek team advise on the below mismatch:

 

Two Measure Are:

totalScore #1 =
SUMX ( VALUES ( 'Config -1'[Emission Factor]),'Key Measure'[Emission Factor]*'Key Measure'[Input])
 
totalScore #2 =
SUMX ( VALUES ( 'Config-1Data'[真实历史数据.Plant]),'Key Measure'[Emission Factor]*'Key Measure'[Input])
 
CO2 is a calculation column:
CO2 = 'Config-1Data'[真实历史数据.Input Data] * 'Config-1Data'[Emission Factor]
 
but the value in {Total} are mismatch. Hope team can support to figure it out. Thanks in advance.

 

LeahZhang_1-1647937784289.png

 

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Try:

totalscore =
SUMX (
    ADDCOLUMNS (
        SUMMARIZE ( Table, Table[GHG item], Table[Plant] ),
        "TScore", [Emission Factor] * [Input]
    ),
    [Tscore]
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

Try:

totalscore =
SUMX (
    ADDCOLUMNS (
        SUMMARIZE ( Table, Table[GHG item], Table[Plant] ),
        "TScore", [Emission Factor] * [Input]
    ),
    [Tscore]
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






amitchandak
Super User
Super User

@LeahZhang , Ideally multiplcation should happen at rows level like column or measure like

 

new column = [A]* [B]

new measure = sumx(Table, [A]*[B])

 

If we need to multiply two measures, not from the same table then you should most granular level using values or summarize(more than one column)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.