cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Create a new table from multiple tables

Hi,

 

I'm trying to joining multiple tables and i dont know how to do it.

 

 

Table 1:

idnamevalue
1aaa123
2bbb234
3ccc345

 

Table 2:

idnamevalue
1aaa432
2bbb543
4ddd154
5eee346
6fff908

 

Expected result:

idnameTable1.valueTable2.value
1aaa123432
2bbb234543
4dddnull154
5eeenull346
3ccc345null
6fffnull908

 

I tried to append, merge this queries using FULLOUTERJOIN, however i wasnt successfull.

Someone please can help me?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Create a new table from multiple tables

Hi @luisseneto,

 

1. rename the value columns (Table1.value, Table2.Value)

2. Append Table1 & Table2

3. Group by id, name (Sum Table1.Value, Table2.Value )

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

I work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #BetterTogether
twitter - LinkedIn - YouTube - website

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Create a new table from multiple tables

Hi @luisseneto,

 

1. rename the value columns (Table1.value, Table2.Value)

2. Append Table1 & Table2

3. Group by id, name (Sum Table1.Value, Table2.Value )

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

I work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #BetterTogether
twitter - LinkedIn - YouTube - website

View solution in original post

Highlighted
Memorable Member
Memorable Member

Re: Create a new table from multiple tables

@luisseneto

 

Create a new table and add the following formula:

 

Table = UNION(SELECTCOLUMNS(Table1,"ID", Table1[id],"Name", Table1[name],"Value1", Table1[value],"Value2", ""  ), 
              SELECTCOLUMNS(Table2,"ID", Table2[id],"Name", Table2[name],"Value1", "","Value2", Table2[value]  ), 			  
			  )

 

 

Highlighted
New Member

Re: Create a new table from multiple tables

Thank you @mwegener !!

Highlighted
New Member

Re: Create a new table from multiple tables

Thank you @themistoklis !!

Highlighted
Super User III
Super User III

Re: Create a new table from multiple tables

You are welcome

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

I work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #BetterTogether
twitter - LinkedIn - YouTube - website

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors