<?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: Compare selected years sales with previous years sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44351#M7440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still the same result. I'm selecting the year from the field I added to my sheet which is Saledate.year. Is there something wrong with it? Logically this expression should work but it's n ot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2018 07:29:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-09T07:29:41Z</dc:date>
    <item>
      <title>Compare selected years sales with previous years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44346#M7435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table like Salesdate,product_id,Total. I added a KPI and want to show Selected Years Sales and and previous years sales.&lt;/P&gt;&lt;P&gt;I added a field tom my sheet to select the year.(salesdate.year).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should be in expression of the kpi data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 13:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44346#M7435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-02T13:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare selected years sales with previous years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44347#M7436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create Field like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Salesdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; product_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Salesdate) as salesdate.year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, Measure looks like this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='Current Year ' &amp;amp; Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;salesdate.year = {'$(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;salesdate.year&lt;/SPAN&gt;))'}&amp;gt;} &lt;/SPAN&gt;Total) &amp;amp; Chr(10) &amp;amp; 'Previous Year ' &amp;amp; Sum({&amp;lt;salesdate.year = {'$(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;salesdate.year-1&lt;/SPAN&gt;))'}&amp;gt;} Total)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2018 01:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44347#M7436</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-02-04T01:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare selected years sales with previous years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44348#M7437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a filed in Sales table like year which is the year of the sales_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 KPI's now. both have different measurment. but the results are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="New Bitmap Image.bmp" class="jive-image image-1" src="/legacyfs/online/192699_New Bitmap Image.bmp" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 12:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44348#M7437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-07T12:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Compare selected years sales with previous years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44349#M7438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Results are the same.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="New Bitmap Image (2).bmp" class="jive-image image-1" src="/legacyfs/online/192825_New Bitmap Image (2).bmp" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 11:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44349#M7438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-08T11:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare selected years sales with previous years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44350#M7439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution that provided by Anil is correct, with the observation that the correct expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;='Current Year ' &amp;amp; Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;salesdate.year = {'$(=Max(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;salesdate.year&lt;/SPAN&gt;))'}&amp;gt;} &lt;/SPAN&gt;Total) &amp;amp; Chr(10) &amp;amp; 'Previous Year ' &amp;amp; Sum({&amp;lt;salesdate.year = {'$(=Max(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;salesdate.year&lt;SPAN style="color: #ff0000;"&gt;)-1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;'}&amp;gt;} Total)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 17:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44350#M7439</guid>
      <dc:creator>ElizaF</dc:creator>
      <dc:date>2018-02-08T17:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare selected years sales with previous years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44351#M7440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still the same result. I'm selecting the year from the field I added to my sheet which is Saledate.year. Is there something wrong with it? Logically this expression should work but it's n ot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 07:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44351#M7440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-09T07:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compare selected years sales with previous years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44352#M7441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create these variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrentYear = Max(Year)&lt;/P&gt;&lt;P&gt;vPreviousYear = Max(Year-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrentTotal = Sum({&amp;lt;Year={$(vCurrentYear)}&amp;gt;}Total)&lt;/P&gt;&lt;P&gt;vPreviousTotal = Sum({&amp;lt;Year={$(vPreviousYear)}&amp;gt;}Total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this solve your problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 01:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-selected-years-sales-with-previous-years-sales/m-p/44352#M7441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-11T01:27:58Z</dc:date>
    </item>
  </channel>
</rss>

