<?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 using IF AND OR statements in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-IF-AND-OR-statements-in-Set-Analysis/m-p/246461#M1186508</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 am trying to figure out a set statement for the following rule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF [Created Date] &amp;lt;= current select, AND [Close Date] &amp;gt; current select, OR [Order Status] -= 'Cancelled', 'Rejected', sum sales, 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the end goal is to get a statement that sums up all open orders on any given day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't even know if this is the best way to achieve this but due to the nature of open orders constantly changing I need to be able to have a progressive view on it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 10:54:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-08T10:54:19Z</dc:date>
    <item>
      <title>using IF AND OR statements in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-IF-AND-OR-statements-in-Set-Analysis/m-p/246461#M1186508</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 am trying to figure out a set statement for the following rule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF [Created Date] &amp;lt;= current select, AND [Close Date] &amp;gt; current select, OR [Order Status] -= 'Cancelled', 'Rejected', sum sales, 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the end goal is to get a statement that sums up all open orders on any given day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't even know if this is the best way to achieve this but due to the nature of open orders constantly changing I need to be able to have a progressive view on it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 10:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-IF-AND-OR-statements-in-Set-Analysis/m-p/246461#M1186508</guid>
      <dc:creator />
      <dc:date>2011-09-08T10:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: using IF AND OR statements in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-IF-AND-OR-statements-in-Set-Analysis/m-p/246462#M1186509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Created Date]={&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;"&amp;lt;=$(vCurrentSelect)"},[Close Date]=&lt;/SPAN&gt;{&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;"&amp;gt;=$(vCurrentSelect)"}&lt;/SPAN&gt;&amp;gt;+&amp;lt;[Order Status-={'Cancelled','Rejected'}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 11:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-IF-AND-OR-statements-in-Set-Analysis/m-p/246462#M1186509</guid>
      <dc:creator />
      <dc:date>2011-09-08T11:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: using IF AND OR statements in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-IF-AND-OR-statements-in-Set-Analysis/m-p/246463#M1186510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, maybe like&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({&amp;lt;[Created Date] = {"&amp;lt;=$(=max(Date))"},[Close Date] = {"&amp;gt;$(=max(Date))"}, [Order Status] -= {'Cancelled','Rejected'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Date is your date field to select from. I also assumed a AND [Order status] above given your textual description (all open orders on any given date). If there is only one OPEN status, you could use [Order Status] = {'Open'} instead above part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: You probably need to clear some fields also, like Date, more Date fields?&lt;/P&gt;&lt;P&gt;= sum({&amp;lt;[Created Date] = {"&amp;lt;=$(=max(Date))"},[Close Date] = {"&amp;gt;$(=max(Date))"}, [Order Status] -= {'Cancelled','Rejected'}, Date=&amp;nbsp; &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 11:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-IF-AND-OR-statements-in-Set-Analysis/m-p/246463#M1186510</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-08T11:16:55Z</dc:date>
    </item>
  </channel>
</rss>

