<?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 Expression YOY in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-YOY/m-p/1254105#M866720</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;We have used the below logic to get last year MTD sales.(Ex:2015,Dec 1 to 13 sales).&lt;/P&gt;&lt;P&gt;Here i need to calculate previous year sales(Ex:2015,Dec 1 to 13 sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic to get 2015 DEC MTD sales :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;Year = {$(=max(Year)-1)},Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;}Month))&amp;gt;$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month)-1)"},&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Reported Date] = {"&amp;lt;=$(=addyears(max([Reported Date]),-1))"},[Current Sales Class Nbr]&amp;nbsp; = {001}&amp;gt;} TOTAL ([Invoice Merchandise Amt] + [Invoice Price Concession Amt]))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Reported Date format ='MM/DD/YYYY'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the logic to get 2014 sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>nareshthavidishetty</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Expression YOY</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-YOY/m-p/1254105#M866720</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;We have used the below logic to get last year MTD sales.(Ex:2015,Dec 1 to 13 sales).&lt;/P&gt;&lt;P&gt;Here i need to calculate previous year sales(Ex:2015,Dec 1 to 13 sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic to get 2015 DEC MTD sales :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;Year = {$(=max(Year)-1)},Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;}Month))&amp;gt;$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month)-1)"},&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Reported Date] = {"&amp;lt;=$(=addyears(max([Reported Date]),-1))"},[Current Sales Class Nbr]&amp;nbsp; = {001}&amp;gt;} TOTAL ([Invoice Merchandise Amt] + [Invoice Price Concession Amt]))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Reported Date format ='MM/DD/YYYY'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the logic to get 2014 sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-YOY/m-p/1254105#M866720</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression YOY</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-YOY/m-p/1254106#M866721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly I would highly recommend using a flag in the calendar to generate this sort of thing, it makes life a lot easier!&lt;/P&gt;&lt;P&gt;I think these are the only two places you need to change it but my brain isn't totally up to speed today&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;sum({$&amp;lt;Year = {$(=max(Year)-&lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt;)},Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;}Month))&amp;gt;$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month)-1)"},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Reported Date] = {"&amp;lt;=$(=addyears(max([Reported Date]),-&lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt;))"},[Current Sales Class Nbr]&amp;nbsp; = {001}&amp;gt;} TOTAL ([Invoice Merchandise Amt] + [Invoice Price Concession Amt]))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-YOY/m-p/1254106#M866721</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-13T12:30:31Z</dc:date>
    </item>
  </channel>
</rss>

