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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
FsmA
Frequent Visitor

Power BI is interpreting dates incorrectly, switching Days and Years

I am importing a table from an Oracle database, which has several date columns, all of them formatted as (dd-MMM-yy). For example, the 12th day of the month of February in the year 2024 would be 12-FEB-24 in the imported table.

 

The column is imported as text for some reason, and PowerQuery interprets these values with days and years switched, formatting this date as the 24th day of February in the year 2012, (2012-02-24).

 

Is there a way to fix this so the date is interpreted/formatted correctly?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @FsmA 

The solution @Vijay_A_Verma  provided is excellent, and you can also consider to solve the problem by setting the column type by using locale.

vxinruzhumsft_0-1709002559700.png

Select the type to date, and set the locale to UK

vxinruzhumsft_1-1709002651547.png

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @FsmA 

The solution @Vijay_A_Verma  provided is excellent, and you can also consider to solve the problem by setting the column type by using locale.

vxinruzhumsft_0-1709002559700.png

Select the type to date, and set the locale to UK

vxinruzhumsft_1-1709002651547.png

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Vijay_A_Verma
Super User
Super User

Insert this as next step and put following formula where Column1 need to be replaced with your column name

Table.ReplaceValue(Source, each [Column1], each [a = Text.Split([Column1], "-"), d = #date(Number.From(a{2}), List.PositionOf(List.Transform({1..12}, each Text.Start(Date.MonthName(#date(2, _, 1)),3)), Text.Proper(a{1}))+1, Number.From(a{0}))][d] ,Replacer.ReplaceValue, {"Column1"})

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Kudoed Authors