Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Thim
Resolver V
Resolver V

Date table with last date, being the last date of current month

Hi all.

 

I usually make a Date table showing all dates up to the date we are in.

The Dax formula looks like this.

Date = CALENDAR(DATE(2015;10;1); DATE(YEAR(NOW());MONTH(NOW());DAY((NOW()))))

 

So as of today, the last date in the table is 19th of October 2018.

 

However, i need to change this so the table always expand to the last date of the current month, so the last date would be 31th of October 2018.

And ofcourse, when we reach November, the table needs to update so the last date is 30th of November 2018.

 

Hope someone has the solution i can't find. 🙂

 

Thank you in advance. 🙂

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@Thim Please try this, using "New Table" option.

 

Test11DateGen = CALENDAR("2018-01-01",EOMONTH(TODAY(),0))




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

2 REPLIES 2
PattemManohar
Community Champion
Community Champion

@Thim Please try this, using "New Table" option.

 

Test11DateGen = CALENDAR("2018-01-01",EOMONTH(TODAY(),0))




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Thank you.

 

This looks to be exactly what i was looking for. 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.