Forum Discussion
tondeli
Advocate I
8 years agoMerge columns between column values, dynamic count of columns
In my data I have id-key, dimension and dimension value. Three columns total. I don't know how many different values dimension column holds (0,1,2...n). I have pivoted my data so that dimensions will...
- 8 years ago
A dynamic solution:
#"Added Custom" = Table.AddColumn( #"Pivoted Column", "Merged", each Text.Combine( List.Transform( List.Skip( Record.FieldValues(_)), each Replacer.ReplaceValue( Text.From(_), null, "")), " - "), type text)
MarcelBeug
Community Champion
8 years agoA dynamic solution:
#"Added Custom" =
Table.AddColumn(
#"Pivoted Column",
"Merged",
each Text.Combine(
List.Transform(
List.Skip(
Record.FieldValues(_)),
each Replacer.ReplaceValue(
Text.From(_),
null,
"")),
" - "),
type text)Anonymous
7 years agoNot applicable
MarcelBeug Could you explain what the parts in your function does? I like the result but have a hard time adjusting it for my needs.
Best regards,
Alex