Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Solved! Go to Solution.
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.
Select the type to date, and set the locale to UK
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.
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.
Select the type to date, and set the locale to UK
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.
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"})