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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Roseventura
Responsive Resident
Responsive Resident

Calculating Correct Totals on Percentage Column in Table

Hi there.

 

I'm have a problem that is similar to this issue:

 

                   http://community.powerbi.com/t5/Desktop/Totals-on-Percentages-in-Tables/m-p/53088

 

The solution in this issue was to use a measure.  However, I'm using a measure and it's still not calculating the correct total.  The correct % total should be 28.6%.

 

Here is my table:


Capture1.JPG

 

My measure is this:

 

FCST GP % by Div =
CALCULATE (
    SUM ( PBI_NICBudget_Multi[FCST GP%] ),
    USERELATIONSHIP ( Company[Company], PBI_NICBudget_Multi[COMPANY] )
)

 

Should I be using a DAX formula OTHER than SUM() for percentages? 

 

NOTE:  I renamed the heading in the table, from "FCST GP % by Div" to "FCST GP %" to simplify it.

 

Thanks,  Rose

 

1 ACCEPTED SOLUTION

I discovered what was wrong:

 

The field FCST GP% is in the fact table.  By using this field instead of creating a measure that produces the same result, it will always SUM at the bottom as Phil mentioned above.

 

I solved this by NOT using that field and creating a new measure that calculates the Forecast GP% (FCST GP$ / FCST $).  This calculated the percentage and also displays the correct percentage at the bottom.

 

 Capture.JPG

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi @Roseventura,

 

Share the link from where i can download your file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I discovered what was wrong:

 

The field FCST GP% is in the fact table.  By using this field instead of creating a measure that produces the same result, it will always SUM at the bottom as Phil mentioned above.

 

I solved this by NOT using that field and creating a new measure that calculates the Forecast GP% (FCST GP$ / FCST $).  This calculated the percentage and also displays the correct percentage at the bottom.

 

 Capture.JPG

Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @Roseventura

 

It looks like your total is doing exactly what your formula is asking it to do, to simply SUM the values above it.

 

How do you arrive at the result for your percentage?  Do you have a calculation somewhere else that does a division to produce the 28.6%


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors