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! Request now

Reply
Anonymous
Not applicable

Comparing Two Simple Tables

Hi everyone, 

 

I'm trying to reconcile a spreadsheet of data with another spreadsheet of VERY similar data, but I'm having problems with relationships not filtering my quantites. 

For example:

 

spreadsheet 1: 

Customer NameLicense NameQuantity
Customer ALicense 118
Customer ALicense 238
Customer BLicense 213
Customer BLicense 32
Customer CLicense 424
Customer CLicense 529
Customer CLicense 628

 

spreadsheet 2:

Customer NameLicense NameQuantity
Customer ALicense 119
Customer ALicense 239
Customer BLicense 213
Customer BLicense 33
Customer CLicense 424
Customer CLicense 532
Customer CLicense 62
Customer CLicense 729

 

But when I input both tables in Power BI, and try and connect the quantities together (which is what I want to compare, I end up with this

Customer NameLicense NameQuantityQuantity
Customer ALicense 118322
Customer ALicense 238829
Customer BLicense 213829
Customer BLicense 3278
Customer CLicense 42473
Customer CLicense 5290
Customer CLicense 6281613

 

Basically, whenever I include a second quantity into the mix, it outputs the sum of all the specific licenses, not the quantity of each customer's particular amount of licenses. 

 

how do I make this happen?!

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

You could merge queries (as new) in Power Query editor.  That will allow you to 'inner join' on Customer and Licence fields.

After a bit more tinkering, you'll be left with a new table with the two quantity columns next to each other

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

You could merge queries (as new) in Power Query editor.  That will allow you to 'inner join' on Customer and Licence fields.

After a bit more tinkering, you'll be left with a new table with the two quantity columns next to each other

Anonymous
Not applicable

@HotChilli has a good solution - it will get you to where you want very quickly.

One consideration: You may want the Join Type to be Full Outer - that way you won't lose rows due to the data being not existing on the other table.

Cheers!

Nathan

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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