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

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

Reply
mike_viz_lord
Frequent Visitor

Filter table if field contains value selected from another table

TableA

Submission IDSubmission State
1IL
2IL;NC
3NC
4ND;NC;IL

 

TableB

Policy IDPolicy State
1IL
2NC
3ND
4IL
5IL
6IL
7IL
8IL

 

TableC

State Abbreviations
NC
ND
IL

 

I have created a visual that displays the Distinct Count of Submission ID from TableA and a separate visual that displays the Distinct Count of Policy ID from TableB. That is easy enough, but I also need to allow the user to filter both viz's by State. In TableA, however, Submission State is stored in the following manner, for example: 

 

"ND;NC;IL"

 

TableB stores Policy State individually as expected with one State per row. I created an additional table, TableC, that contains all State Abbreviations. TableC.State Abbreviation is used as my slicer on the page. I would like both visuals to filter based on the slicer selection. The first table would need to filter based on some sort of CONTAINS function. For example, if the user selects "IL" in the slicer, they would get a value of 3 from the first visual and 6 for the second visual. I created a calc as follows:

 

State Selected = CONTAINSSTRING('TableA'[Submission State],SELECTEDVALUE('TableC'[State Abbreviation]))
 
I added State Selected as a filter on my first visual and set it to True. However, when I select a State from the slicer, nothing happens to the value displayed in the top visual. It continues to show the default value of 4 (Distinct Count of Submission ID).
 
My plan was to apply a similar filter to the second visual but can't get the first one working. Any ideas?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mike_viz_lord,

AFAIK, the slicer does not support advanced filter effects.

I think you can create a new table(not existed relationship to the raw table) as the source of the slicer, then you can write a measure formula with search/find function to apply filter effects and use it on your visual level filter.

Applying a measure filter in Power BI - SQLBI

If the above not help, you can share a sample pbix file to test.

Regards,
Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @mike_viz_lord,

AFAIK, the slicer does not support advanced filter effects.

I think you can create a new table(not existed relationship to the raw table) as the source of the slicer, then you can write a measure formula with search/find function to apply filter effects and use it on your visual level filter.

Applying a measure filter in Power BI - SQLBI

If the above not help, you can share a sample pbix file to test.

Regards,
Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.