Forum Discussion
Visual level filtering for slicers
- 10 years ago
There is a hack for this ...
1. turn the visual into a bar chart
2. apply the visual level filter
3. turn the visual back into a slicer
Goal: 1 Slicer returning ALL rows matching DATE1 OR DATE2 with SELECTEDVALUE
Have 1 slicer where a min and max date range is selected and use that to filter such that ALL rows with DATE1 OR DATE2 are returned. Using two slicers returns only rows with DATE1 AND DATE2 which is why this is not the ideal scenario.
Example Details:
Table: CE (All relevant fields are in this table)
DATE1: CreatedTime
DATE2: caseclosedtime
DATE1 fully qualified reference: 'CE'[CreatedTime]
DATE2: fully qualified reference: 'CE'[caseclosedtime]
Steps
- Create a new Column
in the function bar replace
Column =
With
CreatedTimeOrCaseClosedTime = SELECTEDVALUE('CE'[CreatedTime],'CE'[caseclosedtime])
Now we have a column that contains a date and will return created date if it is selected in a slicer and if not will return closed date.
- Create a slicer
- Select a blank area of the page
- Select the slicer visual
- Drag the newly created column CreatedTimeOrCaseClosedTime into the empty Filter field
- Do something with it because you are done man. Lol