Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Justas4478
Post Prodigy
Post Prodigy

Controlling years on source table date

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

2 REPLIES 2
Anonymous
Not applicable

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.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.