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.
Hi I have this Query:
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjbQNzDWNzIwNFWKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Start Date" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Start Date", type date}}),
Custom1 = Table.AddColumn(#"Changed Type", "Second Column", each Date.AddYears([Start Date],1))
I am trying to incorporate this part "Date.AddYears([Start Date],1)" from 'Custom1' query in to 'Source' query.
However I don't really really know M language so I cant tell well what is happening in 'Source' query.
Anyone know how to do these changes or they cant be done at this step of the query?
Thanks
Try:
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjbQNzDWNzIwNFWKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Start Date" = #"custom1"[Second Column]),
--Nate
Hi, @Anonymous I am getting cycle reference error.
Sorry for misunderstanding instead of trying to incorporate column what I needed was only Date.AddYears function.