<?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 ISSUE FOR MULTIPLE YEARS in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292658#M403940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I won't know what exactly is going wrong, but one suggestion might be to use the set analysis for the firstsortedvalue() function also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;FirstSortedValue(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;Entity_Type={'O'}&amp;gt;}&lt;/SPAN&gt; Aggr(Sum({&amp;lt;Entity_Type={'O'}&amp;gt;} LIMITS), MONTH_ID),-MONTH_ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2016 01:56:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-21T01:56:31Z</dc:date>
    <item>
      <title>SUM ISSUE FOR MULTIPLE YEARS</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292654#M403936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached please find the qvw.&amp;nbsp; Here is a brief description of the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with years 2016 and 2017, each year has a monthly snapshot Amounts.&amp;nbsp; I would&amp;nbsp; like to sum the Amounts for each&amp;nbsp; "Year"&amp;nbsp; but only for the maximum MONTH_ID.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case I would like to see Year 2016&amp;nbsp; Sales Amount ='1000000' and&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Year 2017 Sales Amount ='1000000' also. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Using Qlik 11.2 SR13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 21:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292654#M403936</guid>
      <dc:creator />
      <dc:date>2016-12-20T21:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: SUM ISSUE FOR MULTIPLE YEARS</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292655#M403937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are already using dimension as Year.&lt;/P&gt;&lt;P&gt;Why dont you just use&amp;nbsp; Amounts as your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly is your requirement or trying to achieve in that table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expr: = Amounts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expr: = Max({&amp;lt; Year = { $(=Max(Year)-1), $(=Max(Year)) } &amp;gt;} Amounts)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 22:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292655#M403937</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-20T22:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: SUM ISSUE FOR MULTIPLE YEARS</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292656#M403938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=FirstSortedValue(Amounts, -TRANS_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=FirstSortedValue(Aggr(Sum(Amounts), TRANS_ID), -TRANS_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 22:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292656#M403938</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-20T22:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: SUM ISSUE FOR MULTIPLE YEARS</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292657#M403939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried using urs in my original App and it doesnt work,Below is my actual expresion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(Aggr(Sum({&amp;lt;Entity_Type={'O'}&amp;gt;} LIMITS), MONTH_ID),-MONTH_ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 01:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292657#M403939</guid>
      <dc:creator />
      <dc:date>2016-12-21T01:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: SUM ISSUE FOR MULTIPLE YEARS</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292658#M403940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I won't know what exactly is going wrong, but one suggestion might be to use the set analysis for the firstsortedvalue() function also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;FirstSortedValue(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;Entity_Type={'O'}&amp;gt;}&lt;/SPAN&gt; Aggr(Sum({&amp;lt;Entity_Type={'O'}&amp;gt;} LIMITS), MONTH_ID),-MONTH_ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 01:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292658#M403940</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-21T01:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: SUM ISSUE FOR MULTIPLE YEARS</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292659#M403941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Sunny, can we use only() outside the aggr() get that specific monthID ? Just wondering? &lt;/P&gt;&lt;P&gt;LLike &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue(limits, -only(aggr(sum(), month_id))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 02:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292659#M403941</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-21T02:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: SUM ISSUE FOR MULTIPLE YEARS</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292660#M403942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this is a correct syntax....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 10:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292660#M403942</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-21T10:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: SUM ISSUE FOR MULTIPLE YEARS</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292661#M403943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry you are right. I dont know what i was thinking. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 14:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-ISSUE-FOR-MULTIPLE-YEARS/m-p/1292661#M403943</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-21T14:20:59Z</dc:date>
    </item>
  </channel>
</rss>

