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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SQL's List like function in QV

HI Guys,

I have a sql

"

SELECT TxnLineID, LIST(SerialNumberName) FROM "QBAdvancedReportGroup"."v_InvoiceLineSerial"

GROUP BY TxnLineID

"

It gives me comma separated list of SerialNumberName.

I want to do the same operation on QVD files without writing a for loop.

Is there any function that QV provides to do that?

REgards,

Saurabh

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi

Try like this

Load TxnLineID, Concat(Distinct SerialNumberName, ',') AS SerialNumberName From Tablename

Group by TxnLineID;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
Nicole-Smith
MVP
MVP

concat(SerialNumberName)

and if you only want distinct values

concat(distinct SerialNumberName)

MayilVahanan
MVP
MVP

Hi

Try like this

Load TxnLineID, Concat(Distinct SerialNumberName, ',') AS SerialNumberName From Tablename

Group by TxnLineID;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.