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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Vanessa88
New Member

Create calendar

Hi, I have a dataset that currently has Date column. I need to be able to extract and add Year, Month, MonthName, End of Month, Month-Year cloumn. Can someone let me know how I could do this? Thanks!

 

Vanessa88_1-1663119134722.png

Cheers,
Vanessa

1 ACCEPTED SOLUTION
MahyarTF
Memorable Member
Memorable Member

Hi :

Use the Below code :

Year : "Year",YEAR([Date])

Month : "Month",MONTH([Date])

Month Name : "Month Name",FORMAT([Date],"MMMM") OR "Month Name Short",FORMAT([Date],"MMM")

End of Month : "End of Month",EOMONTH([Date],0)

Month-Year : "Year Month Number",INT(FORMAT([Date],"YYYYMM")) or 

"Year Month Name",FORMAT([Date],"YYYY-MMM")

Appreciate your Kudos and mark as solution if it helps you

Mahyartf

View solution in original post

1 REPLY 1
MahyarTF
Memorable Member
Memorable Member

Hi :

Use the Below code :

Year : "Year",YEAR([Date])

Month : "Month",MONTH([Date])

Month Name : "Month Name",FORMAT([Date],"MMMM") OR "Month Name Short",FORMAT([Date],"MMM")

End of Month : "End of Month",EOMONTH([Date],0)

Month-Year : "Year Month Number",INT(FORMAT([Date],"YYYYMM")) or 

"Year Month Name",FORMAT([Date],"YYYY-MMM")

Appreciate your Kudos and mark as solution if it helps you

Mahyartf

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.