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