cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I

## End of Month Date Table

Hi all,

How can I create a new date table but only consist of End of Month dates?

Thank you very much before-hand.

1 ACCEPTED SOLUTION
Microsoft Employee

Here is one way to do it in a DAX calculated table.  You can adapt it to start at a different month or extend more or less.

Date EOMs =
VAR nums =
GENERATESERIES (
0,
24,
1
)
RETURN
nums,
"Date",
EOMONTH (
DATE ( 2019131 ),
[Value]
)
)

Regards,

Pat

Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

@mahoneypa HoosierBI on YouTube

6 REPLIES 6

You can also create a new calculated table using this formula:

``Calendar = filter( calendar( date(2022,1,1), date(2022,12,31)), [Date] = EOMONTH([Date], 0))``

Helper I

Thank you for your reply @ChrisMendoza. I have done something similar to what you suggested but now I would like to the "unrelate" the new date table from an existing Calendar table.

Helper I

Awesome! Just what I need. Thank you @mahoneypat !

Resident Rockstar

From an existing Date Table as:

``Date = CALENDAR(DATE(2019,01,01),TODAY())``

Add a Column as :

``EoM Column = ENDOFMONTH('Date'[Date])``

Create new table as :

``EoM = DISTINCT('Date'[EoM Column])``

Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!

Microsoft Employee

Here is one way to do it in a DAX calculated table.  You can adapt it to start at a different month or extend more or less.

Date EOMs =
VAR nums =
GENERATESERIES (
0,
24,
1
)
RETURN
nums,
"Date",
EOMONTH (
DATE ( 2019131 ),
[Value]
)
)

Regards,

Pat

Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

@mahoneypa HoosierBI on YouTube

Helper I

Hi @mahoneypat,

Is it possible to adjust the series generation such that it will be added month by month instead of having total number of months in the series already specifically defined?