Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I need help with writing DAX for showing all applied filters which i will then later use in a table format to display. I have seen numerous ways online via Dax Studio but my company doesn't allow for the download of external applications. i have 9 specific filters under the following names from a table called 'Base_Data':
Age, Specialism, Gender, Deceased, Ethnicity, Workflow Step Type, Responsible Team ,Assigned Worker, Quadrant
I wanted it to basically show only the filters that have been applied but most importantly, if more than 1 selection from a specific filter has been applied i.e. selecting the ages of 25,26,27,28, it should show all of these in the overall filters table created instead of only showing 1 selection.
Thank you 🙂
Solved! Go to Solution.
Show filters =
If(
Isfiltered('table'[age]),
VAR _f = filters('table'[age])
VAR _t = CONCATENATEX( _f , 'table'[age]," , ")
VAR _x = "Age = " & _t
RETURN
_x & UNICHAR(13) & UNICHAR(10)
)
&
If(
Isfiltered('table'[gender]),
VAR _f = filters('table'[gender])
VAR _t = CONCATENATEX( _f , 'table'[gender]," , ")
VAR _x = "Gender = " & _t
RETURN
_x & UNICHAR(13) & UNICHAR(10)
)
&
...
Show filters =
If(
Isfiltered('table'[age]),
VAR _f = filters('table'[age])
VAR _t = CONCATENATEX( _f , 'table'[age]," , ")
VAR _x = "Age = " & _t
RETURN
_x & UNICHAR(13) & UNICHAR(10)
)
&
If(
Isfiltered('table'[gender]),
VAR _f = filters('table'[gender])
VAR _t = CONCATENATEX( _f , 'table'[gender]," , ")
VAR _x = "Gender = " & _t
RETURN
_x & UNICHAR(13) & UNICHAR(10)
)
&
...
Thank you! This worked perfectly!
User | Count |
---|---|
54 | |
23 | |
19 | |
18 | |
17 |
User | Count |
---|---|
91 | |
87 | |
47 | |
28 | |
22 |