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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
anoomohan
Helper III
Helper III

Date format wrong in excel source

hi,

 

My excel source has multiple columns with 3 columns for date - YEAR, MONTH NAME, DAY NUMBER  - but issue is all these 3 columns are formatted in text (year and month) and day number in numeric value ; so when i use this in PBI desktop, i am unable to convert these fields to date format and getting error. 

 

e.g., if i change year column to date, for year 2023, i am getting 15-07-1905 - PLEASE ADVISE HOW TO solve this?

 

anoomohan_1-1693721185610.png  after changing year column to date  - getting below

 

  anoomohan_2-1693721210140.png 

 

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @anoomohan 

I am also not that familiar with M language, but the good thing about Power Query is that you can just click ribbons to achive the tasks which are not that complicated.  For this task, I just clicked the ribbons mostly to produce the required output.  

 

Sakiko_0-1693726793031.png

I attach the pbix file in the link below for this task in which you can see the applied steps. 

https://1drv.ms/u/s!AlqFfzVTqicpnWvUaoX8e76td6aH?e=KUiM3V

 

View solution in original post

2 REPLIES 2
anoomohan
Helper III
Helper III

It works, thank you

DataNinja777
Super User
Super User

Hi @anoomohan 

I am also not that familiar with M language, but the good thing about Power Query is that you can just click ribbons to achive the tasks which are not that complicated.  For this task, I just clicked the ribbons mostly to produce the required output.  

 

Sakiko_0-1693726793031.png

I attach the pbix file in the link below for this task in which you can see the applied steps. 

https://1drv.ms/u/s!AlqFfzVTqicpnWvUaoX8e76td6aH?e=KUiM3V

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors