Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
In PowerQuery / Editor I am wanting to create a column with Month ancd Year from a date colum.
What is the best way to go about this...I couldnt see a way to format the date column into (Month,Year)
Thanks
Solved! Go to Solution.
When I did an "Add Column From Examples", I got:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtQ31DcyMDRXitUBcYxAHAswx0TfFMEx1TdDcKB6LCEcI31jAyQ5INcQyo0FAA==", 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}}), #"Added Custom Column" = Table.AddColumn(#"Changed Type", "Custom", each Text.Combine({Date.ToText([Date], "MMMM"), ", ", Date.ToText([Date], "yyyy")}), type text) in #"Added Custom Column"
When I did an "Add Column From Examples", I got:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtQ31DcyMDRXitUBcYxAHAswx0TfFMEx1TdDcKB6LCEcI31jAyQ5INcQyo0FAA==", 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}}), #"Added Custom Column" = Table.AddColumn(#"Changed Type", "Custom", each Text.Combine({Date.ToText([Date], "MMMM"), ", ", Date.ToText([Date], "yyyy")}), type text) in #"Added Custom Column"
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
100 | |
51 | |
19 | |
12 | |
11 |