Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MAltounis2
Frequent Visitor

Dyanmic List of all Applied Filters in PowerBI

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 🙂

1 ACCEPTED SOLUTION
eliasayyy
Super User
Super User

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)

)

 

&

 

...

 

 

View solution in original post

2 REPLIES 2
eliasayyy
Super User
Super User

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!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors