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: 
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
Partner - Champion III
Partner - Champion III

LOAD

     max(renewalbase,3) as ThirdLargestValue

FROM ...


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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