Forum Discussion
Anonymous
7 years agoNot applicable
Extract and convert date from text string
Hello and happy new year to anyone reading this :) I am hoping someone will have a clever idea for the following issue: I am extracting various data fields from Oracle and have a specific issue with a...
- 7 years ago
Hi Anonymous,
Here I made a test by entering 04/01/19 directly. We can change the data type to using local in power query to work on it. Please check the steps as the pictures as below.
Then we can get the result as we need.
Here is the M code for your refernce.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjDRNzDUN7RUio0FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [date = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"date", type date}}), #"Changed Type with Locale" = Table.TransformColumnTypes(#"Changed Type", {{"date", type text}}, "en-AU") in #"Changed Type with Locale"For more details, please check the pbix as attached.
Regards,
Frank
Anonymous
7 years agoNot applicable
FYI I have tried to edit this post three times to include return to lines and it keeps going back to this format. My apologies, there is obvisouly something wrong with either my computer or the pbi forum right now :)