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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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