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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

How to filter a Table USING IN Operator with the Values from another Table ?

Hi Team,

 

Good Day !

 

I'm trying to mimic this SQL script in dax powerbi 

 

SELECT * FROM TABLE1 WHERE TABLE1[ID] IN (SELECT TABLE2[ID] FROM TABLE2)

 

I'm trying to use filter and the IN operator however there is no prepared statement that I can use in Dax. Can you please help me achieve the same scenario. I prefer to do dax statement instead of doing it on the 'powerquery'

 

Thanks for your help in advance

 

Cheers!

1 ACCEPTED SOLUTION
vapid128
Solution Specialist
Solution Specialist

FILTER(TABLE1 , TABLE1[ID] in VALUES(TABLE2[ID]))

View solution in original post

2 REPLIES 2
vapid128
Solution Specialist
Solution Specialist

FILTER(TABLE1 , TABLE1[ID] in VALUES(TABLE2[ID]))
Anonymous
Not applicable

Thank you!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.