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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Matt_Longworth
New Member

Compare values in 2 tables sets and display the difference

Hi guys.

 

I am doing a excel master sheet which has all the Users names, emails, AD info in it and also has their Device info.

 

I have managed to collect all the info from power query but now am struggling on how to report this all.

 

Im wanting to create a table which has differences in it like the AD has a name but the master sheet hasnt been updated with this info.

 

I have the relationship going for it so I can click a name on the master sheet and it shows on the table beside it but I know there are names missing because I have purposefully left them out.

 

I tried to figure it out by using ths post https://community.powerbi.com/t5/Desktop/Compare-two-tables-and-display-missing-rows-from-the-first-... but its not doing what I needed it to do.

 

I also want to check if a user is disabled in the AD (514) but hasnt been updated in the Master sheet as we need to track down equipment.

 

I know that there are probably better ways to do this but the IT director wants an excel so im trying to get it so we can check both places and see if the New starter/leaver process is working as it should be.

 

Any ideas or tips is greatly appreciated.

 

Thanks

Matt

Test Power BI file 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Matt_Longworth ,

 

I can't open the pbix link you provided.

You can insert tables directly into the reply, providing dummy data and expected results. 

 

For the post you provided, pay attention to the table in CONTAINS, if you want to display table (1), you need to put table (2) in the formula.

Measure = CONTAINS('Table (2)','Table (2)'[Name],MAX('Table'[Name]))*1

vstephenmsft_2-1644388453011.png

 

 

 

 

Best Regards,

Stephen Tao

 

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
Matt_Longworth
New Member

Thanks. Sorry I have been flat out at work this week and only just got a few mins away to look at this in more detail.

 

I was just not understanding it until for some reason a lightbulb popped in and it all made sense.

 

Its showing the values that I would sort of expect but for some reason its not showing them correctly but the solution you had does makes sense, i think its just my data not mapped right.

 

Thanks

Matt

 

 

Anonymous
Not applicable

Hi @Matt_Longworth ,

 

I can't open the pbix link you provided.

You can insert tables directly into the reply, providing dummy data and expected results. 

 

For the post you provided, pay attention to the table in CONTAINS, if you want to display table (1), you need to put table (2) in the formula.

Measure = CONTAINS('Table (2)','Table (2)'[Name],MAX('Table'[Name]))*1

vstephenmsft_2-1644388453011.png

 

 

 

 

Best Regards,

Stephen Tao

 

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

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors