Forum Discussion
royces99
3 years agoFrequent Visitor
Add columns based off today's date and previous 3 months
I'm trying to add columns to a table with the column names being today's date and the previous 3 months (last day of month). The code below is free of syntax errors but the last row of code shown ge...
wdx223_Daniel
3 years agoCommunity Champion
databaseWithColumns = Table.SelectColumns(Source,Table.ColumnNames(Source)&List.Transform({1..numColumns},each Date.ToText(Date.EndOfMonth(Date.AddMonths(today,_-1)),"dd-MM-yyyy")),2)