BoundedInANutshell
New Member
- Joined
- Nov 25, 2021
- Messages
- 7
- Office Version
- 365
- Platform
- Windows
Hi,
I have the following measure which is used to dynamically switch between counts and percentages (using a slicer). However, when it is displaying percentages and the matrix is filtered with other slicers, the percentage calculation still uses the overall total, not the reduced (filtered) total - thus the overall column doesn't total 100% I know I need to change the division part (which is wrapped in the FORMAT) but what do I change it to so that the percentage calculation uses the reduced (filtered) total ?
Any help would be greatly appreciated.
Many thanks, Jason
I have the following measure which is used to dynamically switch between counts and percentages (using a slicer). However, when it is displaying percentages and the matrix is filtered with other slicers, the percentage calculation still uses the overall total, not the reduced (filtered) total - thus the overall column doesn't total 100% I know I need to change the division part (which is wrapped in the FORMAT) but what do I change it to so that the percentage calculation uses the reduced (filtered) total ?
Any help would be greatly appreciated.
Many thanks, Jason
Rich (BB code):
PercentageViewToggle =
IF (
ISFILTERED ( 'SlicerDataViews'[View] ),
FORMAT( COUNT ( 'Enquiries'[RID] )
/ CALCULATE ( COUNT ( 'Enquiries'[RID] ), ALLEXCEPT ( 'Enquiries', 'Enquiries'[Enquiry Date] ) ),"0.0%"),
( COUNT ( 'Enquiries'[RID] )
))