Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Skip the ticket, Chat with Qlik Support instead for instant assistance.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Remove duplicate an leave higher value

Hello,

I am having trouble removing the duplicates from my load. I know I am able to remove duplicates by using the distinct load, but that doesn't allow me to pick wich values are the ones that stay.

Thanks!

1 Solution

Accepted Solutions
marcus_malinow
Specialist III
Specialist III

Hi Sara,

one technique might be to calculate the value field you are interested in, and JOIN this back on to your original table. For example:

OriginalTable:

LOAD

    key,

    value,

    etc, etc....

FROM

[wherever your original source is];

INNER JOIN (OriginalTable)

LOAD

    key,

    max(value) as value

RESIDENT OriginalTable

GROUP BY key;

View solution in original post

1 Reply
marcus_malinow
Specialist III
Specialist III

Hi Sara,

one technique might be to calculate the value field you are interested in, and JOIN this back on to your original table. For example:

OriginalTable:

LOAD

    key,

    value,

    etc, etc....

FROM

[wherever your original source is];

INNER JOIN (OriginalTable)

LOAD

    key,

    max(value) as value

RESIDENT OriginalTable

GROUP BY key;