Forum Discussion
amirel01
2 years agoFrequent Visitor
Running Balance and Adding Previous Month Balance
I have calculated my running balance: if balance between available and scheduled is less than 0, than 0 otherwise the difference of available to scheduled - we can't carry over a positve balanc...
- 2 years ago
it seams PREVIOUSMONTH filters the date range, and ALLSELECTED can not remove that filter
try to change ALLSELECTED to ALL
amirel01
2 years agoFrequent Visitor
Thanks for your help. Below is the other formula's. Let me know if there is anything else I can provide to get more help on solving this 🙂
Running Balance =
Running Balance =
IF([Running Total Available Hours]-[Running Total Scheduled Hours]>0,0,[Running Total Available Hours]-[Running Total Scheduled Hours])
Running Total Available Hours =
CALCULATE(
SUM('Available Hours'[Available Hours]),
FILTER(
ALLSELECTED('Date'[Date]),
ISONORAFTER('Date'[Date], MAX('Date'[Date]), DESC)
)
)
Running Total Scheduled Hours =
CALCULATE(
[Scheduled Hours],
FILTER(
ALLSELECTED('Date'[Date]),
ISONORAFTER('Date'[Date], MAX('Date'[Date]), DESC)
)
)
- wdx223_Daniel2 years ago
Community Champion
it seams PREVIOUSMONTH filters the date range, and ALLSELECTED can not remove that filter
try to change ALLSELECTED to ALL
- amirel012 years agoFrequent Visitor
That worked. Thank you so much!