<?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: Case when equivalent in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Case-when-equivalent/m-p/1318145#M841105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan, I had difficulties on syntax &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Apr 2017 21:01:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-04-25T21:01:51Z</dc:date>
    <item>
      <title>Case when equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Case-when-equivalent/m-p/1318143#M841103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to convert the expression below for Qlik to understand. &lt;/P&gt;&lt;P&gt;case when SUM((CASE WHEN ((((TRIM(`FIELD1`) = 'VALUE1') AND (TRIM(`FIELD2`) = 'VALUE2')) AND (TRIM(`FIELD3`) != ‘VALUE3')) AND TRIM(`FIELD4`) IN ('VALUE4','VALUE5')) THEN 1 ELSE 0 END )) &amp;gt; 0 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM((CASE&amp;nbsp; WHEN ((((TRIM(`FIELD1`) = ' VALUE1') AND (TRIM(`Source`) = ' VALUE2')) AND (TRIM(`FIELD3`) != ‘VALUE3')) AND TRIM(`FIELD4`) NOT IN ('VALUE6', 'VALUE7')) THEN 1 ELSE 0 END ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have been using sum(if(match()) to perform the count but here having a condition of &amp;gt; 0 is giving me difficulties. But this is easy I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-when-equivalent/m-p/1318143#M841103</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Case when equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Case-when-equivalent/m-p/1318144#M841104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If() function seems to be an appropriate equivalent, in combination with a match(), just as you stated.&lt;/P&gt;&lt;P&gt;Note that you need to use three if() functions (you have three cases, two embedded in first)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;=If(&lt;/P&gt;&lt;P&gt;Sum( If( Trim(FIELD1) = 'VALUE1' and Trim(FIELD2) ='VALUE2' and Trim(FIELD3) &amp;lt;&amp;gt; 'Value3' and Match(Trim(FIELD4), 'VALUE3','VALUE5'),1,0)) &amp;gt;0,&lt;/P&gt;&lt;P&gt;Sum(If (.....))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's the issue with the &amp;gt;0 condition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 20:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-when-equivalent/m-p/1318144#M841104</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-25T20:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Case when equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Case-when-equivalent/m-p/1318145#M841105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan, I had difficulties on syntax &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 21:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-when-equivalent/m-p/1318145#M841105</guid>
      <dc:creator />
      <dc:date>2017-04-25T21:01:51Z</dc:date>
    </item>
  </channel>
</rss>

