<?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: Get Sales vs Last Year Sales for each year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-Sales-vs-Last-Year-Sales-for-each-year/m-p/1380984#M31381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please provide sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to info you have provided&lt;/P&gt;&lt;P&gt;you can try Sum({&amp;lt;[Region]={"A"},Year = {"$(=max(Year)-1)"}&amp;gt;}[Sales]) for Sales for Region A for chosen year -1&lt;/P&gt;&lt;P&gt;and for Sales for Region A for chosen year, you can use Sum({&amp;lt;[Region]={"A"},Year = {"$(=max(Year))"}&amp;gt;}[Sales])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2017 05:42:00 GMT</pubDate>
    <dc:creator>shraddha_g</dc:creator>
    <dc:date>2017-11-14T05:42:00Z</dc:date>
    <item>
      <title>Get Sales vs Last Year Sales for each year</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Sales-vs-Last-Year-Sales-for-each-year/m-p/1380982#M31379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;I have following information in my table&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Region (with 3 regions A, B &amp;amp; C)&lt;/LI&gt;&lt;LI&gt;Month (ex. 31/07/17 formatted as Jul-17)&lt;/LI&gt;&lt;LI&gt;Year (ex. 2017)&lt;/LI&gt;&lt;LI&gt;Sales $&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;In my report, I have a filter that lets me choose my year and now,I would like to show 6 KPI's which are the sales for each region, both for the chosen year as for the "chosen year -1".&lt;BR /&gt; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;I managed to set the 3 KPI's for the sales per region, per year but I cannot find a solution for the previous year.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sales for Region A for chosen year : Avg({$&amp;lt;[Region]={"A"}&amp;gt;}[Sales])&lt;/LI&gt;&lt;LI&gt;Sales for Region A for chosen year -1 : ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;Any idea how I could do this?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;Thanks in advance for your help &amp;amp; time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 19:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Sales-vs-Last-Year-Sales-for-each-year/m-p/1380982#M31379</guid>
      <dc:creator>aurelie_potvin</dc:creator>
      <dc:date>2017-11-13T19:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get Sales vs Last Year Sales for each year</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Sales-vs-Last-Year-Sales-for-each-year/m-p/1380983#M31380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a couple of ways to go about this depending on the structure of your data.&amp;nbsp; You might have a look at the Above function if your data is ordered that way.&amp;nbsp; Another way would be to build a table at load time that is keyed to your main table but that has last years sales in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 22:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Sales-vs-Last-Year-Sales-for-each-year/m-p/1380983#M31380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-13T22:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get Sales vs Last Year Sales for each year</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Sales-vs-Last-Year-Sales-for-each-year/m-p/1380984#M31381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please provide sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to info you have provided&lt;/P&gt;&lt;P&gt;you can try Sum({&amp;lt;[Region]={"A"},Year = {"$(=max(Year)-1)"}&amp;gt;}[Sales]) for Sales for Region A for chosen year -1&lt;/P&gt;&lt;P&gt;and for Sales for Region A for chosen year, you can use Sum({&amp;lt;[Region]={"A"},Year = {"$(=max(Year))"}&amp;gt;}[Sales])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 05:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Sales-vs-Last-Year-Sales-for-each-year/m-p/1380984#M31381</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-11-14T05:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get Sales vs Last Year Sales for each year</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Sales-vs-Last-Year-Sales-for-each-year/m-p/1380985#M31382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Shraddha, that worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 21:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Sales-vs-Last-Year-Sales-for-each-year/m-p/1380985#M31382</guid>
      <dc:creator>aurelie_potvin</dc:creator>
      <dc:date>2017-11-15T21:42:06Z</dc:date>
    </item>
  </channel>
</rss>

