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

How to filter on comma separated column

Hi.

 

Suppose I have sample data as this

ProductColor
Ared
Bred
Cblue
Dred,blue
Ered,blue
Fblue
Gblue

 

I would like the user to be able to filter by the color, red OR blue, not "red, blue". So if the user selects Red, A,B,D,E are filtered. Right now I'm not sure how to create a filter to do that. 


I see a similiar post which looks like it accomplishes what I want but is a bit hard to follow, https://community.fabric.microsoft.com/t5/Developer/Filter-on-comma-separated-multiselect-field/m-p/...

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, split the colour column by rows using the comma delimiter.  Click on Close and Apply.  Now create slicer/visuals.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
sa000
Frequent Visitor

This is great! Can you outline your steps so I can reproduce in my usecase?

to know how to do this watch my video

https://1drv.ms/v/s!AiUZ0Ws7G26RjVdgrQApbiyC-hcE?e=Ncv57v

sa000
Frequent Visitor

Thank you! This almost works except I can't do multi selection without an error? Is there a way to accomplish this

pls try this code

Screenshot_1.png

Ahmedx
Super User
Super User

pls try this

Screenshot_2.png

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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