Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I need to concatenate these three columns, separated by delimiter. Sometimes there will only be one ID, sometimes two, and sometimes three. If there is no ID, it's a null value.
Here is what I'm doing to attempt this:
= Table.AddColumn(#"Renamed Columns", "Text.Combine", each Text.Combine({[Employee ID],[Employee ID2],[Employee ID3]},"; "))
but as you can see, I'm getting errors in the newly created column. Here's the error:
Once the combined column is created, I'll need to create duplicate row for each line with a ID2 and ID3.
Please help. This seemed like it should be straight-foward but, apparently not.
Thanks!!!
Solved! Go to Solution.
Hi @pbrainard
The IDs are Number, not Text, try
= Table.AddColumn(#"Renamed Columns", "Text.Combine", each Text.Combine((List.Transform({[Employee ID],[Employee ID2],[Employee ID3]}, Text.From), "; "))
Needed another ) after Text.From, but works like a charm. Thank you!!!
Hi @pbrainard
The IDs are Number, not Text, try
= Table.AddColumn(#"Renamed Columns", "Text.Combine", each Text.Combine((List.Transform({[Employee ID],[Employee ID2],[Employee ID3]}, Text.From), "; "))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |