I have a few columns and rows created with the data i actually need to calculate and now i need to simply add a number of empty columns with specific names (i need a certain physical structure for later on in the Excel sheet); the amount and names are dynamic, i have them stored in a list - it's a set of dates.
Via various searching i came across the example below:
Custom = List.Accumulate({1..3}, Source, (state, current) => Table.AddColumn(state, Number.ToText(current), each null))
This indeed generates 3 (or what is inside the {...}) blank columns titled 1, 2 and 3. I replace the {...} content with my own list (which contains those various dates) and re-write this to the following:
List.Accumulate({MyList}, Source, (state, current) => Table.AddColumn(state, Date.ToText(current), each null))
However now this keeps giving me "We cannot convert a value of type List to type Date"; i'v tried changing the data type in MyList to text etc, then i get "We cannot convert a value of type List to type Text" etc... i must be missing something, i can't get this to work...
Any thoughts would be greatly appreciated!

