<?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: Obtain the latest Year - Sum Quantity Sold in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Obtain-the-latest-Year-Sum-Quantity-Sold/m-p/1764987#M59154</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24530"&gt;@jerryr125&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vYearMaxQuantitySold&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[SalesDate.autoCalendar.Year] = {$(=max([SalesDate.autoCalendar.Year]))}&amp;gt;}[QuantitySold])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And use in the chart like $(vYearMaxQuantitySold)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the variable declaration, don't use = sign. Then it calculated the value n store in the variable. So if u use the variable in the chart, result might be wrong.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 15:38:04 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2020-11-27T15:38:04Z</dc:date>
    <item>
      <title>Obtain the latest Year - Sum Quantity Sold</title>
      <link>https://community.qlik.com/t5/App-Development/Obtain-the-latest-Year-Sum-Quantity-Sold/m-p/1764972#M59151</link>
      <description>&lt;P&gt;Hi - I am trying to create a variable that does the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Data contains Sales Date for the past four years (2016 - 2019) and the quantity sold&lt;/LI&gt;&lt;LI&gt;I would like have a variable which calculates the sum of the quantity sold for the most recent year (hence 2019)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Table fields:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SalesDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;QuantitySold&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Variable:&lt;/P&gt;&lt;P&gt;vYearMaxQuantitySold:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({$&amp;lt;[SalesDate.autoCalendar.Year] = {$(=max([SalesDate.autoCalendar.Year]))}&amp;gt;}[QuantitySold])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I try the formula above - does not work - any thoughts ? Jerry&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Obtain-the-latest-Year-Sum-Quantity-Sold/m-p/1764972#M59151</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2020-11-27T14:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain the latest Year - Sum Quantity Sold</title>
      <link>https://community.qlik.com/t5/App-Development/Obtain-the-latest-Year-Sum-Quantity-Sold/m-p/1764986#M59153</link>
      <description>&lt;P&gt;Variable:&lt;/P&gt;&lt;P&gt;vYearMaxQuantitySold&amp;nbsp;&lt;STRONG&gt;=max([SalesDate.autoCalendar.Year])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({$&amp;lt;[SalesDate.autoCalendar.Year] = {$(vYearMaxQuantitySold)}&amp;gt;}[QuantitySold])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 15:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Obtain-the-latest-Year-Sum-Quantity-Sold/m-p/1764986#M59153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-27T15:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain the latest Year - Sum Quantity Sold</title>
      <link>https://community.qlik.com/t5/App-Development/Obtain-the-latest-Year-Sum-Quantity-Sold/m-p/1764987#M59154</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24530"&gt;@jerryr125&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vYearMaxQuantitySold&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[SalesDate.autoCalendar.Year] = {$(=max([SalesDate.autoCalendar.Year]))}&amp;gt;}[QuantitySold])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And use in the chart like $(vYearMaxQuantitySold)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the variable declaration, don't use = sign. Then it calculated the value n store in the variable. So if u use the variable in the chart, result might be wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 15:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Obtain-the-latest-Year-Sum-Quantity-Sold/m-p/1764987#M59154</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-27T15:38:04Z</dc:date>
    </item>
  </channel>
</rss>

