<?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: Subtracting AGGR equations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784866#M277766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, both. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, neither options have been successful so far. The two AGGR() functions are dimensions in my pivot table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 14:27:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-11T14:27:25Z</dc:date>
    <item>
      <title>Subtracting AGGR equations</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784863#M277763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Pivot Table by which two of my dimensions are AGGR equations. I would like to subtract the outputs of these two columns into a third column but am struggling to do so - I'm guessing because of the AGGR().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two columns are as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total Days&lt;/STRONG&gt; = Aggr(count(DATE.day),DATE.year)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Days Off&lt;/STRONG&gt; = Aggr(sum(TIMEOFF),USER.Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas how to subtract the results of these two equations in a third column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 13:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784863#M277763</guid>
      <dc:creator />
      <dc:date>2015-03-11T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting AGGR equations</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784864#M277764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Try using Num() like:&lt;/P&gt;&lt;P&gt;Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr(count(DATE.day),DATE.year)&lt;/SPAN&gt;) - Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Aggr(sum(TIMEOFF),USER.Id)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;I am not sure whether it works but you can try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 13:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784864#M277764</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-11T13:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting AGGR equations</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784865#M277765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try doing something like this for your third expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Total Days] - [Days Off]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where your first two expressions label are Total Days and Days Off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 13:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784865#M277765</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-11T13:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting AGGR equations</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784866#M277766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, both. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, neither options have been successful so far. The two AGGR() functions are dimensions in my pivot table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 14:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784866#M277766</guid>
      <dc:creator />
      <dc:date>2015-03-11T14:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting AGGR equations</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784867#M277767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a reason you have them as a dimension and not expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 14:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784867#M277767</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-11T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting AGGR equations</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784868#M277768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorted it out in the end, if anyone is trying to do similar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To subtract two aggr() functions, the entire equation then needs to be wrapped in aggr()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(&lt;/P&gt;&lt;P&gt;aggr(...)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;aggr(...)&lt;/P&gt;&lt;P&gt;,FIELD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to be working - thanks all for your suggestions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 15:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784868#M277768</guid>
      <dc:creator />
      <dc:date>2015-03-12T15:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting AGGR equations</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784869#M277769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest marking your answer as correct so that the thread can be closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 15:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-AGGR-equations/m-p/784869#M277769</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-12T15:58:02Z</dc:date>
    </item>
  </channel>
</rss>

