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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Employee
Employee

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors