Forum Discussion
Anonymous
4 years agoNot applicable
Units Previous Month - Two Date Tables
I am trying to calculate the units fulfilled in a previous month. My table has two date tables. I need the data from the "Fulfillment" date table. This is the DAX formula I wrote. I received this er...
- Anonymous4 years ago
I ended up solving it. I had to use the fulfillment date table and use [Date] from there. Thanks!
danextian
Super User
4 years agoHi Anonymous ,
It is odd that it doesnt work. You can see in my screenshot below that it does.
Alternatively, try this
Previous Month2 =
VAR __end =
MIN ( Dates[Date] ) - 1
VAR __start =
EOMONTH ( MIN ( Dates[Date] ), -2 ) + 1
RETURN
CALCULATE ( [Sum of Values], DATESBETWEEN ( Dates[Date], __start, __end ) )