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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

How to clean the different date format in same column

Dear Community, 

I have a column with date format like these;

the Apr-2019 is the same as Apr-19,  which is month and year.  but I want the date to show the same format in power bi. I have more than 6000 rows, dont want to manual clean it. can someone show a quick way to change it? thank you.

rowdateattribute
row1Apr-2019sales
row2Apr-19forecast
row3May-2019sales 
row4May-19forecast
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try to change the data type to date. I think it will convert it into data after that you can choose any format you want from the column property.

 

For me it became date by default at time of loading

 

or a new column like

if(len[date]) =6 , left([date],4) & "20"& right([Date],2), [Date])

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try to change the data type to date. I think it will convert it into data after that you can choose any format you want from the column property.

 

For me it became date by default at time of loading

 

or a new column like

if(len[date]) =6 , left([date],4) & "20"& right([Date],2), [Date])

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  your code worked, also I found another way(may not be very technical solution), I replaced the - with /1/ to forth the format to the US date format like  Apr/1/19 or Apr/1/2019, 

thanks again

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.