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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Calendar Table

can we get ready table for last 5 years Time/Fiscal Calendar/Normal Calendar table to import in Power BI

also can we calculate  Month and year column like Jan-19/18/17

 

Shree

1 ACCEPTED SOLUTION

Try

 

Table2 = CALENDAR(DATE(2016,1,1),DATE(2019,12,31))

 

 

You can change the start and end year as per your need

like 2015 -2025

 

Table2 = CALENDAR(DATE(2015,1,1),DATE(2025,12,31))

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

8 REPLIES 8
amitchandak
Super User
Super User

You can create a date table using the calendar function. Refer

https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions

 

User format function get data in any format

 

Format(date,"MMM-YY")

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

 i have created a new column and added this formula getting error..failed to resolve name date.. Format(date,"MMM-YY")
Anonymous
Not applicable

Error Failed to resolve name 'Date'. It is not a valid table, variable, or function name.

You need to give tablename[columnname] from your table.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Column = Format(Table 3[Date],"MMM-YY")
tried
Anonymous
Not applicable

Column 2 = Format('Table 3'[Date],"MMM-YY")
 
added using this formula but unable to add it to the hirarchy
 
Shree
Anonymous
Not applicable

I have used below menitoned formula and created calendar table for 2018 and 2019 but wants to add 2016 and 2017 also 

Table2 = CALENDAR(DATE(2018,1,1),DATE(2019,12,31))

Try

 

Table2 = CALENDAR(DATE(2016,1,1),DATE(2019,12,31))

 

 

You can change the start and end year as per your need

like 2015 -2025

 

Table2 = CALENDAR(DATE(2015,1,1),DATE(2025,12,31))

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.