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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How merge rows in logic table?

Hi All.

In single logic table I have this data:

NameParameter 1Parameter 2Parameter 3
Name 110--
Name 1-20-
Name 1--30
Name 240--
Name 2-50-
Name 2--60

How merge this data to single row?

NameParameter 1Parameter 2Parameter 3
Name 1102030
Name 2405060

Thank you.

5 Replies
tresesco
MVP
MVP

Front end solution:

Straight table:

Dim: Name

1st  Exp: Sum(Parameter1)

2nd  Exp: Sum(Parameter2)

3rd  Exp: Sum(Parameter3)

ashfaq_haseeb
Champion III
Champion III

Hi,

may be like this.

Regards

ASHFAQ

Not applicable
Author

It's great, but I need merged rows in script, not in table (diagram).

nagaiank
Specialist III
Specialist III

If you want to merge the rows in script, you may try

MergedTable:

NoConcatenate
LOAD Name, Sum([Parameter 1]) as [Parameter 1], Sum([Parameter 2]) as [Parameter 2], Sum([Parameter 3]) as [Parameter 3]
Resident OriginalTable Group By Name;

Drop Table OriginalTable;

tresesco
MVP
MVP

In that case, you might try generic load , see : Here for details.

Note: The code given by Rob Wunderlich at the comment-reply section is also impotant I felt.