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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.