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
Simonfrancois
New Member

Create a table from an other with adding the data of multiple columns

Dear Power BI users, 

 

I have a problem with a set of data from a database. 

 

My table (Result) look like this : 

 

Columns : ID ; Name ; Month-1 ; Month 2 ; ... ; Month 12 

 

The data in Month (1-12) is decimal number. 

 

I would create in Power BI desktop querry editor a table from the table "Result" with the following columns : ID ; Name ; Month ; Data_Month

 

The columns ID and Name stay the same 

 

The column Month contain the name of the columns depending of Data_month : Month 1; Month 2, ... Month 12

 

The column Data_month contain the data taken in relation with the column month and the ID. 

 

 

I put an image of the initial Table "RESULT" and the desired table "REPORT".

table.jpg

I took for the example only columns Month 1 Month 2 and month 12

 

Thanks for your help,

 

Simon

 

 

 

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

@Simonfrancois In the Query Editor => got to Transform Tab => select both columns ID and NAME => Unpivot Other Columns

 

2016-09-30 - Unpivot Other Columns 1.png

 

Hope this helps! Smiley Happy

 

 

2016-09-30 - Unpivot Other Columns 2.png

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

@Simonfrancois In the Query Editor => got to Transform Tab => select both columns ID and NAME => Unpivot Other Columns

 

2016-09-30 - Unpivot Other Columns 1.png

 

Hope this helps! Smiley Happy

 

 

2016-09-30 - Unpivot Other Columns 2.png

Dear Sean, 

 

I would like to thanks you a lot for the solution ! 

 

Have a nice day,

 

Simon 

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.