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