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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kodub
New Member

Compare 2 Columns against 30 columns in two different tables

Good Day

I'm new to PowerBi and I am struggling to find the fucntions / approach to review two tables of data I have.

 

Essentially, I have Table 1 from an Email Archiving System and Table 2 active MSOL users and all their associated aliases.

 

Table 1 contains 2 columns

Column 1; Email Address 1

Column 2:  Email Address 2

 

Table 2 contains 30 columns

Column1 : Email Address 1

Column2 : Email Address 2

Column3 : Email....

This proceeds for a total of 30 columns (some users have up to 30 email addresses...)

 

We are trying to find if Table 1 has any matches in Table 2. 

 

Any guidance/assistance is greatly appreciated.  Thank you!

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

Hi@kodub

You can try to use unpivot columns function in Edit Queries like below:

Step 1:

Select 30 columns of Table2 and then click unpovit columns

21.jpg

Step 2:

Use merge queries to merge two table:

22.png

Step 3:

Expand the table

23.png

Result:

24.png

 

 

Values in this column is show that if column 1 in table 1 has matches in table 2.

 

Of course, do it by another column in table 1. 

 

 

Best Regards,

Lin

 

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

Try Excel's Fuzzy Lookup, or use Access to create quick relationshps and easy queries.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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