Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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