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

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.

Reply
Anonymous
Not applicable

Category filter

Hello everyone,

 

I have the following data set structure:

 

NameCodeCategory
A1A
B2A
C3A / B
D4B
E5A
F6B

 

Now what I want to be able to do is the following:

Some names are category A aswell as B now I want to create a filter that allows me to filter on A or B but when I filter on A I also want to see all the records that are A / B and if I filter on B I want to see all the A / B values aswell. (in my real dataset there are more than 3 categories)

Does anyone have a suggestion on how I should approach this ?

Thanks in advance!

L.Meijdam

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Create a calculated table which is unrelated to source table. Add 'Selecte Table'[Name] into slicer.

select table = VALUES(Table3[Name])

4.PNG

 

Add below measure into visual level filter.

check measure = IF(ISERROR(FIND(SELECTEDVALUE('select table'[Name]),SELECTEDVALUE(Table3[Category]))),0,1)

1.PNG2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Create a calculated table which is unrelated to source table. Add 'Selecte Table'[Name] into slicer.

select table = VALUES(Table3[Name])

4.PNG

 

Add below measure into visual level filter.

check measure = IF(ISERROR(FIND(SELECTEDVALUE('select table'[Name]),SELECTEDVALUE(Table3[Category]))),0,1)

1.PNG2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yulgu-msft

 

Thanks for the suggestion, this method works for me and has solved my case!

 

Best regards,

L.Meijdam

dilumd
Solution Supplier
Solution Supplier

Hi @Anonymous

 

If your trying to have a table with this data, you can use "rData table" custom visual which has a lot of filtering options.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.