Forum Discussion
Help with successfully merging tables / lookup?
- 6 years ago
artfulmunkeey - Seems like you could create a composite key in both tables and do a merge in Power Query and that might make things very easy.
artfulmunkeey - Seems like you could create a composite key in both tables and do a merge in Power Query and that might make things very easy.
- artfulmunkeey6 years ago
Helper I
Thanks for the fast response and for pointing me down the right track. That worked, however, it has opened another can of worms and I now have a follow-up question if I may..
I added a table of resource names and IDs, a separate one for project names and IDs, and a third table as a timeset for every day of the year (dd/mm/yyyy). I've created all the necessary relatioshships and can now produce the following pivot table which can be drilled down to show per resource below each project.
Jan Feb Mar ProjectName Demand Actual Demand Actual Demand Actual Project 1 500.0 200.0 300.0 140.0 100.0 120.0 Project 2 700.0 950.0 750.0 900.0 750.0 150.0 Project 3 50.0 20.0 90.0 90.0 Project 4 100.0 110.0 Project 5 100.0 90.0 90.0 100.0 100.0 90.0 Project 6 50.0 40.0 80.0 70.0 However, as it is a pivot table with an OData feed i cannot create a calculated field to produce the following desired output. I suspect i need to write a query to do this but do not know where to begin grouping the data by project (and by resources beneath projects) by month, to produce the burn-down of available hours.
Jan Feb Mar Cumulative TOTAL Demand ProjectName Cumulative Demand Actual Remaining Cumulative Demand Actual Remaining Cumulative Demand Actual Remaining Project 1 900.0 500.0 200.0 300.0 700.0 300.0 140.0 160.0 560.0 100.0 120.0 -20.0 440.0 900.0 Resource 1 350.0 200.0 100.0 100.0 250.0 100.0 40.0 60.0 210.0 50.0 50.0 0.0 160.0 350.0 Resource 2 550.0 300.0 100.0 200.0 450.0 200.0 100.0 100.0 350.0 50.0 70.0 -20.0 280.0 550.0 Project 2 2200.0 700.0 950.0 -250.0 1250.0 750.0 900.0 -150.0 350.0 750.0 150.0 600.0 200.0 2200.0 Project 3 140.0 0.0 140.0 50.0 20.0 30.0 120.0 90.0 90.0 0.0 30.0 140.0 Project 4 100.0 0.0 100.0 0.0 100.0 100.0 110.0 -10.0 -10.0 100.0 Project 5 290.0 100.0 90.0 10.0 200.0 90.0 100.0 -10.0 100.0 100.0 90.0 10.0 10.0 290.0 Project 6 130.0 0.0 130.0 50.0 40.0 10.0 90.0 80.0 70.0 10.0 20.0 130.0 Any suggestions on this would be very welcome!
Thanks