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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
alloja
Frequent Visitor

Clarification on Total Calculation (Columns)

Hello,

I find it hard to understand.
See the screenshot:

alloja_0-1721824973381.png

CombiExo =
IF(MAX('Liste Energie'[famille.energie]) = "Polluant", [PAx€CV] * [Valeur exo_polluant],
IF(MAX('Liste Energie'[famille.energie]) = "Hybride", [PAx€CV] * [Valeur exo_hybride],
[PAx€CV] * [Valeur exo_propre]))
 

I've already used SUMX, and the result is the same.

The total is calculated: 120 M * 10% (exo_propre) = 12M but I'd like the total to add up in the column as 97,71M + 9,27M + 0,38M.

 

I'm a beginner. Thanks for your help.

1 ACCEPTED SOLUTION
Sergii24
Super User
Super User

Hi @alloja, the answer to your problem lays in the concept of "Row context". 

 

If you're new to PowerBI, make sure to decicate some time for learning concepts in this playlist - DAX 101 from SQLBI. Especially these 2: https://youtu.be/Nm9x83J-SBk?si=oVVd3_lFypu_tzxI and https://youtu.be/lX2ztEh3tuA?si=zLq5dT3GG6KggNCq. It will save you dozens of hours later, believe me 😉

Good luck!

View solution in original post

1 REPLY 1
Sergii24
Super User
Super User

Hi @alloja, the answer to your problem lays in the concept of "Row context". 

 

If you're new to PowerBI, make sure to decicate some time for learning concepts in this playlist - DAX 101 from SQLBI. Especially these 2: https://youtu.be/Nm9x83J-SBk?si=oVVd3_lFypu_tzxI and https://youtu.be/lX2ztEh3tuA?si=zLq5dT3GG6KggNCq. It will save you dozens of hours later, believe me 😉

Good luck!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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