cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
IrenaG
Regular Visitor

merge queries

Hello, I have 3 tables: 

In table 1 I have the sum price of the product that name is 'ORANGE". The number of product is 201619038.

 namenumbersum
orange20161903895,608.13

In table 2 I have the sum price of the same product that name  'ORANGE" but it appears in two lines. The total result is the same 95,608.13.

namenumbersum
orange9639566591,575.50
orange9678444,032.63
total 95,608.13

In table 3 I have Conversion Table for number of product:

namethe number in table 1the number in table 2
orange20161903896395665
orange201619038967844
The question is: how can I do the merge of table 1 & 2 if I have to get to the result like this:
 name  from table 1numbersum  from table 2 numbersumdifference
orange20161903895,608.139639566591,575.504,032.63
orange201619038 9678444,032.63-4,032.63

Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions
IrenaG
Regular Visitor

Re: merge queries

thank you, I will try to fix it

View solution in original post

2 REPLIES 2
Ross73312 Community Champion
Community Champion

Re: merge queries

The short answer is you can't get exactly what you described in your last entry.  You can get a table that is pretty close, but the Sum column will repeat.

 

The best you could do is start with Table 3 and merge in the contents of 1 and 2.

 

Alternatively you could bring all 3 tables into Power BI and create relationships from 3 -> 1 and 3 -> 2, then build the table inside your visuals instead, using Table 3 as the row headers.


   

              Did I answer your question? Mark my post as a solution!
       

Proud to be a Datanaut!


   


IrenaG
Regular Visitor

Re: merge queries

thank you, I will try to fix it

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors