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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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