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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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