Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi - I have Year integer only (ie 2021) - how to turn that Year to a dd/mmm/yyy by making is say 1st date of year so all my years ared like 2020, 2021 etc turn into 01/01/2020, 01/01/2021 etc. Pref in Power Query.
any ideas ? thanks
Solved! Go to Solution.
Select that column - Transform menu - Data type - date
See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMlCK1QEzDGEMIzDD0NLSUik2FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Year = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Year", type date}})
in
#"Changed Type"
Select that column - Transform menu - Data type - date
See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMlCK1QEzDGEMIzDD0NLSUik2FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Year = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Year", type date}})
in
#"Changed Type"
Excellent - thanks very much
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!