Forum Discussion
Maintaining Totals on Filtered columns
I am trying to run a percentage of total on a filtered drill down list. So on a column labeled 'Items' I would like a column next to it that is the percentage of the Total number of Items in all rows. Example below is filtered from 50 company names with Total number of Items of 400
Company Name Items %Items
aaaaa 4 1
bbbb 8 2
fffff 40 10
zzzzz 80 20
Total 132
It should be something along the lines of:
Measure = SUM([Items])/CALCULATE(SUM([Items]),ALL(Table))
Hi kosser32,
The measure to get percentage Greg_Deckler posted is right after check. Please mark the right reply as answer, so more people can get helpful information clearly. Welcome to share sample table and list expected result you have other issue, so that we can help you in details.
Thanks,
Angelia
2 Replies
- Greg_Deckler
Community Champion
It should be something along the lines of:
Measure = SUM([Items])/CALCULATE(SUM([Items]),ALL(Table))
- v-huizhn-msft
Microsoft Employee
Hi kosser32,
The measure to get percentage Greg_Deckler posted is right after check. Please mark the right reply as answer, so more people can get helpful information clearly. Welcome to share sample table and list expected result you have other issue, so that we can help you in details.
Thanks,
Angelia