Forum Discussion
k1s1
5 years agoHelper I
Combining dates as text in a grouping step
Hello, I'm trying to group so that I have columns containing text separated by commas, one of which will group dates producing this kind of output in each cell "12 Mar 2021, 13 Apr 2021" ...
- Anonymous5 years ago
- the Text.Combine function takes a LIST as input and concatenates the various elements in a single text string.
- the date.totext function takes a DATE TYPE value as input.
in the following expression, you are asking the Date.ToText function to work on a list represented by the column content [Event Date]
{"MDT Dates", each Text.Combine(Date.ToText([Event Date],"dd MMM yyyy"),", "),type nullable text}prova (non ho testato il codice: potrebbero esserci errori di sintassi) a cambiarla nel seguente modo, per consentire alla funzione di agire individualmente su ogni singolo elemento della lista:
{"MDT Dates", each Text.Combine(List.Transform([Event Date], (dtt)=>Date.ToText(dtt,"dd MMM yyyy")),", "),type nullable text}
k1s1
5 years agoHelper I
Thank you