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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.