Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
22 | |
12 | |
8 |
User | Count |
---|---|
76 | |
50 | |
46 | |
16 | |
12 |