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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
nsy999
New Member

DAX query to compare a value in one table to see if it exists in another table

This may well have been asked before! I have one table (01) with 60K of model numbers (devices from a CMDB) with a FIELD called MODEL. I have a second table (02) with model numbers FIELD that meet a certain criteria (EPEAT Rating). I want a result that gives me a calculation of how many models in Table 01 meet the criteria in Table 2. For clarity (or confusion), there may be 60k of listed devices in Table 01 (but say only 300 dispatre devices); in Table 02 there are only 100 disparte devices ( some devices in Table 01 may not be in Table 2 - which is fine). 

 

The simple answer example, that I am after is as simple as, Devices Meeting Criteria = 58k, Devices NOT Meeting Criteria = 2k.

 

The overarching purpose is to find out how many devices we have that either meet or fail to meet an EPEAT Rating http://greenelectronicscouncil.org/epeat/epeat-overview/

 

Thanks. J

 

2 ACCEPTED SOLUTIONS
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@nsy999,

Create new table using DAX below, you can review details in attached PBIX file. If the DAX doesn't return your expected result, please share sample data of your tables and post expected result.

table3 = INTERSECT(Table2,Table1)

1.PNG

Regards,

Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Lydia, thank you. I will give that a go. J

View solution in original post

3 REPLIES 3
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@nsy999,

Create new table using DAX below, you can review details in attached PBIX file. If the DAX doesn't return your expected result, please share sample data of your tables and post expected result.

table3 = INTERSECT(Table2,Table1)

1.PNG

Regards,

Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Lydia, thank you. I will give that a go. J

That worked - thank you. J

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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