<?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 date over year comparision in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806566#M668427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It is possible to implement the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ACT&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ACT LY&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;24-11-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3450&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;23-11-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1600&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22-11-2014&lt;/TD&gt;&lt;TD&gt;2500&lt;/TD&gt;&lt;TD&gt;2400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dimension&lt;/STRONG&gt;: date&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;measures: &lt;/STRONG&gt;sales&lt;/P&gt;&lt;P&gt;filter: date &amp;gt;= vTrendStart ; date &amp;lt;= vTrendEnd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be easy, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 10:28:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-24T10:28:12Z</dc:date>
    <item>
      <title>date over year comparision</title>
      <link>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806566#M668427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It is possible to implement the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ACT&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ACT LY&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;24-11-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3450&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;23-11-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1600&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22-11-2014&lt;/TD&gt;&lt;TD&gt;2500&lt;/TD&gt;&lt;TD&gt;2400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dimension&lt;/STRONG&gt;: date&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;measures: &lt;/STRONG&gt;sales&lt;/P&gt;&lt;P&gt;filter: date &amp;gt;= vTrendStart ; date &amp;lt;= vTrendEnd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be easy, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 10:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806566#M668427</guid>
      <dc:creator />
      <dc:date>2014-11-24T10:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: date over year comparision</title>
      <link>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806567#M668428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 11:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806567#M668428</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-24T11:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: date over year comparision</title>
      <link>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806568#M668429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm only missing the LY numbers in your example. In my data model sales of 2013 have their own date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806568#M668429</guid>
      <dc:creator />
      <dc:date>2014-11-24T12:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: date over year comparision</title>
      <link>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806569#M668430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the below expression LY&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;date = {'&amp;gt;=$(=Date(vMinDate))&amp;lt;=$(=Date(vMaxDate))'} &amp;gt;} [ACT LY])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806569#M668430</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-24T12:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: date over year comparision</title>
      <link>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806570#M668431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have &lt;STRONG&gt;ACT LY&lt;/STRONG&gt; as a seperate field. source looks something like that:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="headerSortDown header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;date&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;sales&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;24-11-2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;3450&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;23-11-2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1600&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;22-11-2014&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2500&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;24-11-2013&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;3600&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;23-11-2013&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1800&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;22-11-2013&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2400&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;dimension&lt;/STRONG&gt;: date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 13:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806570#M668431</guid>
      <dc:creator />
      <dc:date>2014-11-24T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: date over year comparision</title>
      <link>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806571#M668432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a data model based solution that may work for you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/71969_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Your Data&lt;/P&gt;&lt;P&gt;RawData:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24-11-2014, 3450&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23-11-2014, 1600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22-11-2014, 2500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24-11-2013, 3600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23-11-2013, 1800&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22-11-2013, 2400&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Sales&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(Date,'DD-MM-YYYY')) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp; addyears(Date(Date#(Date,'DD-MM-YYYY')),-1) as LYDate&lt;/P&gt;&lt;P&gt;Resident RawData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Add fields for Last Year Sales&lt;/P&gt;&lt;P&gt;left join(Data)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(Date,'DD-MM-YYYY')) as LYDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sales as LYSales&lt;/P&gt;&lt;P&gt;Resident RawData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table RawData;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806571#M668432</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-11-24T15:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: date over year comparision</title>
      <link>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806572#M668433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfotunatly i cannot aggregate ACT LY in the script. It needs to be solved on the chart level.I was thinking of using dayNumberOfYear function in combination with yearStart but i have the leap year issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE(yearStart(TODAY()) + dayNumberOfYear-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfect until 28-2 after that it's breaks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;Dror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 17:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-over-year-comparision/m-p/806572#M668433</guid>
      <dc:creator />
      <dc:date>2014-11-24T17:14:05Z</dc:date>
    </item>
  </channel>
</rss>

