Forum Discussion
a_mixed_life
Resolver I
9 years agoCALCULATE Days Left in the current month
Was wondering if anyone have the DAX calculations to count how many days left in a current month?
- Anonymous9 years ago
Workdays Left in Month = COUNTROWS( FILTER( CALENDAR( TODAY(), EOMONTH(TODAY(), 0) ), WEEKDAY([Date], 2) < 6 ) )
...assuming that by "working" days you mean Monday through Friday.
The formula I gave previously does not count today as one of the days left in the month. This one does. If you don't want it to count today, you just have to move the start date to tomorrow:
Workdays Left in Month = COUNTROWS( FILTER( CALENDAR( TODAY() + 1, EOMONTH(TODAY(), 0) ), WEEKDAY([Date], 2) < 6 ) )
a_mixed_life
Resolver I
9 years agoThanks! Now let me expand on this, how would I calculate "Working" days?
Anonymous
9 years agoNot applicable
Workdays Left in Month = COUNTROWS( FILTER( CALENDAR( TODAY(), EOMONTH(TODAY(), 0) ), WEEKDAY([Date], 2) < 6 ) )
...assuming that by "working" days you mean Monday through Friday.
The formula I gave previously does not count today as one of the days left in the month. This one does. If you don't want it to count today, you just have to move the start date to tomorrow:
Workdays Left in Month = COUNTROWS( FILTER( CALENDAR( TODAY() + 1, EOMONTH(TODAY(), 0) ), WEEKDAY([Date], 2) < 6 ) )
- a_mixed_life9 years ago
Resolver I
Awesome! Thank you!
- dschaurich8 years agoNew Member
AnonymousI'm trying to change it to calculate how many workdays passed on current month, any hint?