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
Diana_V
Regular Visitor

Transpose column from table to a different table as a row

Hi All,

 

I'm new to Power BI functionality and I'm stuck with a simple task (as I think).

 

I have table A with the following structure:

 

Type       Inst X      InstY    Inst Z

type1        123      123       123

 

And I have table B:

 

Type 2         Value

Inst X            235

Inst Y            235 

Inst Z            235 

 

 

So what  I'm trying to achieve is create some sort of Union with the transpose of Table B and insert the values from Table B to table A:

 

Type       Inst X      InstY    Inst Z

type1        123      123       123

type2        235      235       235

 

Any ideas on how to achieve this?

 

Thanks!

 

 

 

 

 

 

1 ACCEPTED SOLUTION
pawel1
Kudo Kingpin
Kudo Kingpin

both tables contain similar data, you want to combine both tables into ONE, something like this:tables apended.JPG

How to do this?

1. UNPIVOT both tables in Query Editor:

unpivotA.JPG unpivotB.JPG

 

2. Align Column Titles

3. Combine both tables with APPEND

append.JPG

Ready, now you can visulize with Matrixmatrix.JPG

 

 

 

 

 

View solution in original post

1 REPLY 1
pawel1
Kudo Kingpin
Kudo Kingpin

both tables contain similar data, you want to combine both tables into ONE, something like this:tables apended.JPG

How to do this?

1. UNPIVOT both tables in Query Editor:

unpivotA.JPG unpivotB.JPG

 

2. Align Column Titles

3. Combine both tables with APPEND

append.JPG

Ready, now you can visulize with Matrixmatrix.JPG

 

 

 

 

 

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.