<?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 Set analysis replacing IF (with AND OR (AND .. OR ..)  etc) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-replacing-IF-with-AND-OR-AND-OR-etc/m-p/375167#M494413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you should avoid so complicated expressions in Set Aanalysis.&lt;/P&gt;&lt;P&gt;I would create a field in script time e use this flag as a Set Analysis expression filter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 12:15:23 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2012-04-02T12:15:23Z</dc:date>
    <item>
      <title>Set analysis replacing IF (with AND OR (AND .. OR ..)  etc)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-replacing-IF-with-AND-OR-AND-OR-etc/m-p/375165#M494411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a dashboard and need to convert some tricky IF conditions into SET Analysis.&lt;/P&gt;&lt;P&gt;List all green items (see attached picture for example):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF&amp;nbsp; (F2=A AND (F1=N OR F1=M)) OR&lt;BR /&gt; (F2=B) OR&lt;BR /&gt; (F2=C) OR&lt;BR /&gt; (F2=D AND F1=P)&lt;/P&gt;&lt;P&gt;then ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've attached a picture where my example data is visualized in a simple way (green and white items).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 08:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-replacing-IF-with-AND-OR-AND-OR-etc/m-p/375165#M494411</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-03-29T08:15:58Z</dc:date>
    </item>
    <item>
      <title>Set analysis replacing IF (with AND OR (AND .. OR ..)  etc)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-replacing-IF-with-AND-OR-AND-OR-etc/m-p/375166#M494412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Robert&lt;/P&gt;&lt;P&gt;I don't know you other fields, but let us say that you are trying to sum VALUE&lt;/P&gt;&lt;P&gt;You can use set analysis to operate with different sets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you expression could be: &lt;/P&gt;&lt;P&gt;sum ( { &amp;lt;F2={A}, F1={N,M}&amp;gt;+&amp;lt;F2={B}&amp;gt;+&amp;lt;F2={C}&amp;gt;+&amp;lt;F2={D}, F1={P}&amp;gt;}&amp;nbsp; value) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2012 21:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-replacing-IF-with-AND-OR-AND-OR-etc/m-p/375166#M494412</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-04-01T21:49:12Z</dc:date>
    </item>
    <item>
      <title>Set analysis replacing IF (with AND OR (AND .. OR ..)  etc)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-replacing-IF-with-AND-OR-AND-OR-etc/m-p/375167#M494413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you should avoid so complicated expressions in Set Aanalysis.&lt;/P&gt;&lt;P&gt;I would create a field in script time e use this flag as a Set Analysis expression filter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 12:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-replacing-IF-with-AND-OR-AND-OR-etc/m-p/375167#M494413</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-04-02T12:15:23Z</dc:date>
    </item>
  </channel>
</rss>

