<?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: Combining logical operators in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597366#M221229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN class="replyToName"&gt;Santharubban as well&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 13:50:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-03T13:50:34Z</dc:date>
    <item>
      <title>Combining logical operators in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597362#M221225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The following expression works OK but does not handle cancelled invoices (where [Invoice State] = 'Cancelled')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;sum({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Invoice Posted Date]&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(vReportdate)"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;[Invoiced QTY]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The problem is that even if they are cancelled I need to include them if [Cancelled Date] &amp;gt; vReportdate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I need to build in the logic:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;[Invoice State] &amp;lt;&amp;gt; 'Cancelled' or (&lt;SPAN style="font-size: 12pt;"&gt;[Invoice State] = 'Cancelled' AND&amp;nbsp; [Cancelled Date] &amp;gt; vReportdate)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;or written another way&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;NOT( [Invoice State] = 'Cancelled' and [Cancelled Date] &amp;lt;= vReportdate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The report date can be amended by the end user to be any date in the past or it defaults to today&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Can anyone help please?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597362#M221225</guid>
      <dc:creator />
      <dc:date>2014-04-03T13:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Combining logical operators in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597363#M221226</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;Create the two elements in &amp;lt;&amp;gt; brackets and union them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Invoice Posted Date] = {"&amp;lt;=$(vReportdate)"}, [Invoice State] -= {'Cancelled'}&amp;gt; + &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;[Invoice State] = {'Cancelled'}, [Cancelled Date] = {"&amp;lt;=$(vReportdate)"}&amp;gt;} [Invoiced QTY])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add any extra terms to each side if required to ensure that there is no double counting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597363#M221226</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-04-03T13:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Combining logical operators in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597364#M221227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wain,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Invoice Posted Date] = {"&amp;lt;=$(vReportdate)"}, [Invoice State] -= {'Cancelled'}&amp;gt; }&amp;nbsp; [Invoiced QTY]) +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;[Invoice State] = {'Cancelled'}, [Cancelled Date] = {"&amp;lt;=$(vReportdate)"}&amp;gt;} [Invoiced QTY])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597364#M221227</guid>
      <dc:creator>santharubban</dc:creator>
      <dc:date>2014-04-03T13:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Combining logical operators in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597365#M221228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan for your quick reply. I will try that now. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597365#M221228</guid>
      <dc:creator />
      <dc:date>2014-04-03T13:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Combining logical operators in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597366#M221229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN class="replyToName"&gt;Santharubban as well&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-logical-operators-in-set-analysis/m-p/597366#M221229</guid>
      <dc:creator />
      <dc:date>2014-04-03T13:50:34Z</dc:date>
    </item>
  </channel>
</rss>

