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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Reddyp
Helper I
Helper I

How to add Calender(with sub catagories) in power BI

Add new column into Power BI and add below DAX code

Calender = Addcolumns(CALENDARAUTO(),
"YEAR", YEAR([Date]),
"MonthNo", MONTH([Date]),
"Month", FORMAT ([Date],"mmm"),
"Quarter", FORMAT ([Date],"\QQ"),
"YearMonth", FORMAT ([Date],"YYYY-MM"),
"WeekdayNo", WEEKDAY([Date],2), //1-Sun..Sat, 2-Mon..Sat
"Weekday", FORMAT ([Date], "ddd"))
 
Output:
Reddyp_0-1645786617696.png

 

2 REPLIES 2
Anonymous
Not applicable

HI @Reddyp,

Thanks for your share.  It seems like you share the calculated table expression, it was not suitable to be used in the calculated column.

For this scenario, I think it should be used with a calculated table to generate the calendar with custom fields.

Regards,

Xiaoxin Sheng

VahidDM
Super User
Super User

Hi @Reddyp 

 

Please see this link:

 

https://www.vahiddm.com/post/creating-calendar-table-with-3-steps

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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