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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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