<?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: Sum of values from Jan to Dec for current year and last year in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766112#M590939</link>
    <description>&lt;P&gt;Assuming your Months are just text fields and not date fields, you should just be able to add YEAR as the second dimension in your pivot table.&amp;nbsp; of course YEAR should be calculated in your calendar.&amp;nbsp; it will then look like the attached&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 18:35:55 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2020-12-03T18:35:55Z</dc:date>
    <item>
      <title>Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1765949#M590938</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Can you please help how to sum Actual hours for current year(Jan to Dec) and previous year(Jan to Dec) and display it after plant column in the&amp;nbsp;Pivot Table shown below?&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KuppuswamyS_1-1606992047631.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45163i33D76756B5022E75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KuppuswamyS_1-1606992047631.png" alt="KuppuswamyS_1-1606992047631.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 10:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1765949#M590938</guid>
      <dc:creator>KuppuswamyS</dc:creator>
      <dc:date>2020-12-03T10:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766112#M590939</link>
      <description>&lt;P&gt;Assuming your Months are just text fields and not date fields, you should just be able to add YEAR as the second dimension in your pivot table.&amp;nbsp; of course YEAR should be calculated in your calendar.&amp;nbsp; it will then look like the attached&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766112#M590939</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-03T18:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766113#M590940</link>
      <description>&lt;P&gt;of course in your expression you should have a set analysis that limits it to current year and last year.&amp;nbsp; the way i would do that is create a variable for current year and prior year&lt;/P&gt;&lt;P&gt;vCurrentYear=max(Year) and vPriorYear=vCurrentYear-1&lt;/P&gt;&lt;P&gt;then in your expression&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;=sum( {&amp;lt;Year={$(vCurrentYear),$(vPriorYear)}&amp;gt;}measure)&lt;/P&gt;&lt;P&gt;it could also be this way:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;=sum( {&amp;lt;Year={$(=max(Year)),$(=max(Year)-1)}&amp;gt;}measure)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766113#M590940</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-03T18:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766198#M590941</link>
      <description>&lt;P&gt;Hi Edwin,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Months are date fields and computed based on dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 06:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766198#M590941</guid>
      <dc:creator>KuppuswamyS</dc:creator>
      <dc:date>2020-12-04T06:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766202#M590942</link>
      <description>&lt;P&gt;Hi Edwin,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Your solution works but since months are calculated based on dates and it is a pivot table, I couldn't get value for previous year but previous year's months(Jan to Dec).&amp;nbsp; May I know how to get previous year value in pivot table? Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KuppuswamyS_1-1607064151041.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45212i6236546AE8A566F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KuppuswamyS_1-1607064151041.png" alt="KuppuswamyS_1-1607064151041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 06:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766202#M590942</guid>
      <dc:creator>KuppuswamyS</dc:creator>
      <dc:date>2020-12-04T06:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766303#M590943</link>
      <description>&lt;P&gt;check out the attached if that will help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 12:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1766303#M590943</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-04T12:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1767180#M590944</link>
      <description>&lt;P&gt;Hi Edwin,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I tried using formula in your qvw and able to get only for months but not year as this is pivot table.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Is there anyway to compute values in load statement and display it as dimension?&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 05:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1767180#M590944</guid>
      <dc:creator>KuppuswamyS</dc:creator>
      <dc:date>2020-12-09T05:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1767317#M590945</link>
      <description>&lt;P&gt;it was intended to show you that it is possible to group both years under the same month.&amp;nbsp; take a look at this one&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 13:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1767317#M590945</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-09T13:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1767873#M590946</link>
      <description>&lt;P&gt;Hi Edwin,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Sorry, Month field(computed based on date fields) is moved from Vertical axis to Horizontal axis in pivot table. So QlikView computes values on monthly basis but not year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to have value for last year and current year in vertical axis followed by Months for current year in horizontal axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KuppuswamyS_1-1607678839429.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45559i5483C9C274FD184D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KuppuswamyS_1-1607678839429.png" alt="KuppuswamyS_1-1607678839429.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 09:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1767873#M590946</guid>
      <dc:creator>KuppuswamyS</dc:creator>
      <dc:date>2020-12-11T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1768743#M590947</link>
      <description>&lt;P&gt;not sure what the issue is.&amp;nbsp; &amp;nbsp;month and both years are at the top&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_1-1608065292374.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45721i87646CB1347C1C9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_1-1608065292374.png" alt="edwin_1-1608065292374.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then add a %:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_2-1608065414119.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45722iC84D9E42006B190C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_2-1608065414119.png" alt="edwin_2-1608065414119.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;maybe you need to explain the requirements.&amp;nbsp; its not easily discernible from your picture what numbers you need it sounds like you wanted months somewhere else but your picture shows it to be in the column not rows.&lt;/P&gt;&lt;P&gt;not sure what you mean by vertical - did you mean in the columns?&amp;nbsp; and when you say year in the horizontal did you mean the rows as in dimensions?&lt;/P&gt;&lt;P&gt;you will then have prior and current year&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 20:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1768743#M590947</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-15T20:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1769130#M590948</link>
      <description>&lt;P&gt;Hi Edwin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Requirement is to show last year average hours and YTD average hours and current year months in columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Please check the attached excel sheet. I'm using Pivot table chart to display months of current year,&amp;nbsp; last year average hours and YTD average hours in&amp;nbsp;columns .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 04:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1769130#M590948</guid>
      <dc:creator>KuppuswamyS</dc:creator>
      <dc:date>2020-12-17T04:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1772352#M590949</link>
      <description>&lt;P&gt;normally, you cant have an expression outside of the pivots.&amp;nbsp; if you add the two expressions&lt;/P&gt;&lt;P&gt;Last Year Average Actual Hours YTD Average Actual Hours&lt;/P&gt;&lt;P&gt;it will be pivoted - you will get these for Jan, Feb, Mar, etc..&lt;/P&gt;&lt;P&gt;what you do is aggregate them and add them as dimensions.&amp;nbsp; this way the calculated value is not pivoted.&amp;nbsp; i adjusted the QVW to show you the total for prior year.&amp;nbsp; you can expand from that&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 19:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1772352#M590949</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-06T19:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1772353#M590950</link>
      <description />
      <pubDate>Wed, 06 Jan 2021 19:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1772353#M590950</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-06T19:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of values from Jan to Dec for current year and last year in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1773756#M590951</link>
      <description>&lt;P&gt;Hi Edwin,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; It works, thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 15:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-values-from-Jan-to-Dec-for-current-year-and-last-year-in/m-p/1773756#M590951</guid>
      <dc:creator>KuppuswamyS</dc:creator>
      <dc:date>2021-01-12T15:14:44Z</dc:date>
    </item>
  </channel>
</rss>

