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
ShrimpSurf
Helper II
Helper II

Multiple Calendars

Is it possible (how do you) to have multiple calendars?   I would like a main calendar with a normal month-end cut off, such as February, 2022.  I would also like a calendar which shows monthly budget target, which would have a cut off of December, 2022.  Thank you for any help.

1 ACCEPTED SOLUTION
TheoC
Community Champion
Community Champion

Hi @ShrimpSurf 

 

No worries mate.  You can use simple calendar / date tables using DAX: 

And Power Query version: https://radacad.com/all-in-one-script-to-create-date-dimension-in-power-bi-using-power-query

 

Whichever way you go, I recommend that you use the same method for both. All you need to do with the above is just adjust the Start / End Dates to what you need.

 

If you're after a simple version that you can modify easily, refer: https://powerbi.tips/2017/11/creating-a-dax-calendar/

 

Dates  = 
  GENERATE ( 
    CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2017, 12, 31 ) ), 
    VAR currentDay = [Date]
    VAR day = DAY( currentDay )
    VAR month =  MONTH ( currentDay ) 
    VAR year =  YEAR ( currentDay )
  RETURN   ROW ( 
    "day", day, 
    "month", month, 
    "year", year )
  )

 

Hope this helps mate.

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

3 REPLIES 3
TheoC
Community Champion
Community Champion

Hi @ShrimpSurf 

 

I recommend having your main calendar / date table and, separately, just have a CSV / XLSX file for your End of Reporting period.  Basically, just add a date in cell A1 (being the End of Reporting period) and then you can use that as the basis rather than maintaining two completely separate Calendar / Date tables.

 

Hope I have understood your question correctly and apologise if I haven't!

 

Theo 🙂

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Thanks Theo, however do not wish to provide the analysis outside of PowerBI.  I'm looking for a solution within PBI>

TheoC
Community Champion
Community Champion

Hi @ShrimpSurf 

 

No worries mate.  You can use simple calendar / date tables using DAX: 

And Power Query version: https://radacad.com/all-in-one-script-to-create-date-dimension-in-power-bi-using-power-query

 

Whichever way you go, I recommend that you use the same method for both. All you need to do with the above is just adjust the Start / End Dates to what you need.

 

If you're after a simple version that you can modify easily, refer: https://powerbi.tips/2017/11/creating-a-dax-calendar/

 

Dates  = 
  GENERATE ( 
    CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2017, 12, 31 ) ), 
    VAR currentDay = [Date]
    VAR day = DAY( currentDay )
    VAR month =  MONTH ( currentDay ) 
    VAR year =  YEAR ( currentDay )
  RETURN   ROW ( 
    "day", day, 
    "month", month, 
    "year", year )
  )

 

Hope this helps mate.

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

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 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.

Top Solution Authors