Forum Discussion
pawelk3
5 years agoHelper I
Slicer AND logic
Hi, I have a dataset like below (example): On the dashboard I want to have two identical tables that will be filtered with one slicer ('Skill' column used) with several options to ch...
- 5 years ago
See if this works for you.
First, the model:
Then create a measure to use in the filter pane of the table/matrix:
Filter measure = VAR skills = CALCULATE(COUNTROWS(ALLSELECTED('DIM Skill'[Skill]))) VAR Position = SUMX( SUMMARIZE('Fact Table', 'Dim Position'[Position], 'DIM Skill'[Skill], 'Dim Priority'[Priority]), CALCULATE(DISTINCTCOUNT('Fact Table'[Skill]), ALLEXCEPT('Fact Table', 'Dim Position'[Position], 'Dim Priority'[Priority]))) RETURN IF(skills = 1, 1, IF(skills = Position, 1))And you get this result:
I've included the sample PBIX for your reference
pawelk3
5 years agoHelper I
Hi dedelman_clng, here is the link to .pbix file.
dedelman_clng
5 years agoCommunity Champion
Hi pawelk3 - this blog post was pointed out to me. I haven't worked through it yet, but if you wanted to give it a shot go ahead
https://community.powerbi.com/t5/Quick-Measures-Gallery/Patient-Cohort-AND-Slicer/m-p/391883#M130
David