Forum Discussion
Dynamic GENERATESERIES
- 5 years ago
Just put -1 instead of 0 on the initial EOMONTH
Best regards
Pat
I'm guessing this relates to your previous post. If so, this should combine the two
Calendar =
VAR eomonthtoday =
EOMONTH (
TODAY (),
0
)
VAR startdate =
DATE ( 2019, 1, 1 )
VAR series =
GENERATESERIES (
0,
DATEDIFF (
startdate,
eomonthtoday,
MONTH
),
1
)
RETURN
ADDCOLUMNS (
series,
"Date",
EOMONTH (
startdate,
[Value]
)
)
Regards,
Pat
Thank you mahoneypat .
Yes this relates to my question in the other thread.
This works, but how can I adjust the DAX such that the last end of the month date is from the previous month, ie. based on today's date, the last EOM date of the series is 31/10/2020?
Again thank you very much for your kind support.
- mahoneypat5 years agoMicrosoft Employee
Just put -1 instead of 0 on the initial EOMONTH
Best regards
Pat