<?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: Multiple IF replace and Alternate  Function Needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575453#M442569</link>
    <description>&lt;P&gt;I would suggest to use ApplyMap() function with&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Mapping.htm" target="_blank" rel="noopener"&gt;Mapping Load&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2019 11:33:33 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-05-01T11:33:33Z</dc:date>
    <item>
      <title>Multiple IF replace and Alternate  Function Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575439#M442567</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have around 50 if Conditions on the same Field like salesman 1&amp;nbsp; = 'XXX' then name = ÝYYY',&amp;nbsp; like below I have to check for 50 values while loading the data. is there any alternate way to replace IF with another function?&lt;/P&gt;&lt;P&gt;LOAD * ,&lt;BR /&gt;if([Salesman 1]='MKAHN','Outside',&lt;/P&gt;&lt;P&gt;if([Salesman 1]='TZERB','Outside',&lt;/P&gt;&lt;P&gt;if([Salesman 1]='KNIBL','Outside',&lt;/P&gt;&lt;P&gt;if([Salesman 1]='ERAMO','Outside',&lt;/P&gt;&lt;P&gt;if([Salesman 1]='MNOBL','Outside',Salesmantype_old ))))) as Salesmantype;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 10:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575439#M442567</guid>
      <dc:creator>Gautam</dc:creator>
      <dc:date>2019-05-01T10:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF replace and Alternate  Function Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575447#M442568</link>
      <description>&lt;P&gt;We can do many ways?&lt;/P&gt;&lt;P&gt;1) Like what you done&lt;/P&gt;&lt;P&gt;2) Replace function with every time - &lt;STRONG&gt;Not recommended&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3) Pick Match as follows - &lt;STRONG&gt;Recommended&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Match([Salesman 1], 'MKAHN',&amp;nbsp;'TZERB',&amp;nbsp;'KNIBL', 'ERAMO',&amp;nbsp;'MNOBL'), 'Outside',Salesmantype_old) as Salesmantype&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4) Mapping Table for all 50 rows with same name - &lt;STRONG&gt;Recommended&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 11:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575447#M442568</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-05-01T11:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF replace and Alternate  Function Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575453#M442569</link>
      <description>&lt;P&gt;I would suggest to use ApplyMap() function with&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Mapping.htm" target="_blank" rel="noopener"&gt;Mapping Load&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 11:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575453#M442569</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-01T11:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF replace and Alternate  Function Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575454#M442570</link>
      <description>Hi&lt;BR /&gt;Pick function will not work the way you have specified needs to be write Outside many times&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Kushal</description>
      <pubDate>Wed, 01 May 2019 11:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575454#M442570</guid>
      <dc:creator>kushalthakral</dc:creator>
      <dc:date>2019-05-01T11:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF replace and Alternate  Function Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575460#M442571</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42763"&gt;@kushalthakral&lt;/a&gt;&amp;nbsp; Try and let us know where it is not working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 11:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575460#M442571</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-05-01T11:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF replace and Alternate  Function Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575461#M442572</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;I think what&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42763"&gt;@kushalthakral&lt;/a&gt;&amp;nbsp; is trying to say is that you need if instead of Pick to do this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Match([Salesman 1], 'MKAHN',&amp;nbsp;'TZERB',&amp;nbsp;'KNIBL', 'ERAMO',&amp;nbsp;'MNOBL'), 'Outside', Salesmantype_old) as Salesmantype&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or you need this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Match([Salesman 1], 'MKAHN',&amp;nbsp;'TZERB',&amp;nbsp;'KNIBL', 'ERAMO',&amp;nbsp;'MNOBL') + 1, Salesmantype_old, 'Outside', 'Outside', 'Outside', 'Outside', 'Outside') as Salesmantype&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pick will need n+1 number of arguments for n number of arguments in Match.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 11:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575461#M442572</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-01T11:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF replace and Alternate  Function Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575498#M442573</link>
      <description>&lt;P&gt;I agree with you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42763"&gt;@kushalthakral&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 14:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-replace-and-Alternate-Function-Needed/m-p/1575498#M442573</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-05-01T14:14:25Z</dc:date>
    </item>
  </channel>
</rss>

