Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
onkarkulkarni
Creator
Creator

Using ValueList with Pick(Match(

Hi all,

Could you please help me with replacing if conditions with pick(match :

if(deadline < 30, rgb(255,0,0), if(deadline <60 and deadline >30, rgb(255,128,0), rgb(0,255,0)))

Regards,

Onkar

 

4 Replies
pradosh_thakur
Master II
Master II

try this

 

pick(match(-1,deadline < 30,deadline <60 and deadline >30)+1,rgb(0,255,0),rgb(255,0,0), rgb(255,128,0))

Learning never stops.
onkarkulkarni
Creator
Creator
Author

Thanks Pradosh for quick reply. However the solution is not working as expected. All rows are getting highlighted in only one colour.
pradosh_thakur
Master II
Master II

Please attach a screenshot
Learning never stops.
valnod_90
Contributor III
Contributor III

Could you please give us some example data?