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: 
sarasmonu
Creator
Creator

Merge Rows

Hi All,

Below is the scenario.

I have 2 rows with multiple columns exactly same except one.

Example:

Input:

ColA    ColB   ColC   ColD

1          Std      Thur    ABC

1          Std      Thur    PQR

Expected Output:

ColA    ColB   ColC   ColD

1          Std      Thur    ABC/PQR

Please help.

Thanks,

Monu

1 Reply
petter
Partner - Champion III
Partner - Champion III

In a load script you can do it like this:

LOAD

  ColA,

  ColB,

ColC,

Concat( ColD , '/') AS ColD

FROM

Input

GROUP BY

ColA, ColB, ColC;

If you need to do it directly in a table in the UI of an application you can:

Add the columns ColA, ColB and ColC as dimensions.

Add the measure with the expression


    Concat( ColD , '/' )