Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Unable to sort Ukey

Hello  All

I am unable to sort the Ukey field ..please assist. samplemodel attached.

Sort.PNG

13 Replies
prma7799
Master III
Master III

It is sorted properly just promote you Ukey to above position and check ...

prma7799
Master III
Master III

Check this

suvechha_b
Creator III
Creator III
Author

Thanks ,

Please kindly let me know how to Flag =1 when occurance is one . Highlight in red .

But zero where occurance is twice , say 849 compare previous row 849 then flag 0.

Flag.PNG

Thanks in advance.

prma7799
Master III
Master III

Try this

Load

If(Count(previ....)>1,0,1)  as Flag

from table

Group by fields;

suvechha_b
Creator III
Creator III
Author

Hello P M ,

the count and group by is not working

suvechha_b
Creator III
Creator III
Author

Hello P M ,

the count and group by is not working

sample attached.

prma7799
Master III
Master III

what error you are facing?

suvechha_b
Creator III
Creator III
Author

I am getting Flag as all 0. please kindly see the sample model.Flag0.PNG

prma7799
Master III
Master III

Try this

OpenUser_final3":

NoConcatenate

LOAD

DateJoinKeyPL, 

  deal1, 

     dealnm1, 

     previousdealid,

if(count(previousdealid)>1,1,0) as FlagLateststate

Resident "OpenUser_final2"

GROUP BY DateJoinKeyPL, 

  deal1, 

     dealnm1,    

     previousdealid;

Or please share some sample data ....