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
John_Peter
Regular Visitor

Percentage Total calculation

Hi Power BI,


I have a matrix with a column of%, it seems that the grand total of this column is the sum of the column, how can I do to make the% only at the level of the Grand Total?

 

For example if I take line 1 the calculation of Gross $ is
Gross $ = (Sales [Sales] -Sales [Gross_Cost]) + (Sales [Sales] * Sales [Customs_Rate]) + (Sales [Sales] * Sales [Cust_Disc])

 

But the calculation of the grand total for Gross % is not OK,

Gross% = DIVIDE (Sales [Gross $], Sales [Sales], 0)

he should have been
(1343.59 / 1940.20) = 69% and not 793.83%

 

2020-03-03_15-40-07.png

 

Probably it’s very simple but I’ve been trying to understand for too long,

Thanks in advance 🙂

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

It looks like these are calculated columns rather than measures. If so, this is the opposite of what 99% of people complain about powerbi totals (The values are being added up).

If Gross% is written as a measure, I think you'll get what you want.  Obviously I can't see your source data so that's a semi-educated guess.

View solution in original post

7 REPLIES 7
v-kelly-msft
Community Support
Community Support

Hi @John_Peter

 

Use the following measure :

 

Gross %=DIVIDE (SUM(Sales [Gross $]), SUM(Sales [Sales]), 0)

 

 

Best Regards,
Kelly
 
Did I answer your question? Mark my post as a solution!

 

HotChilli
Super User
Super User

It looks like these are calculated columns rather than measures. If so, this is the opposite of what 99% of people complain about powerbi totals (The values are being added up).

If Gross% is written as a measure, I think you'll get what you want.  Obviously I can't see your source data so that's a semi-educated guess.

I am having the same issue.  However, I am using a measure.  Do i have to make it a calculated column? Below is my Measure.

 
Utilization = (sum(DirectLabor[ActualHours])+(CALCULATE(InDirect[Set Up]/3)))/CALCULATE([Avail])

 

 

Hi @dkresge 

 

My Percentage is a Measure

 

Gross% = DIVIDE(SUM(Ventes[Gross$]),SUM(Ventes[Sales]),0)
 
Gross$ is a calculated Columns and Ventes[Sales] is a Column

John,

Did you get a resolution so your total as a sum and not calculating correctly?

Thanks,

 

Then i will change the column to a Calculated columns 😀

Hi @John_Peter ,

 

Is your issue solved?Can you make it as answered to close it?

 

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

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.