cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

DirectQuery Table Grand Total Percentage Calcaluation Incorrect

I cannot get the grand total percentage to calculate correctly.  I've searched this forum up and down and cannot find an answer that works.  This is a DirectQuery report.  Below are examples of the data I'm using. 

 

The First picture is the Power BI Table with no Grand Total Percentage, 2nd picture is Power BI table with Grand Total Sum Percentage, 3rd is a Sharepoint Dashboard currently in place that calculates grand total percentage correctly.

 

Pctg Column is built in a SQL query as a decimal, then converted into a percentage in Power BI.

 

Any help anyone could provide would be greatly appreciated!

 

James

 

 

No Total Percentage.JPGSum Total Percentage.JPG Sharepoint Dashboard Correct total Percentage.JPG

1 ACCEPTED SOLUTION
Microsoft
Microsoft

Hi @jhughes51,

 

That's because the grand total is just a total of all the percentages, which isn't the right way to calculate the grand total percentage. I would suggest you use a measure instead.

 

Measure =
DIVIDE ( SUM ( 'table'[RptTtl] ), SUM ( 'table'[Goal] ), 0 )

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Microsoft
Microsoft

Hi @jhughes51,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Microsoft
Microsoft

Hi @jhughes51,

 

That's because the grand total is just a total of all the percentages, which isn't the right way to calculate the grand total percentage. I would suggest you use a measure instead.

 

Measure =
DIVIDE ( SUM ( 'table'[RptTtl] ), SUM ( 'table'[Goal] ), 0 )

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Formula worked perfectly, thanks for your help!

 

James

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session Drive Data Culture with Power BI: Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors