Skip to main content
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
Showing results for 
Search instead for 
Did you mean: 
Creator III
Creator III

picking the lowest number

i have calculate field

([LAM HI] * [Year Contract]  as [Contract Life]  in the script. 

 and i have another field called [Cashout Year]   

now how to  modify the script to use lowest of both as  [Contract Life]  

foe example  [Contract Life]  gives me 90 but [Cashout Year]  gives me 30 i want to use 30  as   [Contract Life]  




2 Replies

Use RangeMin()

RangeMin(([LAM HI] * [Year Contract]), [Cashout Year]) as [Contract Life]
Former Employee
Former Employee

Did Sunny's post do the trick for you?  If so, please be sure to come back to the thread and use the Accept as Solution button on his post to give him credit and let others know things worked.  If you are still working on things, provide an update.


To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.