Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I have a calender table create based on DAX :
CALENDAR = CALENDAR ("01/01/2017", today())
But what I would like is to have the "end date" of the calendar as the last day of previous month. Example:
Today is 11/02/2019, on my calendar I'd like to have all dates between 01/01/2017 and 31/01/2019. I'd like to create this in a DAX to not amend the end of calendar each month.
It's necessary, because my database is based on the previous month, and I dont want to give for the End user the option on my slicer of the current month as the data wont be there until the end of the month.
I was trying to use DATEADD function but it had no sucess.
Any clue how can I have in a DAX the return of the last day of previous month based on today to create my autocalendar ?
Solved! Go to Solution.
Hi @Anonymous
Try this:
CalendarTable = CALENDAR ( "01/01/2017", EOMONTH ( TODAY (), -1 ) )
Hi @Anonymous
Try this:
CalendarTable = CALENDAR ( "01/01/2017", EOMONTH ( TODAY (), -1 ) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |