<?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: pick and if function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/pick-and-if-function/m-p/2067019#M87537</link>
    <description>&lt;P&gt;Right .&lt;/P&gt;
&lt;P&gt;Yes, your understanding is correct. The pick() function in Qlik is generally more optimized compared to using nested if() functions in terms of performance and readability of the expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using pick() function, Qlik can directly access the value at the specified index based on the value of N, while in the case of nested if() functions, Qlik has to check all the if conditions until it finds a match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, if you have a large number of if conditions or if the conditions are complex, it's generally better to use the pick() function to improve the performance of your Qlik script.&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 06:24:29 GMT</pubDate>
    <dc:creator>Chanty4u</dc:creator>
    <dc:date>2023-05-03T06:24:29Z</dc:date>
    <item>
      <title>pick and if function</title>
      <link>https://community.qlik.com/t5/App-Development/pick-and-if-function/m-p/2066996#M87532</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I came to know about the pick function in Qlik.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Code"&gt;pick( N,'A','B',4, , , )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;returns&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;'B'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;N&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;returns&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;N&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;3&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Italic"&gt;the same thing I can get by using if function&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Italic"&gt;(if N==1,'A',(if N==2,'B',(if N==3,4)))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Italic"&gt;Whether the &lt;STRONG&gt;pick function&lt;/STRONG&gt; is more optimized way compared to the &lt;STRONG&gt;if function&lt;/STRONG&gt;, as the pick function, picks the value in the index mentioned using N? In the case of &lt;STRONG&gt;if function&lt;/STRONG&gt;, the worst case needs to check all if conditions mentioned in the chart expression? Please let me know whether my understanding is right or not.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Italic"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 02:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/pick-and-if-function/m-p/2066996#M87532</guid>
      <dc:creator>vajid4525</dc:creator>
      <dc:date>2023-05-03T02:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: pick and if function</title>
      <link>https://community.qlik.com/t5/App-Development/pick-and-if-function/m-p/2067019#M87537</link>
      <description>&lt;P&gt;Right .&lt;/P&gt;
&lt;P&gt;Yes, your understanding is correct. The pick() function in Qlik is generally more optimized compared to using nested if() functions in terms of performance and readability of the expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using pick() function, Qlik can directly access the value at the specified index based on the value of N, while in the case of nested if() functions, Qlik has to check all the if conditions until it finds a match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, if you have a large number of if conditions or if the conditions are complex, it's generally better to use the pick() function to improve the performance of your Qlik script.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 06:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/pick-and-if-function/m-p/2067019#M87537</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2023-05-03T06:24:29Z</dc:date>
    </item>
  </channel>
</rss>

