cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johanDeWeerdt
Frequent Visitor

split - ungroup - unpivot - transpose file

Hi, I have a set of .csv files that look like this:

timesheet csv.png

After cleaning in excel to make the grouping more obvious it looks like this for the first employeetimesheet.png

Is there a way to transform this file to a simple list like this:timesheet after ungrouping.png

 

 

 

 

 

 

2 REPLIES 2
v-yuezhe-msft
Microsoft
Microsoft

Hi @

Do you want to transpost the file in Power BI Desktop? If so, could you please upload the CSV file to OneDrive and post shared link of the CSV file in this forum so that I can test?

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Here is an example of the first 3 records. Hope it helps:

 

 

Staff Name : person1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Project Code,Project Description,Task Code,Task Description,01-Jan,02-Jan,03-Jan,04-Jan,05-Jan,06-Jan,07-Jan,08-Jan,09-Jan,10-Jan,11-Jan,12-Jan,13-Jan,14-Jan,15-Jan,16-Jan,17-Jan,18-Jan,19-Jan,20-Jan,21-Jan,22-Jan,23-Jan,24-Jan,25-Jan,26-Jan,27-Jan,28-Jan,29-Jan,30-Jan,31-Jan,
5164-Z845YL-30,project 1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,W,Work,0,1,0,0,1,1,1,1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10
,,DO,Day Off,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4
,,,Sub Total,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Staff Name : person2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Project Code,Project Description,Task Code,Task Description,01-Jan,02-Jan,03-Jan,04-Jan,05-Jan,06-Jan,07-Jan,08-Jan,09-Jan,10-Jan,11-Jan,12-Jan,13-Jan,14-Jan,15-Jan,16-Jan,17-Jan,18-Jan,19-Jan,20-Jan,21-Jan,22-Jan,23-Jan,24-Jan,25-Jan,26-Jan,27-Jan,28-Jan,29-Jan,30-Jan,31-Jan,
overhead,over head task,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,#Sick,Sick Leave,0,0,0,0,0,0,0,0,0,0.5,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1.5
S290-Z800OP-30,operations department,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,W,Work,0,0,0,0,0,0,0,0,1,0.5,0,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,0,0,0,1,16.5
,,DO,Day Off,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,3
,,PH,Public Holiday,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,3
,,,Sub Total,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,38
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Staff Name : person3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Project Code,Project Description,Task Code,Task Description,01-Jan,02-Jan,03-Jan,04-Jan,05-Jan,06-Jan,07-Jan,08-Jan,09-Jan,10-Jan,11-Jan,12-Jan,13-Jan,14-Jan,15-Jan,16-Jan,17-Jan,18-Jan,19-Jan,20-Jan,21-Jan,22-Jan,23-Jan,24-Jan,25-Jan,26-Jan,27-Jan,28-Jan,29-Jan,30-Jan,31-Jan,
overhead,over head task,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,#Sick,Sick Leave,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1
,,#Annual,Annual Leave,0,0,0.5,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1.5
4951-Z845-30,some Site General,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,W,Work,0,0,0.5,1,1,1,0,0,1,1,1,0,1,0,0,1,1,1,1,1,0,0,1,1,1,0,1,0,0,0,1,17.5
,,PH,Public Holiday,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,2
,,DO,Day Off,1,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,9
,,,Sub Total,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,69
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors