A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi,
Try this M code
let
Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each #date(Date.Year(DateTime.Date(DateTime.LocalNow())),Date.Month([Date]),Date.Day([Date])))
in
#"Added Custom"
Hope this helps.