<?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: Replace multiple IFs statement by IF list contains in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-multiple-IFs-statement-by-IF-list-contains/m-p/666788#M242586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=IF( Match( MyField,'A','B','C','D' ),...,...)&lt;/SPAN&gt; strictly equivalent to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(MyField = 'A' OR MyField = 'B' OR MyField = 'C' OR MyField = 'D', ..., ...)&lt;/SPAN&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Jul 2014 20:37:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-13T20:37:15Z</dc:date>
    <item>
      <title>Replace multiple IFs statement by IF list contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-multiple-IFs-statement-by-IF-list-contains/m-p/666786#M242584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a calculated dimension for a pivot table, I would like to test the condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(MyField in ['A','B','C','D'])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I am doing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(MyField = 'A' OR MyField = 'B' OR MyField = 'C' OR MyField = 'D', ..., ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since expression for MyField is heavy, I would like to replace this by a more efficient syntax, such as search in a list (like a contains() method in other languages). Is there such a syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2014 20:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-multiple-IFs-statement-by-IF-list-contains/m-p/666786#M242584</guid>
      <dc:creator />
      <dc:date>2014-07-13T20:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replace multiple IFs statement by IF list contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-multiple-IFs-statement-by-IF-list-contains/m-p/666787#M242585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try match function also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=IF( Match( MyField,'A','B','C','D' ))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2014 20:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-multiple-IFs-statement-by-IF-list-contains/m-p/666787#M242585</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-13T20:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace multiple IFs statement by IF list contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-multiple-IFs-statement-by-IF-list-contains/m-p/666788#M242586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=IF( Match( MyField,'A','B','C','D' ),...,...)&lt;/SPAN&gt; strictly equivalent to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(MyField = 'A' OR MyField = 'B' OR MyField = 'C' OR MyField = 'D', ..., ...)&lt;/SPAN&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2014 20:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-multiple-IFs-statement-by-IF-list-contains/m-p/666788#M242586</guid>
      <dc:creator />
      <dc:date>2014-07-13T20:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace multiple IFs statement by IF list contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-multiple-IFs-statement-by-IF-list-contains/m-p/666789#M242587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right or may be you can use &lt;STRONG&gt;Index() &lt;/STRONG&gt;function for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2014 20:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-multiple-IFs-statement-by-IF-list-contains/m-p/666789#M242587</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-13T20:51:10Z</dc:date>
    </item>
  </channel>
</rss>

