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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
TungNguyen_19
Helper III
Helper III

How to calculate percentage correct in each Row level by Calculation Column in Matrix?

Hi everyone,

I stuck this problem when calculate the "% Margin" for each row level (please see detail in the picture below)

"Total Revenue" and "Profit/Loss" are calculation column and use Matrix to summary by all dimension for each row level.

Problem is only the last level is calculated percentage correctly. But the upper row level sum up every below rows rather than using the fomular to calculate percentage? 😓

 Ask.png

 The fomular is:

 

% of Margin = DIVIDE('3 LOAD FULL'[Profit/Loss],'3 LOAD FULL'[Total Revenue],0)

 

 I don't know what was wrong of my implementation. Please help me, thank you ❤️ 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@TungNguyen_19 , I am assuming these are measures other wise you need a measure like

 

% of Margin = DIVIDE(Sum('3 LOAD FULL'[Profit/Loss]),Sum('3 LOAD FULL'[Total Revenue],0) )

 

% of Margin needs to be a measure

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@TungNguyen_19 , I am assuming these are measures other wise you need a measure like

 

% of Margin = DIVIDE(Sum('3 LOAD FULL'[Profit/Loss]),Sum('3 LOAD FULL'[Total Revenue],0) )

 

% of Margin needs to be a measure

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

Thank you @amitchandak It's true, I need to use Measure rather than another Calculation Column. Thank you very much ❤️

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.

Top Solution Authors