
Contributor III
2019-10-14
10:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Combining multiple rows into one row separated by commas
Hi,
I have a table where I need to convert the rows into one field. The values shall be separated by a comma.
Eg.
LOAD * INLINE [
Cause
Missing value
Missing signature
Dataformat not correct
];
The end result should be a field called Causes and the value should be Missing value, Missing signature, Dataformat not correct.
I have tried looping through the values using a variable and just adding values to the same field in the load script. I just can't figure this one out.
I hope someone can help me.
BR
Michael
Best regards
Michael Vaisgaard
Michael Vaisgaard
2,267 Views
1 Solution
Accepted Solutions


Partner - Master
2019-10-14
10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2,263 Views
4 Replies


Partner - Master
2019-10-14
10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
load
concat(Cause,', ') as Causecombine
resident yourdata;
Regards
2,264 Views

Creator III
2019-10-14
10:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like this?
Test:
NOCONCATENATE
LOAD Concat(Cause, ', ', Sort) AS Causes
INLINE [
Cause, Sort
Missing value, 1
Missing signature, 2
Dataformat not correct, 3
];

Contributor III
2019-10-15
05:03 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much Martin.
Best regards
Michael Vaisgaard
Michael Vaisgaard

Contributor III
2019-10-15
07:13 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for replying 🙂
Best regards
Michael Vaisgaard
Michael Vaisgaard
2,220 Views
