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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue with firstsortedvalue

Hi Friends,

I'm struck with some issue related to firstsortedvalue.

I wrote a statement in my script like

firstsortedvalue(ID,-Time) as UserID----- This statement will return the id of the user based on the latest time.

firstsortedvalue(ID,Time) as UserID--- This statement will return the id of the user based on the earliest  time.

But what I want is all the users who has done some particular task based on my where clause.

so I also tried just

ID as UserID--- But it is giving me all the data, wrt other users also.

Can you help me in this.

Thanks,

Sindhu

10 Replies
Anonymous
Not applicable
Author

Hi, SIndhu,

I think it is possible that Where clause is ignored with LOAD directly, see same problem here .

You can try first load the whole table as table_temp, and then use:

Left join(..)

Load

...

Resident table_temp

Where

from_task='Start'

and to_task='Build';