Forum Discussion
hkrash0920
Helper I
8 years agoSubtotal 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 compa...
- 8 years ago
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] ) ) )
v-chuncz-msft
Community Support
8 years ago
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] ) )
)
- hkrash09208 years ago
Helper I
Thanks...It worked. Appreciate it.
- jessicarocha4 years ago
Helper IV
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 Partner Svc Code FY18 YTD TER Smith, Jane CAP $17,409 100% Jones, Joe CAP $207,531 100%
Desired Result:Eng Partner Svc Code FY18 YTD TER Smith, Jane CAP $17,409 4.66% Jones, Joe CAP $207,531 67.52%
Thank you so much in advance!
Kind regards,
Jéssica