<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to write Else part in Pick &amp;amp; Match function and why Pick &amp;amp; Match is better than Nested if statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2507284#M104312</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;I have not tested performance in a reload script. I have however tested in a chart (confirmed yesterday). I've found the performance to be identical.&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 21:34:15 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2025-02-25T21:34:15Z</dc:date>
    <item>
      <title>How to write Else part in Pick &amp; Match function and why Pick &amp; Match is better than Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2506985#M104279</link>
      <description>&lt;P&gt;How to write Else part in Pick &amp;amp; Match function and why Pick &amp;amp; Match is better than Nested if statement?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 18:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2506985#M104279</guid>
      <dc:creator>ManojMJ</dc:creator>
      <dc:date>2025-02-23T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Else part in Pick &amp; Match function and why Pick &amp; Match is better than Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2506987#M104280</link>
      <description>&lt;P&gt;Using pick'n match will be faster as it will only evaluate your match expression once, in nestled if statements it will be evaluated once per if statement.&lt;/P&gt;
&lt;P&gt;It is can also be a more condense way of writing your code. It is also easier to increase / decrease the values to compare .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a no match pick() will retun zero, I often add a +1 to my pick() in order to get a default value.&lt;/P&gt;
&lt;P&gt;Pick(1+match(...),'default value', 'value1','value2',...)&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 22:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2506987#M104280</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-02-23T22:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Else part in Pick &amp; Match function and why Pick &amp; Match is better than Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2507000#M104281</link>
      <description>&lt;P&gt;I use the following technique:&lt;BR /&gt;pick(WildMatch('$(vAppStreamName)','unpublished','*test*') + 1, your_else_part, value1, value2)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 07:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2507000#M104281</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2025-02-24T07:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Else part in Pick &amp; Match function and why Pick &amp; Match is better than Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2507113#M104295</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Using pick'n match will be faster as it will only evaluate your match expression once, in nestled if statements it will be evaluated once per if statement."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I disagree. Last time I tested, every pick() option is evaluated, just as every branch of an if() is evaluated. Did something change or do you have experience to the contrary?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 16:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2507113#M104295</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-02-24T16:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Else part in Pick &amp; Match function and why Pick &amp; Match is better than Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2507262#M104311</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This has been my believed known truth for years, so I have not questioned it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on what you are writing here I will withdraw my statement of pick and match being faster, I do however in most cases find it faster to write script using that technique;-)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I interpret your comment as you have found the two to be about equal in term of reload performance. Is that a correct understanding?&lt;/P&gt;
&lt;P&gt;Thanks for remarking on my comment.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 20:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2507262#M104311</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-02-25T20:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Else part in Pick &amp; Match function and why Pick &amp; Match is better than Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2507284#M104312</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;I have not tested performance in a reload script. I have however tested in a chart (confirmed yesterday). I've found the performance to be identical.&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 21:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-write-Else-part-in-Pick-amp-Match-function-and-why-Pick/m-p/2507284#M104312</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-02-25T21:34:15Z</dc:date>
    </item>
  </channel>
</rss>

