Forum Discussion
Cash flow Dashboard
Hi,
I need some help as I'm stumped at this point.
I have the following table in power bi:
| Plot No | Total Plot £ | Phase | Design Start Date | Design End Date | Design Duration | Construction Start Date | Construction End Date | Constuction Duration | Total Duration | Weekly rate | Design Spend | Construction Spend |
| Plot 1 | 550000 | Phase 1 | 01/01/2025 | 26/02/2025 | 8 | 27/02/2025 | 15/05/2025 | 11 | 19 | 28947 | 231579 | 318421 |
| Plot 10 | 663068 | Phase 2 | 18/06/2028 | 13/08/2028 | 8 | 01/01/2025 | 26/03/2025 | 12 | 20 | 33153 | 265227 | 397841 |
| Plot 11 | 667746 | Phase 3 | 27/03/2025 | 15/05/2025 | 7 | 16/05/2025 | 18/07/2025 | 9 | 16 | 41734 | 292139 | 375607 |
| Plot 12 | 672424 | Phase 3 | 19/07/2025 | 30/08/2025 | 6 | 31/08/2025 | 19/10/2025 | 7 | 13 | 51725 | 310350 | 362074 |
| Plot 13 | 677102 | Phase 3 | 20/10/2025 | 01/12/2025 | 6 | 02/12/2025 | 20/01/2026 | 7 | 13 | 52085 | 312509 | 364593 |
What I would like to do is create a table where the months are column headings and the rows are plots showing the spend for that month.
How can I do that?
Your expected result is a bit confusing. For Plot1, both January and February 2025 have 4 weeks of Design, so their values should be the same but your result shows otherwise. That aside, assuming the weekly spend should be plotted at the end of each week starting from the Design or Construction start date (e.g., a Design start of Jan 1, 2025 would place the first point on Jan 7), you can try the following formula.
Note: Dates refers to a disconnected calendar table that spans from the earliest to the latest of all relevant date columns.Weekly Design Spend = VAR SummaryTable = SUMMARIZE ( Data, Data[Plot No], Data[Phase], Data[Design Start Date], Data[Weekly rate], Data[Design Duration] ) VAR _GeneratedTable = GENERATE ( SummaryTable, ADDCOLUMNS ( GENERATESERIES ( 1, [Design Duration], 1 ), "@End of Week", [Design Start Date] + ( [Value] * 7 ) - 1 ) ) VAR _FilteredTable = FILTER ( _GeneratedTable, [@End of Week] IN VALUES ( Dates[Date] ) ) RETURN SUMX ( _FilteredTable, [Weekly rate] )Please see the attached pbix.
9 Replies
- FBergamaschi
Super User
Can you please show a drawing of what you want to achieve?
- Fali324
Helper II
Hi, As an example I've used Plot 1 and Plot 10.
I need the table to become this:Plot No Cost Type Date Spend Plot 1 Design 01/01/2025 28947.37 Plot 1 Design 08/01/2025 28947.37 Plot 1 Design 15/01/2025 28947.37 Plot 1 Design 22/01/2025 28947.37 Plot 1 Design 29/01/2025 28947.37 Plot 1 Design 05/02/2025 28947.37 Plot 1 Design 12/02/2025 28947.37 Plot 1 Design 19/02/2025 28947.37 Plot 1 Design 26/02/2025 28947.37 Plot 1 Construction 05/03/2025 28947.37 Plot 1 Construction 12/03/2025 28947.37 Plot 1 Construction 19/03/2025 28947.37 Plot 1 Construction 26/03/2025 28947.37 Plot 1 Construction 02/04/2025 28947.37 Plot 1 Construction 09/04/2025 28947.37 Plot 1 Construction 16/04/2025 28947.37 Plot 1 Construction 23/04/2025 28947.37 Plot 1 Construction 30/04/2025 28947.37 Plot 1 Construction 07/05/2025 28947.37 Plot 10 Design 18/06/2028 33153.4 Plot 10 Design 25/06/2028 33153.4 Plot 10 Design 02/07/2028 33153.4 Plot 10 Design 09/07/2028 33153.4 Plot 10 Design 16/07/2028 33153.4 Plot 10 Design 23/07/2028 33153.4 Plot 10 Design 30/07/2028 33153.4 Plot 10 Design 06/08/2028 33153.4 Plot 10 Design 13/08/2028 33153.4 Plot 10 Construction 01/01/2025 33153.4 Plot 10 Construction 08/01/2025 33153.4 Plot 10 Construction 15/01/2025 33153.4 Plot 10 Construction 22/01/2025 33153.4 Plot 10 Construction 29/01/2025 33153.4 Plot 10 Construction 05/02/2025 33153.4 Plot 10 Construction 12/02/2025 33153.4 Plot 10 Construction 19/02/2025 33153.4 Plot 10 Construction 26/02/2025 33153.4 Plot 10 Construction 05/03/2025 33153.4 Plot 10 Construction 12/03/2025 33153.4 Plot 10 Construction 19/03/2025 33153.4 Plot 10 Construction 26/03/2025 33153.4 - Fali324
Helper II
and the visuals I want to create are:
so the weeks inbetween the start and end date need to be automatically generated.
- grazitti_sapna
Super User
Hi Fali324
1. Unpivot to Normalize the Date Ranges
- You'll need to transform the date ranges (Design Start to End, Construction Start to End) into individual rows per month.
- This is often done with a date table and a many-to-many relationship or via a generated table where each plot has a row for each month it spans.
2. Allocate Spend Per Month- Calculate the number of months between the start and end dates of each phase.
- Divide the total cost proportionally across those months (e.g., Total Plot £ / number of months).
- Assign the corresponding spend to each month.
3. Pivot the Data- Once each plot has a row for each month and spend value, pivot the month column so that:
- Rows = Plot No
- Columns = Month-Year (e.g., Jan-2025, Feb-2025)
- Values = Monthly Spend
I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
Curious to explore more? [Discover here].
Let’s keep building smarter solutions together! - Fali324
Helper II
I just want to split it eqaully at this point
- v-achippa
Community Support
Hi Fali324,
Thank you for reaching out to Microsoft Fabric Community.
Thank you danextian for the prompt response.
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user resolved your issue? or let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa