Forum Discussion
Work and Capacity question
- 2 years ago
JC2022 , Try to create new measure for Cumulative Capacity
Cumulative Capacity =
VAR CurrentDate = MAX('Calendar'[Date])
VAR WorkingDays =
CALCULATE(
COUNTROWS('Calendar'),
FILTER(
ALLSELECTED('Calendar'),
'Calendar'[Date] <= CurrentDate
)
)
RETURN
SUMX(
'CapacityTable',
'CapacityTable'[Capacity per day] * WorkingDays
)Then subtract it Cumulative Hours from it
Remaining Capacity = [Cumulative Capacity] - [Cumulative Hours]
JC2022 , Try to create new measure for Cumulative Capacity
Cumulative Capacity =
VAR CurrentDate = MAX('Calendar'[Date])
VAR WorkingDays =
CALCULATE(
COUNTROWS('Calendar'),
FILTER(
ALLSELECTED('Calendar'),
'Calendar'[Date] <= CurrentDate
)
)
RETURN
SUMX(
'CapacityTable',
'CapacityTable'[Capacity per day] * WorkingDays
)
Then subtract it Cumulative Hours from it
Remaining Capacity = [Cumulative Capacity] - [Cumulative Hours]