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: 
chriys1337
Creator III
Creator III

Nested ifs vs. pick match

Hello,

 

I am having performance issues with heavy nested ifs. My question is, how to optimize the logic? Is a pick match solution, a guarantee for a better performance?

 

Whats your thoughts on this?

 

Thx,

 

chriys

1 Solution

Accepted Solutions
Anil_Babu_Samineni

My contribution here is, I've converted 120 nested..if conditions to Pick..Match condition which is really increasing the performance. like

  • Filter selection improving immediate
  • We can use them even Calc. Dimension using Pick..Match function where as If..else condition kills performance
  • Safer zone, Create in script as filed which will run proper even If.else or Pick.Match
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

3 Replies
Anil_Babu_Samineni

My contribution here is, I've converted 120 nested..if conditions to Pick..Match condition which is really increasing the performance. like

  • Filter selection improving immediate
  • We can use them even Calc. Dimension using Pick..Match function where as If..else condition kills performance
  • Safer zone, Create in script as filed which will run proper even If.else or Pick.Match
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
chriys1337
Creator III
Creator III
Author

Thank you for sharing your experience, Anil!

KatarinaGrumy
Contributor
Contributor

Thank you!!