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

First occurrence by sorting

Hi All,

Is it possible to sort the values and get the first occurrence in Qlikview?

My requirement is this. I have to sort the names and one more column called Status in desc and get the first occurrence. Is this possible?

   

 

QNUmNameStatus
1000ABCYes
1000ABCNo
12000XYZNo
12000XYZNo
12000XYZYes
200DEFN/A
200DEFYes
100IJKYes
10KLMNo

From this table i should get the following result:

   

QNUmNameStatus
1000ABCYes
12000XYZYes
200DEFYes
100IJKYes
10KLMNo

Is this possible?

Thanks,

Anupama Jagan

10 Replies
Anonymous
Not applicable
Author

I will rephrase my question:

I have few fields in my report and when i recently added one field we are getting multiple rows for the same name.

In order to eliminate the duplicates we thought of sorting by the name asc and status desc and getting the first occurrence.

We have more than 20 to 30 fields in the table as of now.

Kindly let me know how to go about this.

Thanks,

Anupama Jagan