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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Transform table to additional rows

Hi There,

I have a table that I need to transform into a proper table. I'm developing a timesheet table based on MS Forms output. User can input up to 5 projects. Each project is housed in 1 column, the same with the hours columns. So I ended up with 3 Project columns and 3 Hours column

My Final table should only have 1 Column for Project and Hours, each. Illustration below for reference:

 

spsn223_0-1667287508510.png

Once table is done, it'll be linked to PowerBI report.

Thanks in advance for the help.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

It's OK. I manage to solve it, but in a round about way:

1. Merge Column Project & Hour with delimiter, resulting in 3 new columns

2. Unpivot, then you'll only have 1 value of Attribute, which is the Column from #1

3. Split the Value column with delimiter

With this I have the columns that I want. 🙂

View solution in original post

5 REPLIES 5
lukiz84
Memorable Member
Memorable Member

yeah, right. Do the project columns have random names or are the always called Project1-5?

Anonymous
Not applicable

It's OK. I manage to solve it, but in a round about way:

1. Merge Column Project & Hour with delimiter, resulting in 3 new columns

2. Unpivot, then you'll only have 1 value of Attribute, which is the Column from #1

3. Split the Value column with delimiter

With this I have the columns that I want. 🙂

perfect, have a nice day!

lukiz84
Memorable Member
Memorable Member

Hi,

 

use the Unpivot function in PowerQuery:

 

Unpivot columns (Power Query) (microsoft.com)

 

BR

Anonymous
Not applicable

Hi,

I try to unpivot, but it gaves a half solution. How should I transpose the attribute & value, but only to 2 columns while retaining to the Name & Date column?

spsn223_1-1667289966306.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.