<?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: Show YTD as total column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519103#M437313</link>
    <description>&lt;P&gt;try with total&lt;/P&gt;&lt;P&gt;Sum(total {&amp;lt;Year={$(=Max(Year))}, Month=&amp;gt;}[# Hours])&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 09:45:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-11T09:45:17Z</dc:date>
    <item>
      <title>Show YTD as total column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519096#M437312</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope somebody&amp;nbsp;can help me with this problem. &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Example data:&lt;/P&gt;&lt;P&gt;Name | Month | # Hours&lt;/P&gt;&lt;P&gt;&amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JAN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FEB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8&lt;/P&gt;&lt;P&gt;I would like to have an extra column in this pivot table with # Hours (YTD).&amp;nbsp;When i use this measure: Num((Sum({&amp;lt;Year={$(=Max(Year))}, Month={'&amp;lt;=$(=Max(Month))'}&amp;gt;}[# Hours]) the pivot table should look like this, when filtering on month FEB:&lt;/P&gt;&lt;P&gt;Month : FEB|2018&lt;/P&gt;&lt;P&gt;Name |&amp;nbsp; # Hours | # Hours YTD&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16&lt;/P&gt;&lt;P&gt;...but what i get is this:&lt;/P&gt;&lt;P&gt;Month : JAN|2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FEB&lt;SPAN&gt;|2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Name |&amp;nbsp; # Hours | # Hours YTD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Name |&amp;nbsp; # Hours | # Hours YTD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried using calculated dimension with max month, but then i only get the FEB data, JAN excluded.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody knows how I can get the desired outcome?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519096#M437312</guid>
      <dc:creator>rh205bip</dc:creator>
      <dc:date>2018-12-11T09:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD as total column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519103#M437313</link>
      <description>&lt;P&gt;try with total&lt;/P&gt;&lt;P&gt;Sum(total {&amp;lt;Year={$(=Max(Year))}, Month=&amp;gt;}[# Hours])&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519103#M437313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-11T09:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD as total column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519111#M437315</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yeah, i tried that also. But then i get the same YTD for every Employee (Name), because its the total of hours, but not the total per employee.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519111#M437315</guid>
      <dc:creator>rh205bip</dc:creator>
      <dc:date>2018-12-11T09:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD as total column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519134#M437322</link>
      <description>&lt;P&gt;can you try "&amp;nbsp;total &amp;lt;Employee&amp;gt;" instead of only total on Expression?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 10:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519134#M437322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-11T10:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD as total column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519165#M437332</link>
      <description>&lt;P&gt;Thanks for the quick replies, much appreciated!&lt;/P&gt;&lt;P&gt;When i add&amp;nbsp;&lt;SPAN&gt;total &amp;lt;Employee&amp;gt; the table suddenly shows all months, instead of the selected month.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 10:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519165#M437332</guid>
      <dc:creator>rh205bip</dc:creator>
      <dc:date>2018-12-11T10:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD as total column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519209#M437335</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try aggregating over the name:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;AGGR(&lt;/STRONG&gt;&lt;/FONT&gt;Sum({&amp;lt;Year={$(=Max(Year))}, Month={"&amp;lt;=$(=Max(Month))"}&amp;gt;}[# Hours])&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;,Name)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;Then the result will be caculated in one field, per name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 11:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519209#M437335</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2018-12-11T11:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD as total column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519239#M437336</link>
      <description>&lt;P&gt;Allright, we are getting close:D&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;AGGR(&lt;/STRONG&gt;&lt;/FONT&gt;Sum({&amp;lt;Year={$(=Max(Year))}, Month={"&amp;lt;=$(=Max(Month))"}&amp;gt;}[# Hours])&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;,Name)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;Works like a charm, thanks. But now i need a second AGGR measure on #&amp;nbsp; Projecthours..&lt;/P&gt;&lt;P&gt;When i do the following:&lt;/P&gt;&lt;P&gt;=AGGR(Sum({&amp;lt;Year={$(=Max(Year))}, Month={"&amp;lt;=$(=Max(Month))"}&amp;gt;}[# Hours]),Name)&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&lt;/P&gt;&lt;P&gt;AGGR(Sum({&amp;lt;Year={$(=Max(Year))}, Month={"&amp;lt;=$(=Max(Month))"}&amp;gt;}[# Projecthours]),Name)&lt;/P&gt;&lt;P&gt;I dont get the expected outcome..only a few are correctly filled others not showing at all.&lt;/P&gt;&lt;P&gt;I know that sum X + sum Y works like this, is AGGR different in this manner?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 12:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519239#M437336</guid>
      <dc:creator>rh205bip</dc:creator>
      <dc:date>2018-12-11T12:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD as total column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519242#M437337</link>
      <description>&lt;P&gt;Probably best to do it within the aggregation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=AGGR(Sum({&amp;lt;Year={$(=Max(Year))}, Month={"&amp;lt;=$(=Max(Month))"}&amp;gt;}[# Hours])
+ 
Sum({&amp;lt;Year={$(=Max(Year))}, Month={"&amp;lt;=$(=Max(Month))"}&amp;gt;}[# Projecthours]),Name)&lt;/PRE&gt;&lt;P&gt;Or even&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=AGGR(Sum({&amp;lt;Year={$(=Max(Year))}, Month={"&amp;lt;=$(=Max(Month))"}&amp;gt;}[# Hours]+[# Projecthours]),Name)&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Dec 2018 12:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519242#M437337</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2018-12-11T12:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD as total column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519262#M437339</link>
      <description>Great! i will use the first one, because i need to use different fields in the set analysis.</description>
      <pubDate>Tue, 11 Dec 2018 12:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-YTD-as-total-column/m-p/1519262#M437339</guid>
      <dc:creator>rh205bip</dc:creator>
      <dc:date>2018-12-11T12:42:54Z</dc:date>
    </item>
  </channel>
</rss>

