Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
everest226
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]  

 

 

Thanks

2 Replies
sunny_talwar

Use RangeMin()

RangeMin(([LAM HI] * [Year Contract]), [Cashout Year]) as [Contract Life]
Brett_Bleess
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.

Regards,
Brett

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.