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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Krcmajster
Helper IV
Helper IV

Multiselect filter as DAX

Hi All, 

 

I have 2 tables, they don't have a relationship but have unique identifiers and I would still like them to "work together", meaning I want visuals to be filtered if values are selected on other visual or filters. It's fine if I use SELECTEDVALUES or VALUES and item is selected but I have a problem when multiple items are selected.

 

Example:

if(VALUES(Table1[ID])=VALUES(Table2[ID]),"Include","Exclude")

 

but this will throw error if multiple items are selected

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Krcmajster ,

 

You may modify the measure like below:

Result =
IF ( VALUES ( Table1[ID] ) IN VALUES ( Table2[ID] ), "Include", "Exclude" )

Result =
IF ( VALUES ( Table1[ID] ) IN FILTERS ( Table2[ID] ), "Include", "Exclude" )

 

Community Support Team _ Jimmy Tao

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

Greg_Deckler
Community Champion
Community Champion

Try using the IN operator and I would ditch the VALUES.

 

https://community.powerbi.com/t5/Community-Blog/Soapbox-Series-Adding-No-VALUE-S/ba-p/1059818



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler How you suggest to formulate the measure? It doesn't matter what the output (integer, string, boolean) is as long as it I can add it as a filter to a visual

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.