Forum Discussion
kmes40505
7 years agoFrequent Visitor
ALLSELECTED with specific column
I'm using multiple slicers. The goal is to select a subtable of one slicer out of the original whole data(not affected by other slicers if the user use any of them)
ALLSELECTED('table'[targetColumn]) doesn't work since this would still be affected by the other slicers
kmes40505 your measure should be
TotalCount = CALCULATE(SUM(Sheet1[count]),ALLEXCEPT(Sheet1, Sheet1[targetSlicer]))
7 Replies
- kmes40505Frequent Visitor
the actual code i use is this:
(all of the following are measure)
totalCount = CALCULATE(SUM('table'[count]),ALLSELECTED('table'[targetSlicer]))and later on i want to test for percentage of other slicer(individually) out of the targetSlicerTotalPercentage = SUM('table'[count]) / [totalCount]but i found out totalCount changes whenever i select other slicer. which should not happen