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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlik_amateur2021
Contributor
Contributor

Ranking emails by date

Hello,

If I have date and email as the columns in a table, how can apply rank within the same emails by date, similar to rank() over partition by email in SQL.

Thanks.

2 Replies
Vegar
MVP
MVP

Could you please explain in other words. Maybe with an sample data set together with an expected output from that set.

Either as a table in a post or as an excel or qvf-file

Qlik_amateur2021
Contributor
Contributor
Author

Hello Vegar,

app_emailapplied_atApproveddate(clicked_out_at)Contract_signed_onContract_signed_onutm_uidproductAPIRank
x@live.co.uk26-07-2021True26-07-2021TRUE30-07-20216464564aTrue 
x@live.co.uk28-07-2021True28-07-2021TRUE30-07-20218484847bTrue 
x@live.co.uk30-07-2021True30-07-2021TRUE31-07-20218447464bTrue 
x@live.co.uk11-08-2021True11-08-2021TRUE31-07-20219484847aTrue1
y@gmail.com26-07-2021True26-07-2021TRUE30-07-20216464564aTrue 
y@gmail.com28-07-2021True28-07-2021TRUE30-07-20218484847bTrue 
y@gmail.com30-07-2021True30-07-2021TRUE31-07-20218447464bTrue 
y@gmail.com11-08-2021True11-08-2021TRUE31-07-20219484847aTrue1

 

Have applicant data in this format, as there are duplicate emails in this dataset, I would like to rank within the same email using the applied_at date (similar to partition by in sql), such that I assign a rank to the most recent app within the same email, in the example above the most recent app we received from x@live.co.uk is on 11-08-2021 so would like to assign it a rank, such that later on I can only select those with a rank.

 

Thanks!