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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.