Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
sarfaraz_sheikh
Contributor III
Contributor III

How to calculate top n minimum date

Dear All,


select min(renewalbase) from (select DISTINCT top 3 [renewalbase] from STP_LMS_Lead (NoLock) order by renewalbase desc) a)


how i can achive the above sql code in qlikview  [ RenewalBase is date field ]



Sarfaraz

1 Solution

Accepted Solutions
Gysbert_Wassenaar

LOAD

     max(renewalbase,3) as ThirdLargestValue

FROM ...


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

LOAD

     max(renewalbase,3) as ThirdLargestValue

FROM ...


talk is cheap, supply exceeds demand
sarfaraz_sheikh
Contributor III
Contributor III
Author

Dear Gysbert,

Thanks for your solution ...it is working as expected brilliant..

Sarfaraz