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
hkrash0920
Helper I
Helper I

Subtotal Percentages

Hi...I am trying to get the percentage of sub totals. See the below Excel file. For example for Jane Smith, we have percentages for CAP, RD, RER, and S199 which shows the percentage that CAP is compared to the subtotal for Jane Smith of $373,680. The formula I have in Excel is for CAP is $17,409 / $373,680 = 4.66% or for RD is $220,828 / $373,680 = 59.10%. Any ideas on how I do this in Power BI?

 

Thanks

 

 

Eng PartnerSvc CodeFY18 YTD TER 
Smith, JaneCAP$17,4094.66%
Smith, JaneRD$220,82859.10%
Smith, JaneRER$47,43312.69%
Smith, JaneS199$88,01023.55%
 Total$373,680  
Jones, JoeCAP$207,53167.52%
Jones, JoeINV$14,7344.79%
Jones, JoeME$11,4683.73%
Jones, JoeRER$10,8603.53%
Jones, JoeS174$5,4401.77%
Jones, JoeS199$56,66718.44%
Jones, JoeTCA$6460.21%
 Total$307,346  
 Grand Total$681,026  
1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@hkrash0920,

 

You may add a measure as shown below.

Measure =
DIVIDE (
    SUM ( Table1[FY18 YTD TER] ),
    CALCULATE ( SUM ( Table1[FY18 YTD TER] ), ALLSELECTED ( Table1[Svc Code] ) )
)
Community Support Team _ Sam Zha
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

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@hkrash0920,

 

You may add a measure as shown below.

Measure =
DIVIDE (
    SUM ( Table1[FY18 YTD TER] ),
    CALCULATE ( SUM ( Table1[FY18 YTD TER] ), ALLSELECTED ( Table1[Svc Code] ) )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft 

Thank you for your reply. It also helped me. 
Would it be possible to keep these values fixed when the user uses the slicer to filter by "Svc Code" ? 
Because at the moment, in this case, the percentage becomes 100%.

Example: User filter per "CAP"

Current Result:

Eng PartnerSvc CodeFY18 YTD TER 
Smith, JaneCAP$17,409100%
Jones, JoeCAP$207,531100%


Desired Result:

Eng PartnerSvc CodeFY18 YTD TER 
Smith, JaneCAP$17,4094.66%
Jones, JoeCAP$207,53167.52%


Thank you so much in advance!

Kind regards, 
Jéssica

Thanks...It worked. Appreciate it.

 

 

Anonymous
Not applicable

Dear @hkrash0920,

 

Incase of keeping the original Value, just clone new measure column and using using "Show value as > Percent of column Total".

 

 

image.png

 

 

Regards,

ManNVSM.

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.