Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Fitting several rows onto one row with Concat()?

Hi,

I'm trying to fit my serial number column onto one row. When there is more than one serial # per sales order, it causes duplication of the order quantity. Is it possible to squeeze these serials onto one row with Concat() or some other function in the script?

What it's looking like now:

SalesOrder  Serial #Order Qty
10439573220942
10439573142372

What it needs to look like:

              Sales Order   Serial #Order Qty
1043957   322094 3142372

Any help or suggestions is much appreciated. The extra rows are duplicating my order quantity.

Thanks a lot!

1 Solution

Accepted Solutions
marcus_sommer

Try something like this:

Load [SalesOrder], concat([Serial#], '|') as SerialConcat, sum([Order Qty]) as [Order Qty]

From YourSource Group By [SalesOrder];

- Marcus

View solution in original post

2 Replies
marcus_sommer

Try something like this:

Load [SalesOrder], concat([Serial#], '|') as SerialConcat, sum([Order Qty]) as [Order Qty]

From YourSource Group By [SalesOrder];

- Marcus

Anonymous
Not applicable
Author

Thanks Marcus!