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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cn4422
Helper V
Helper V

Slicer for Multiple-Choice Values

Hi,

I have a fact table containing values from a website form where multiple choices are possible.

My goal was to create a dimension table and use it as a slicer. However, it only works with exact matches and not with contains. This means that if I select "1" in the slicer, only the exact "1" values from the fact-table are filtered, while entries like "1,2" or "1,3" are excluded.

If anyone has an idea on how to solve this issue, it would be much appreciated! 🙂

 

 multiple_choice_slicer.png

1 ACCEPTED SOLUTION

Hi @cn4422 , Thank you for reaching out to the Microsoft Community Forum.

 

You don’t need to split the main fact table directly. Instead, create a reference table from it in Power Query, keep only the record ID and the multi-choice column. Then split that column by commas into rows, so each choice becomes its own row. This new table acts as a bridge between your fact table and the dimension table (link ID -> fact and choice value -> dimension). Now your slicer from the dimension table will correctly filter all rows that contain the selected value, even when it’s part of a comma-separated list.

View solution in original post

14 REPLIES 14
v-hashadapu
Community Support
Community Support

Hi @cn4422 , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.

Hi @v-hashadapu ,

thanks for your message.

I'll hopefully be testing the suggested approaches tomorrow and will then gladly post an update on how it went. 😊

Hi @cn4422 , Thanks for the update. Please do share the results once you have had the chance to test it.

Rufyda
Memorable Member
Memorable Member

Split the multi-choice column into rows in Power Query:

Duplicate the column.

Split by delimiter (comma) → Split into rows.

Use this new column in your slicer.
Use PATHCONTAINS() with a measure if you cannot split the column.

If this helps, please mark as Accepted Solution and drop a "Kudos"

@Rufyda Thanks for your reply!
Do I need to make a new reference table first? (or directly start  with "duplicate the column in the fact table?)

 

I probably should have mentioned, that in the fact table there are other columns as well.

Hi @cn4422 , Thank you for reaching out to the Microsoft Community Forum.

 

You don’t need to split the main fact table directly. Instead, create a reference table from it in Power Query, keep only the record ID and the multi-choice column. Then split that column by commas into rows, so each choice becomes its own row. This new table acts as a bridge between your fact table and the dimension table (link ID -> fact and choice value -> dimension). Now your slicer from the dimension table will correctly filter all rows that contain the selected value, even when it’s part of a comma-separated list.

ryan_mayu
Super User
Super User

@cn4422 

here is a workaround for you,

 

create a duplicated column for fact table and split by comma to rows.

 

then create a measure and add that measure to visual filter and set to 1.

11.png

Pls see the attahment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




HI @ryan_mayu ,

 

thanks for your reply!

 

In the fact table, there are other columns as well - isn't this problematic if they all get additonal rows?

 

I probably should have mentioned, that in the fact table there are other columns as well.

@cn4422  I am not sure if other columns will affect this solution or not. Depends on what's the expected output that you want. Pls update the sample data and expected output.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@ryan_mayu thanks again for your help.

In the end, I created a bridge-table so that the orignal table wouldn't be expanded in terms of additional rows.

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Ashish_Mathur
Super User
Super User

Hi,

Create the dim table by removing duplicates from the multiple choice answer column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Change your commas to pipe. Then use PATHCONTAINS in your measure that you use as the visual filter.

Hi @lbendlin,

 

thanks for your reply!

 

I tried the approach with "PATHCONTAINS" but I didn't succed.

 

I tried two measures

 

Product_Selector =
VAR SelectedID = SELECTEDVALUE('dimProduktauswahl'[Produktauswahl])
RETURN
IF(
PATHCONTAINS('lead'[Produktauswahl_Pipe], SelectedID & ""),
1,
0
)

 

and

 

Product_Selector =
VAR SelectedID =
SELECTEDVALUE('dimProduktauswahl'[Produktauswahl])
RETURN
IF(
PATHCONTAINS(
PATH('lead'[pre_product_selection_pipe]),
SelectedID & ""
),
1,
0
)

 

but couldn't get it to work since with "PATH" I could only select measures and not my other tables.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.