Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
My company wants to turn this into a dashboard, it currently monitors the amount of hours per phase by employee of projects. However, as you can see, its a mess in excel. I've been transposing it and trying to make it make sense, but I'm failing. Ideally the output would be something like:
7/26/2024 7/29/2024
Jack 24 40
Jill 34 44
Mac 40 25
but for every week. Currently the employee name is one line above Task. I keep running into issues including the week start and end AND getting the project name/ID and task together or in 2 tables. Any help would be appreciated!!
Thanks!!
Solved! Go to Solution.
Is this what are you looking for? You can put this into pivot table or power bi report as source data.
Just replace address to your source excel file.
Result
let
Source = Excel.Workbook(File.Contents("C:\Downloads\PowerQueryForum\telusive\FAbric.xlsm"), null, true),
Detail_Sheet = Source{[Item="Detail",Kind="Sheet"]}[Data],
#"Removed Top Rows" = Table.Skip(Detail_Sheet,2),
#"Promoted Headers" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]),
#"Removed Top Rows1" = Table.Skip(#"Promoted Headers",8),
#"Filled Down" = Table.FillDown(#"Removed Top Rows1",{"Column1"}),
#"Renamed Columns" = Table.RenameColumns(#"Filled Down",{{"Column1", "Nam"}, {"Column3", "Description"}, {"Column4", "Project"}, {"Column5", "No"}, {"Week", "Client"}}),
#"Removed Columns" = Table.RemoveColumns(#"Renamed Columns",{"Column2"}),
#"Filtered Rows" = Table.SelectRows(#"Removed Columns", each ([Project] <> null)),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Filtered Rows", {"Nam", "Description", "Project", "No", "Client"}, "Week", "Hours"),
#"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Week", Int64.Type}, {"Hours", type number}})
in
#"Changed Type"
Yes, this worked perfectly. Thanks so much for your time, I learned a ton!!
Is this what are you looking for? You can put this into pivot table or power bi report as source data.
Just replace address to your source excel file.
Result
let
Source = Excel.Workbook(File.Contents("C:\Downloads\PowerQueryForum\telusive\FAbric.xlsm"), null, true),
Detail_Sheet = Source{[Item="Detail",Kind="Sheet"]}[Data],
#"Removed Top Rows" = Table.Skip(Detail_Sheet,2),
#"Promoted Headers" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]),
#"Removed Top Rows1" = Table.Skip(#"Promoted Headers",8),
#"Filled Down" = Table.FillDown(#"Removed Top Rows1",{"Column1"}),
#"Renamed Columns" = Table.RenameColumns(#"Filled Down",{{"Column1", "Nam"}, {"Column3", "Description"}, {"Column4", "Project"}, {"Column5", "No"}, {"Week", "Client"}}),
#"Removed Columns" = Table.RemoveColumns(#"Renamed Columns",{"Column2"}),
#"Filtered Rows" = Table.SelectRows(#"Removed Columns", each ([Project] <> null)),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Filtered Rows", {"Nam", "Description", "Project", "No", "Client"}, "Week", "Hours"),
#"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Week", Int64.Type}, {"Hours", type number}})
in
#"Changed Type"
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.