Forum Discussion
Anonymous
7 years agoNot applicable
Including or excluding rows
What is the best method for including/excluding rows that contain a certain value, filter or slicer? And how would that look? Here is some sample data. TASKTABLE Task Resource ...
- Anonymous7 years ago
Anonymous - Sorry, should be SUM(TASKTABLE[Hours]), so the measure should be:
Hours Measure = var _inclusive = IF( HASONEVALUE(Parameters[Include Admin]), IF( VALUES(Parameters[Include Admin]) = "Yes", "Inclusive", "Exclusive" ), "Inclusive" ) return CALCULATE( SUM(TASKTABLE[Hours]), FILTER( 'TASKTABLE', OR( _inclusive = "Inclusive", [Task] <> "Admin" ) ) )And then use this measure in the visual filter.
Anonymous
6 years agoNot applicable
Nathan,
One last question, since "Include Admin" is in the "Rows" section, the matrix sees it as one more level to drill down, but when you do, you get the "Can't determine the relationship" error. Is there a way to stop the drilldown before it hits that level?
Thanks,
David
Anonymous
6 years agoNot applicable
Anonymous -
I don't think you can - I was picturing "Include Admin" as a separate Slicer visual.