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
aishak12
Helper IV
Helper IV

Date Format MMM-YY

All,

 

I have this date column and I am trying to format it into MMM-YY, so I can create a monthly average visual.

 

I tried using this calculated column and I'm unable to change the format to "Date". For some reason it goes straight to "Text". How can I keep it as "date"?

aishak12_0-1677715794132.png

aishak12_1-1677715874540.png

 

 

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@aishak12 ,

try this,

1. Create this calculated column and change the date format to like the below (refer the attached image)

 

Month Year = 
VAR _month = MONTH('Date'[Date])
VAR _year = YEAR('Date'[Date])
VAR _result = _month &"-"& _year
RETURN DATEVALUE(_result)

Arul_1-1677721400451.png

 

2. Result:

Arul_0-1677721284460.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

1 REPLY 1
Arul
Super User
Super User

@aishak12 ,

try this,

1. Create this calculated column and change the date format to like the below (refer the attached image)

 

Month Year = 
VAR _month = MONTH('Date'[Date])
VAR _year = YEAR('Date'[Date])
VAR _result = _month &"-"& _year
RETURN DATEVALUE(_result)

Arul_1-1677721400451.png

 

2. Result:

Arul_0-1677721284460.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


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.