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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
felipeblanco
Frequent Visitor

Comparison Between Two Columns - Find Only Differences

Hello Everyone, 

 

I have a PowerBI local dashboard that provides to me a inventory accuracy report based in two databases provided by 2 IT System in my company. The main propurse of this report is to normalize and make both system be more equal as it's possible.

 

sccm.PNG cmdb.png

 

 

One of the most important functions should be compare these two databases and find the missing assets in one of the bases (CMDB), so we can add them basead on the information from the other database (SCCM). 

How is the best way to compare two columns and find only the itens that are not on the other database?

 

Thanks in advance for your help.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @felipeblanco

 

Assuming that you have an identical structure for every CI in both CMDB and SCCM and that every CI has an unique identifier,

you can MERGE the two queries aka tables by using the CI as matching column.

 

The result is new table:

 

grafik.png

View solution in original post

3 REPLIES 3
felipeblanco
Frequent Visitor

Thanks everyone for the assistance! I tested both solutions and they worked.

The first one was that better fits my needs.

 

Best Regards!

v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @felipeblanco,

 

According to your description above, I would suggest you use CONTAINS Function (DAX) to create a new calculate column in your SCCM table to flag if the current row value is contained in CMDB table. The formula below is for your reference.Smiley Happy

IsContainedInCMDB = CONTAINS ( 'CMDB', 'CMDB'[Column1], 'SCCM'[Column1] )

 

Regards

Anonymous
Not applicable

Hi @felipeblanco

 

Assuming that you have an identical structure for every CI in both CMDB and SCCM and that every CI has an unique identifier,

you can MERGE the two queries aka tables by using the CI as matching column.

 

The result is new table:

 

grafik.png

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.