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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
garynorcrossmmc
Advocate II
Advocate II

Create Calendar Table with One Dummy Date Out of Range

Hi all,

 

I'm looking to create a table via DAX that has a range of 1/1/1900 - 12/31/2099, plus one additional date of 12/31/9999.  Is this possible?  

1 ACCEPTED SOLUTION
timg
Solution Sage
Solution Sage

Hi,

 

This should do the trick:

 

DateTable = 
UNION(
    CALENDAR("01-01-1900", "12-31-2099")
    , ROW(
        "Date","31-12-9999"
    )
)

 

 

date.PNG

Hope that helps!

 

Regards,

 

Tim





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
timg
Solution Sage
Solution Sage

Hi,

 

This should do the trick:

 

DateTable = 
UNION(
    CALENDAR("01-01-1900", "12-31-2099")
    , ROW(
        "Date","31-12-9999"
    )
)

 

 

date.PNG

Hope that helps!

 

Regards,

 

Tim





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

Proud to be a Super User!




This worked, thanks @timg!

amitchandak
Super User
Super User

@garynorcrossmmc , you can do that, but then it will create a problem to mark it ar date table

 

union(calendar(date(1900,01,01), date(2099,12,31)), date(9999,12,31))

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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