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
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Kudoed Authors