Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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"
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
7 | |
6 | |
5 |