Forum Discussion
Julier
Helper III
6 months agoPOWER BI DAX MEASURE
hello, i have a table which gives me capacity sqm that is using a calculated column to give me the daily capacity, i want to be able to show on a chart the monthly capacity and then the remaining mon...
- 6 months ago
Hi Julier ,
I have reproduce your scenario in Power BI Desktop and validate the requirement.To achieve the expected result, I implemented the following approach:
- Created a proper Date table and used it for time intelligence
- Built a complete Site × Date dataset to ensure all dates are present
- Used SUM with DATESMTD for cumulative calculations
- Calculated Remaining Capacity as:
Monthly Capacity – Used Capacity MTD
With this setup:
- Used Capacity increases day by day
- Remaining Capacity decreases across the month
- Demand can be compared correctly against capacity
I’m getting the expected output based on your requirement.
For your reference, I’ve attached the sample .pbix file with the complete working solution.
Thank You.
Julier
Helper III
6 months agoFBergamaschi this is the table that has my capacity in it, I hopethis makes sense?
| Asset Group | 24/5 Working | Daily_Capacity | 24/7 Working | SITE_ID | Date | Week Commencing | Capacity SQM |
| Corrugators | 1 | 5639933 | null | AA | 04/05/2026 | 04/05/2026 | 181933.3 |
| Corrugators | 1 | 6203926 | null | AA | 22/06/2026 | 22/06/2026 | 206797.5 |
| Corrugators | 1 | 6203926 | null | AA | 23/06/2026 | 22/06/2026 | 206797.5 |
| Corrugators | 1 | 6203926 | null | AA | 30/06/2026 | 29/06/2026 | 206797.5 |
| HQQ | 1 | 326748 | null | AA | 04/05/2026 | 04/05/2026 | 10540.26 |
| HQQ | 1 | 326748 | null | AA | 05/05/2026 | 04/05/2026 | 10540.26 |
| HQQ | 1 | 326748 | null | AA | 06/05/2026 | 04/05/2026 | 10540.26 |
| FFFF | 1 | 532418 | null | AA | 29/06/2026 | 29/06/2026 | 17747.27 |
| FFFF | 1 | 532418 | null | AA | 30/06/2026 | 29/06/2026 | 17747.27 |
| FFFF | 1 | 580048 | null | AA | 04/05/2026 | 04/05/2026 | 18711.23 |
| FFFF | 1 | 580048 | null | AA | 05/05/2026 | 04/05/2026 | 18711.23 |
| Corrugators | null | 18039605 | 1 | BBB | 28/06/2026 | 22/06/2026 | 601320.2 |
| Corrugators | null | 18039605 | 1 | BBB | 29/06/2026 | 29/06/2026 | 601320.2 |
| SSSS | null | 1835009 | 1 | BBB | 30/06/2026 | 29/06/2026 | 61166.97 |
| SSSS | null | 1835009 | 1 | BBB | 01/06/2026 | 01/06/2026 | 61166.97 |
| SSSS | null | 1835009 | 1 | BBB | 02/06/2026 | 01/06/2026 | 61166.97 |
| MMM | null | 860908 | 1 | BBB | 22/05/2026 | 18/05/2026 | 27771.23 |
| MMM | null | 860908 | 1 | BBB | 23/05/2026 | 18/05/2026 | 27771.23 |
| MMM | null | 860908 | 1 | BBB | 24/05/2026 | 18/05/2026 | 27771.23 |
| Corrugators | 1 | 8892900 | null | CCC | 15/06/2026 | 15/06/2026 | 296430 |
| Corrugators | 1 | 8892900 | null | CCC | 16/06/2026 | 15/06/2026 | 296430 |
| Corrugators | 1 | 8892900 | null | CCC | 17/06/2026 | 15/06/2026 | 296430 |
| SSSS | 1 | 1230215 | null | CCC | 27/06/2026 | 22/06/2026 | 41007.17 |
| SSSS | 1 | 1230215 | null | CCC | 28/06/2026 | 22/06/2026 | 41007.17 |
| FFFF | 1 | 459299 | null | CCC | 10/06/2026 | 08/06/2026 | 15309.97 |
| FFFF | 1 | 459299 | null | CCC | 11/06/2026 | 08/06/2026 | 15309.97 |
| FFFF | 1 | 459299 | null | CCC | 12/06/2026 | 08/06/2026 | 15309.97 |
FBergamaschi
Super User
6 months agoSorry for late reply
Shall try to fix it tonight
best