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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Edit date column to be just month and year and remove day

Hey all

 

I am just seeing if there is a way to edit a date column with the format of DD/MM/YY to just be MM/YY? The reason for this is because I am trying to filter spend for a given month but it's hard to do when everyone has a different bill day.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

In the Calendar Table, create 2 additional columns for Year and Month

 

Year = YEAR(Calendar[Date])

Month = FORMAT(Calendar[Date],"mmmm")

 

Drag these columns to your visual

 

You may also try this calculated column in the Calendar Table

 

Year-Month = FORMAT(Calendar[Date],"YYY-MM")

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
tarunsingla
Solution Sage
Solution Sage

If you need this for filters alone, the dates field when used in a Slicer visual allows other useful features like dates between (start and end), or Relative (like, in the last/this/next x days/months/years, etc).

DatesFilter.png

Ashish_Mathur
Super User
Super User

Hi,

 

In the Calendar Table, create 2 additional columns for Year and Month

 

Year = YEAR(Calendar[Date])

Month = FORMAT(Calendar[Date],"mmmm")

 

Drag these columns to your visual

 

You may also try this calculated column in the Calendar Table

 

Year-Month = FORMAT(Calendar[Date],"YYY-MM")

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.