<?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: Set Analysis Addition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549460#M440129</link>
    <description>&lt;P&gt;What exactly goes wrong when you use the combined expression? See an incorrect number? See null? If you see null, you can try this&lt;/P&gt;&lt;PRE&gt;=Num(
  RangeSum(
    Count({&amp;lt;Salesdate={"&amp;lt;=$(vCurrentDate)"}&amp;gt;}indictor),
   -Count({&amp;lt;Salesdate={"&amp;lt;=01/01/2018"}&amp;gt;}indicator),
   -Count({&amp;lt;Salesdate={"&amp;lt;=$(vPrevDate)"}&amp;gt;}indicator)
   -Count({&amp;lt;Salesdate={"&amp;lt;=01/01/2017"}&amp;gt;}indicator)
  )
, '###,##0')&lt;/PRE&gt;&lt;P&gt;Or may be this (changed the sign for the last count from - to +&lt;/P&gt;&lt;PRE&gt;=Num(
  RangeSum(
    Count({&amp;lt;Salesdate={"&amp;lt;=$(vCurrentDate)"}&amp;gt;}indictor),
   -Count({&amp;lt;Salesdate={"&amp;lt;=01/01/2018"}&amp;gt;}indicator),
   -Count({&amp;lt;Salesdate={"&amp;lt;=$(vPrevDate)"}&amp;gt;}indicator)
   &lt;FONT color="#FF0000"&gt;+&lt;/FONT&gt;Count({&amp;lt;Salesdate={"&amp;lt;=01/01/2017"}&amp;gt;}indicator)
  )
, '###,##0')&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Feb 2019 20:50:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-02-26T20:50:54Z</dc:date>
    <item>
      <title>Set Analysis Addition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549290#M440111</link>
      <description>&lt;P&gt;To whoever can help me!!&lt;BR /&gt;&lt;BR /&gt;I want to do a YOY analysis for my KPI.&amp;nbsp; I have five years of data.&amp;nbsp;&amp;nbsp;I want to&amp;nbsp;subtract out the counts of&amp;nbsp;01/01/2018 thru 08/29/2018 against 01/01/2017 thru 08/28/2017, a YOY.&lt;/P&gt;&lt;P&gt;Now I know this algorithm is wrong (being new to Qlik View Set Analysis)&lt;BR /&gt;&lt;BR /&gt;=Num(Count({&amp;lt;Salesdate={"&amp;lt;=$(vCurrentDate)"}&amp;gt;}indictor) - count({&amp;lt;Salesdate={"&amp;lt;=01/01/2018"}&amp;gt;}indicator)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; - Count({&amp;lt;Salesdate={"&amp;lt;=$(vPrevDate)"}&amp;gt;}indicator)&amp;nbsp;&amp;nbsp;&amp;nbsp; - count({&amp;lt;Salesdate={"&amp;lt;=01/01/2017"}&amp;gt;}indicator), '###,##0')&lt;/P&gt;&lt;P&gt;However, individual everything for each year works fine!&amp;nbsp; I get my 2018 and 2017 counts individuals so I know I'm doing my set analysis correctly.&lt;/P&gt;&lt;P&gt;Where I run&amp;nbsp;into issues is how to perform an&lt;U&gt;&lt;STRONG&gt; arithmetic operation&lt;/STRONG&gt; &lt;/U&gt;on both sets.&amp;nbsp; I know I'm supposed to get a negative number.&amp;nbsp; My first set has 900 records (2018) and my second set has 2,300 (2017).&amp;nbsp;&amp;nbsp; I should get a negative number!!&lt;/P&gt;&lt;P&gt;Am I using the correct functions?&amp;nbsp;&amp;nbsp; I have review a lot of material and it all appears to be just&amp;nbsp; comparing year to year&amp;nbsp;not YOY.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549290#M440111</guid>
      <dc:creator>tim_at_ford</dc:creator>
      <dc:date>2024-11-16T21:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Addition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549422#M440118</link>
      <description>Can you share some data for help you?</description>
      <pubDate>Tue, 26 Feb 2019 19:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549422#M440118</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-26T19:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Addition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549428#M440121</link>
      <description>&lt;P&gt;Think you may have made a small mistake; you used '&lt;EM&gt;&amp;lt;= 01/01/2017&lt;/EM&gt;' rather than &amp;gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Num(Count({&amp;lt;Salesdate={"&amp;lt;=$(vCurrentDate)"}&amp;gt;}indictor) - count({&amp;lt;Salesdate={"&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&amp;gt;=&lt;/STRONG&gt;&lt;/FONT&gt;01/01/2018"}&amp;gt;}indicator)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - Count({&amp;lt;Salesdate={"&amp;lt;=$(vPrevDate)"}&amp;gt;}indicator)&amp;nbsp;&amp;nbsp;&amp;nbsp; - count({&amp;lt;Salesdate={"&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;gt;=&lt;/FONT&gt;&lt;/STRONG&gt;01/01/2017"}&amp;gt;}indicator), '###,##0')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 19:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549428#M440121</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-02-26T19:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Addition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549436#M440122</link>
      <description>&lt;P&gt;You should also put dates from up to each count, if you use Count ({&amp;lt;Salesdate = {"&amp;lt;= $ (vCurrentDate)"}&amp;gt;} indictor) this account will bring data from the previous year which you do not need.&lt;BR /&gt;you should express something like the following&lt;/P&gt;&lt;P&gt;= Num (&lt;/P&gt;&lt;P&gt;(Count ({&amp;lt;Salesdate = {"&amp;gt; = 01/01/2018 &amp;lt;= $ (vCurrentDate)"}&amp;gt;} indictor)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;count ({&amp;lt;Salesdate = {"&amp;gt; = 01/01/2018 &amp;lt;= $ ( vCurrentDate) "}&amp;gt;} indicator))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;(Count ({&amp;lt;Salesdate = {"&amp;gt; = 01/01/2017 &amp;lt;= $ (vPrevDate)"}&amp;gt;} indicator)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;count ({&amp;lt;Salesdate = {"&amp;gt; = 01/01/2017 &amp;lt;= $ (vPrevDate) "}&amp;gt;} indicator))&lt;/P&gt;&lt;P&gt;, '###, ## 0')&lt;/P&gt;&lt;P&gt;that way I will only tell you the data contained in that range,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 19:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549436#M440122</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-26T19:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Addition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549460#M440129</link>
      <description>&lt;P&gt;What exactly goes wrong when you use the combined expression? See an incorrect number? See null? If you see null, you can try this&lt;/P&gt;&lt;PRE&gt;=Num(
  RangeSum(
    Count({&amp;lt;Salesdate={"&amp;lt;=$(vCurrentDate)"}&amp;gt;}indictor),
   -Count({&amp;lt;Salesdate={"&amp;lt;=01/01/2018"}&amp;gt;}indicator),
   -Count({&amp;lt;Salesdate={"&amp;lt;=$(vPrevDate)"}&amp;gt;}indicator)
   -Count({&amp;lt;Salesdate={"&amp;lt;=01/01/2017"}&amp;gt;}indicator)
  )
, '###,##0')&lt;/PRE&gt;&lt;P&gt;Or may be this (changed the sign for the last count from - to +&lt;/P&gt;&lt;PRE&gt;=Num(
  RangeSum(
    Count({&amp;lt;Salesdate={"&amp;lt;=$(vCurrentDate)"}&amp;gt;}indictor),
   -Count({&amp;lt;Salesdate={"&amp;lt;=01/01/2018"}&amp;gt;}indicator),
   -Count({&amp;lt;Salesdate={"&amp;lt;=$(vPrevDate)"}&amp;gt;}indicator)
   &lt;FONT color="#FF0000"&gt;+&lt;/FONT&gt;Count({&amp;lt;Salesdate={"&amp;lt;=01/01/2017"}&amp;gt;}indicator)
  )
, '###,##0')&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Feb 2019 20:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1549460#M440129</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-26T20:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Addition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1552426#M440389</link>
      <description>&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;This issue has been resolved for&amp;nbsp;arithmetic of the sets.&amp;nbsp; However, I've got another one now involving the two hard coded January dates, which I&amp;nbsp;need, 01/01/2018 and 01/01/2017!!&lt;/P&gt;&lt;P&gt;In my set analysis statement for either {&amp;lt;Salesdate={"&amp;lt;=01/01/2017"}&amp;gt;}&lt;/P&gt;&lt;P&gt;I want to make the 01/01 a constant and then the 2017 variable.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;My current date processing is such:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08/29/2018 thru 01/01/2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08/29/2017 thru 01/01/2017&lt;/P&gt;&lt;P&gt;Now I want to make both 01/01 (MM/DD) constant and the year variable, conceptual&amp;nbsp;example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;Salesdate={"&amp;lt;=(variable one with 01/01)(variable two 2017 or whatever year I am comparing to)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;How do I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 14:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1552426#M440389</guid>
      <dc:creator>tim_at_ford</dc:creator>
      <dc:date>2019-03-05T14:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Addition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1552556#M440393</link>
      <description>&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;Never mind!! I figured out the 01/01/Year or Year selected issue.&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Addition/m-p/1552556#M440393</guid>
      <dc:creator>tim_at_ford</dc:creator>
      <dc:date>2019-03-05T18:23:45Z</dc:date>
    </item>
  </channel>
</rss>

