I am using a calendar table in an slicer in my Power BI report. In order to avoid the user to select the current month, I would like this calendar to go up to the last day of the previous month. i.e., If we are in February, it would only display the dates until Jan 31.
How can I define the end date of my Calendar DAX.
CALENDAR (
DATE(2019,1,1),
TODAY()
)
I have tried a couple of things included ENDOFMONTH() and EOMONTH(), but none of them worked.