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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

If with an and statement - Alternative

Dear Qlikview user

I am in the process of improving performance on an application and have read that If statements are resource hungry

I have changed the bulk of my expressions to be Pick(Match however I am left with a small number of expressions which look like they cannot be improved I.e.

=If(TB_Question = 'Safe' and TB_Show_On_Overview = 1, TB_Metric)

I was wondering if someone could kindly tell me if I should be using a more efficient technique than what is used in the above example. I dont want to over complicate things, if unnecessary

Kind Regards

Helen

1 Solution

Accepted Solutions
sunny_talwar

May be this

Pick(Match(TB_Question&TB_Show_On_Overview, 'Safe1'), TB_Metric)

View solution in original post

3 Replies
rubenmarin

Hi Helen, you can try with:

Only({<TB_Question={'Safe'}, TB_Show_On_Overview={1}>} TB_Metric)

sunny_talwar

May be this

Pick(Match(TB_Question&TB_Show_On_Overview, 'Safe1'), TB_Metric)

helen_pip
Creator III
Creator III
Author

Thanks Sunny

This works and you are as helpful as always

Thank you!