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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
kirpalas
Frequent Visitor

Calendar function shows weird dates outside of the date ranges given

I am trying to use the calendar function for dates in 2022

result is 25-6-1894 to 6-7-1894 dates

weird..anyone has a solution..why this is happening

 

SEL = CALENDAR (01-01-2014, 31-12-2022)
 

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

That's not a valid way of specifying a date. Try

SEL = CALENDAR( DATE(2014, 1, 1), DATE(2022, 12,31))

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

That's not a valid way of specifying a date. Try

SEL = CALENDAR( DATE(2014, 1, 1), DATE(2022, 12,31))

Thanks for the reply and solution..it works.. the manual showed start date, enddate

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.