<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1516324#M749436</link>
    <description>&lt;P&gt;Use a match() or wildmatch() statement&amp;nbsp; or consider using applymap()&lt;/P&gt;&lt;P&gt;if(match(Dept, 86, 87, 90), 'Fiction',&lt;BR /&gt;if(wildmatch(Dept, '4?', 50, 51, 52),&amp;nbsp;&lt;SPAN&gt;'Non-Retail Supply',&lt;BR /&gt;etc&lt;BR /&gt;'Not-Book')) as DType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For applymap have a look at this blog&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Don-t-join-use-Applymap-instead/ba-p/1467592" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Don-t-join-use-Applymap-instead/ba-p/1467592&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would use a mapping table and applymap myself, as addition values can be added to the mapping table without the need to amend the load script, as the mapping table data can be loaded from a datasource, or file.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2018 15:35:32 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2018-12-04T15:35:32Z</dc:date>
    <item>
      <title>If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1516314#M749434</link>
      <description>&lt;P&gt;Is there a better way of categorizing the below if statement&lt;/P&gt;&lt;P&gt;IF(Dept = 86 or Dept = 87 or Dept = 90, 'Fiction',&lt;BR /&gt;IF(Dept = 41 or Dept = 42 or Dept = 43 or Dept = 44 or Dept = 45 or Dept = 46 or Dept = 47 or Dept = 48 or Dept = 49 or Dept = 50 or Dept = 51 or Dept = 52 , 'Non-Retail Supply',&lt;BR /&gt;IF(Dept = 91 or Dept = 92, 'Used-Fiction',&lt;BR /&gt;IF(Dept = 60 or Dept = 90, '60/90', 'Not-Book')))) as DType,&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1516314#M749434</guid>
      <dc:creator>has75042</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1516316#M749435</link>
      <description>&lt;P&gt;you may use match, makes it easier to read&lt;/P&gt;&lt;P&gt;if (match(Dept,86,87,90)&amp;gt;0, 'Fiction',&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (match(Dept, 41, 42, .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (match (Dept. 91,92 ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;..... as DType&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 15:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1516316#M749435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-04T15:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1516324#M749436</link>
      <description>&lt;P&gt;Use a match() or wildmatch() statement&amp;nbsp; or consider using applymap()&lt;/P&gt;&lt;P&gt;if(match(Dept, 86, 87, 90), 'Fiction',&lt;BR /&gt;if(wildmatch(Dept, '4?', 50, 51, 52),&amp;nbsp;&lt;SPAN&gt;'Non-Retail Supply',&lt;BR /&gt;etc&lt;BR /&gt;'Not-Book')) as DType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For applymap have a look at this blog&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Don-t-join-use-Applymap-instead/ba-p/1467592" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Don-t-join-use-Applymap-instead/ba-p/1467592&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would use a mapping table and applymap myself, as addition values can be added to the mapping table without the need to amend the load script, as the mapping table data can be loaded from a datasource, or file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 15:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1516324#M749436</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-12-04T15:35:32Z</dc:date>
    </item>
  </channel>
</rss>

