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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
KristinaBakic
Frequent Visitor

How to use the CALENDAR() function? A practical example?

Hi!

I'm struggling to understand how to use the new CALENDAR-function. It's a new function, so no info of it's use is really around. Could someone provide a real world example on how to use it? Is it used in the abcence of an actual calendar table or used to "mark" a table as a calendar table or something else?

 

 

4 REPLIES 4
Shahid12523
Community Champion
Community Champion

CALENDAR() creates a date table from a start date to an end date.

 

Example:

Calendar =
CALENDAR ( DATE(2019,1,1), DATE(2021,12,31) )


→ Gives a continuous [Date] column.
Then add Year/Month/Quarter columns and mark it as a Date table for relationships.

👉 Use it when you don’t already have a calendar table.

Shahed Shaikh
konstantinos
Memorable Member
Memorable Member

I am also struggling to find a real world scenario to use, tried but didn't manage to make it work..For sure is not for marking a table as a date table - mark as date table will be come in later releases..Maybe ( without being 100% sure ) they will make sense when Calculated Table feature released and help create date tables in DAX..

 

 

http://community.powerbi.com/t5/Desktop/How-to-mark-Date-table/m-p/3202#M591

 

 

 

 

Konstantinos Ioannou

Since we released the Calculated Tables work I thought I'd post a couple of articles back here:

 

Here's an intro to how calculated tables work: 

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-calculated-tables/

 

and for reference, here's an outline for the CALENDAR function

https://msdn.microsoft.com/en-us/library/dn802546.aspx

 

Hope that helps! Please click 'Accept as Solution' so we know the thread's been resolved!

Thanks

CALENDAR function just returns a date range defined by the start and end date parameters. Fully agree with the previos post that this will be useful when we release the Calculated Table feature... which is comming soon!

 

Hope this helps!

Alex. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors