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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Nicholas_B
New Member

Multiple Filters for Columns with Multiple Items

I made a post yesterday about a similar issue and while the solution worked for my example, it did not work for my overall project. So I have made another example more similar to my actual project. 

 

I am having an issue creating filters for columns that have multiple items in them, my dashboard looks like this: 

1.PNG

Currently I have two working filters for department and office that are also able to filter together (i.e. can use both simulatenously to filter further). I am having trouble creating two more filters for columns with multiple items in them. I would like to have filters where in this example, I click on Wednesday and everyone who has Wednesday anywhere in their day preference would be filtered, the same with color.  I would also like these filters to work with each other and the two other filters that are functioning correctly.

 

I have tried splitting the columns by delimeter into separate columns, however this makes it so my filter would only be able to filter one of those new created columns. I have also tried splitting the columns by delimeter into rows, but that leaves me multiple entries for the same line item. 

 

Is this possible to do in another way?

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @Nicholas_B ,

 

This is my test table:

vyadongfmsft_0-1670390810069.png

 

Duplicate two tables ( used to create slicers):

vyadongfmsft_1-1670390895812.png

 

Remove other columns and rename for them:

vyadongfmsft_6-1670391610762.png

 

Split columns. Enter "," & space, because I noticed that there are spaces in your column.

vyadongfmsft_2-1670391191756.png

 

Remove duplicates

vyadongfmsft_4-1670391553239.png

 

You will get a table like this:

vyadongfmsft_8-1670391737885.png

 

Same steps for the other table:

vyadongfmsft_7-1670391725811.png

 

M code for your reference:

let
    #"Promoted Headers" = Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true]),
    #"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"Name", type text}, {"Party Day Preference", type text}, {"Decoration Color Preference", type text}}),
    #"Removed Other Columns" = Table.SelectColumns(#"Changed Type1",{"Party Day Preference"}),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Removed Other Columns", {{"Party Day Preference", Splitter.SplitTextByDelimiter(", ", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Party Day Preference"),
    #"Changed Type2" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Party Day Preference", type text}}),
    #"Removed Duplicates" = Table.Distinct(#"Changed Type2")
in
    #"Removed Duplicates"

 

Close and apply to desktop.

 

Create two measures:

Week = IF(CONTAINSSTRINGEXACT(MAX('Table'[Party Day Preference]),SELECTEDVALUE('Party Day Preference'[Party Day Preference])),1,0)

Color = IF(CONTAINSSTRINGEXACT(MAX('Table'[Decoration Color Preference]),SELECTEDVALUE('Decoration Color Preference'[Decoration Color Preference])),1,0)

 

Add measures to table visual filter pane:

vyadongfmsft_9-1670392055449.png

I think this is the result you want:

 

vyadongfmsft_10-1670392127568.png

vyadongfmsft_11-1670392154533.png

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors