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
BarryFletcher
Helper III
Helper III

Compare Values in Master Table against several other tables

Hi all,

 

I have a table which has a column of equipment and each piece of equipment has a unieue tag number. I also have other tables which "should" contain all the values from within the master table. Is there an easy way I can get a list of the tag numbers that appear on the MasterTable that do not appear in the other tables?

 

So I have MasterTable with 100 rows, within the other 5 tables theses sould all add up to 100 rows with different vlaues in each.

 

Can I compare table1, table2, table 3 to the MasterTable and list the missing rows?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

Thanks for the solution 3CloudThomas offered, and i want to offer some more infotmation for user to refer to.

hello @BarryFletcher , you can refer to the following sample.

Sample data 

master

vxinruzhumsft_0-1724046229875.png

Table 1

vxinruzhumsft_1-1724046253398.png

 

Table 2

vxinruzhumsft_2-1724046265445.png

 

Create a measure

Missing_id =
VAR a =
    EXCEPT ( ALLSELECTED ( 'Table 1'[id] ), ALLSELECTED ( master[id] ) )
VAR b =
    EXCEPT ( ALLSELECTED ( 'Table 2'[id] ), ALLSELECTED ( master[id] ) )
VAR c =
    SUMMARIZE ( UNION ( a, b ), [id] )
RETURN
    CONCATENATEX ( c, [id], "," )

Output

vxinruzhumsft_3-1724046351942.png

Best Regards!

Yolo Zhu

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

2 REPLIES 2
Anonymous
Not applicable

Hi,

Thanks for the solution 3CloudThomas offered, and i want to offer some more infotmation for user to refer to.

hello @BarryFletcher , you can refer to the following sample.

Sample data 

master

vxinruzhumsft_0-1724046229875.png

Table 1

vxinruzhumsft_1-1724046253398.png

 

Table 2

vxinruzhumsft_2-1724046265445.png

 

Create a measure

Missing_id =
VAR a =
    EXCEPT ( ALLSELECTED ( 'Table 1'[id] ), ALLSELECTED ( master[id] ) )
VAR b =
    EXCEPT ( ALLSELECTED ( 'Table 2'[id] ), ALLSELECTED ( master[id] ) )
VAR c =
    SUMMARIZE ( UNION ( a, b ), [id] )
RETURN
    CONCATENATEX ( c, [id], "," )

Output

vxinruzhumsft_3-1724046351942.png

Best Regards!

Yolo Zhu

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

 

 

 

Anonymous
Not applicable

Merge the 5 tables together in PowerQuery (only the equipment Id to match master table). Then, get a distinct list of equipment Ids. Join to the Master table with a left anti joni and this will be a list of master table equipment id that does not exist in the 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.