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
anaxha
Frequent Visitor

1 value in 2 values in filter

Hello everyone, 

I have a problem. I have data similar to shown below (but many more):

Zrzut ekranu 2022-10-14 154819.png

Now I want to filter the data, so in filter I only want to see single values: A,B,C,D,X,Z,BVG and if I choose "B" I want to see the data for: "A,B", "B;C" and "B" (but not BVG) and if I click "A" I want to see the data for "A", "A,B" and "A,X,Z".

I tried text filters but problem is when I type "B" the data for "BVG" is also shown.

Is there any way it can be done?

Thank You in advance

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@anaxha , Refer the file attached after signature. Steps :

Create a table with this column in power Query - https://www.youtube.com/watch?v=kU2M1LmNvNo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=2

 

Then duplicate this column in new table and then split by delimiter into rows

Power Query Split Column, Split Column By Delimiter: https://youtu.be/FyO9Vmhcfag

 

In the model, view join this table with your original table , many to many join, filter direction from new table to your table

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@anaxha , Refer the file attached after signature. Steps :

Create a table with this column in power Query - https://www.youtube.com/watch?v=kU2M1LmNvNo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=2

 

Then duplicate this column in new table and then split by delimiter into rows

Power Query Split Column, Split Column By Delimiter: https://youtu.be/FyO9Vmhcfag

 

In the model, view join this table with your original table , many to many join, filter direction from new table to your table

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.