<?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: If Statement inside the Pick Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509678#M601276</link>
    <description>What exactly are var1, var2, and var3? Would you be able to share a sample where you can show the issue?</description>
    <pubDate>Tue, 20 Nov 2018 12:18:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-20T12:18:32Z</dc:date>
    <item>
      <title>If Statement inside the Pick Function</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509591#M601275</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I tried using if statement inside the pick function but, fail to achieve it. My question is it possible to achieve the scenario.&lt;/P&gt;&lt;P&gt;Eg: =$(=pick(vtest,'var1',if(condition1,var2,var3)))&lt;/P&gt;&lt;P&gt;when I stored the if statement in variable its working fine. I have multiple statements storing each and every condition takes lot of time. Could anyone help to find the alternative solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukesh&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 10:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509591#M601275</guid>
      <dc:creator>mukesh19</dc:creator>
      <dc:date>2018-11-20T10:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement inside the Pick Function</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509678#M601276</link>
      <description>What exactly are var1, var2, and var3? Would you be able to share a sample where you can show the issue?</description>
      <pubDate>Tue, 20 Nov 2018 12:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509678#M601276</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-20T12:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement inside the Pick Function</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509714#M601277</link>
      <description>Hi Sunny,&lt;BR /&gt;Thanks for the quick reply.&lt;BR /&gt;Vtest is the variable used for the button selection. values are assigned to the vtest as 1,2,3 etc.&lt;BR /&gt;Previously I used the expression like:&lt;BR /&gt;If(vtest=1,col1,&lt;BR /&gt;if(vtest=2, if(col2='A' or col2='B',col3))) and soo on based on number of button.&lt;BR /&gt;&lt;BR /&gt;To optimize the nested if I tried to use the pick function as&lt;BR /&gt;=$(=pick(vtest,'col1',if(col2='A' or col2='B',col3))) but, if data is not getting displayed. when the condition is passed in variable its working fine&lt;BR /&gt;=$(=pick(vtest,'col1',vif)) where vif= if(col2='A' or col2='B',col3).&lt;BR /&gt;&lt;BR /&gt;I would like to find the solution with out using variable&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Nov 2018 13:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509714#M601277</guid>
      <dc:creator>mukesh19</dc:creator>
      <dc:date>2018-11-20T13:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement inside the Pick Function</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509729#M601278</link>
      <description>&lt;P&gt;May be you need this&lt;/P&gt;&lt;PRE&gt;=$(=pick(vtest,'col1', &lt;FONT color="#FF0000"&gt;$(&lt;/FONT&gt;vif&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;))&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Nov 2018 13:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509729#M601278</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-20T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement inside the Pick Function</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509767#M601279</link>
      <description>using variable (vif) is working fine. I want to obtain the result with out using variable</description>
      <pubDate>Tue, 20 Nov 2018 14:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509767#M601279</guid>
      <dc:creator>mukesh19</dc:creator>
      <dc:date>2018-11-20T14:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement inside the Pick Function</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509771#M601280</link>
      <description>&lt;P&gt;I am a little confused here...&lt;/P&gt;&lt;P&gt;1) What is Col1 and Col2 and Col3? They are fields? Based on your if/pick condition, you want to get a particular field?&lt;/P&gt;&lt;P&gt;2) If 1) is true, then why is Col1 within single quotes and Col3 isn't?&lt;/P&gt;&lt;PRE&gt;=$(=pick(vtest,'col1',if(col2='A' or col2='B',col3)))&lt;/PRE&gt;&lt;P&gt;do you may be want col3 to be within single quotes also?&lt;/P&gt;&lt;PRE&gt;=$(=pick(vtest,'col1',if(col2='A' or col2='B',&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;col3&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;)))&lt;/PRE&gt;&lt;P&gt;This are things which can be easily seen through a sample. Right now all we know or see is what you are providing in your posts. Do you think you can post a sample so that we can see what you might have and what you need to get this fixed?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 14:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-inside-the-Pick-Function/m-p/1509771#M601280</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-20T14:08:05Z</dc:date>
    </item>
  </channel>
</rss>

