<?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: Set analysis comparison date - 365 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-comparison-date-365/m-p/1390420#M422806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps You need AsOfTable technique, like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; Day,Revenue&lt;BR /&gt; 01/01/2018,10&lt;BR /&gt; 02/02/2018,20&lt;BR /&gt; 03/03/2018,30&lt;BR /&gt; 04/04/2018,40&lt;BR /&gt; 01/01/2017,11&lt;BR /&gt; 02/02/2017,21&lt;BR /&gt; 03/03/2017,31&lt;BR /&gt; 04/04/2017,41&lt;BR /&gt; ]&lt;/SPAN&gt;;&lt;BR /&gt; Temp:&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Table;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Join&lt;/SPAN&gt; (Temp) &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AsOfDay&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Temp;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;AsOfDay&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;AsOfDay&lt;/SPAN&gt;-&lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DayDiff&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Temp&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Where&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AsOfDay&lt;/SPAN&gt; &amp;gt;= &lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Drop&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt; Temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183848_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 06:51:38 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2017-11-20T06:51:38Z</dc:date>
    <item>
      <title>Set analysis comparison date - 365</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-comparison-date-365/m-p/1390417#M422803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to compare the data from this year vs LY. I know it seems pretty simple, but I can´t get it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My final graph should look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="203"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="75"&gt;Day&lt;/TD&gt;&lt;TD width="64"&gt;This Year&lt;/TD&gt;&lt;TD width="64"&gt;Last Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;01/01/2018&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;02/01/2018&lt;/TD&gt;&lt;TD align="right"&gt;139&lt;/TD&gt;&lt;TD align="right"&gt;175&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;03/01/2018&lt;/TD&gt;&lt;TD align="right"&gt;147&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;04/01/2018&lt;/TD&gt;&lt;TD align="right"&gt;140&lt;/TD&gt;&lt;TD align="right"&gt;&lt;P&gt;160&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying with the following expression, but I don´t get any result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;( {$&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Day&lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;$(=Date(Only(Day)-365,'DD/MM/YYYY'))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Revenue&lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="ES-TRAD" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Thanks for the help!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 15:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-comparison-date-365/m-p/1390417#M422803</guid>
      <dc:creator>i_villafranca</dc:creator>
      <dc:date>2017-11-14T15:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis comparison date - 365</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-comparison-date-365/m-p/1390418#M422804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this: sum({&amp;lt; Revenue = {"=Day=date(Day-365, 'DD/MM/YYYY)"}&amp;gt;} Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2017 17:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-comparison-date-365/m-p/1390418#M422804</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-11-19T17:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis comparison date - 365</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-comparison-date-365/m-p/1390419#M422805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;Create Field in script like&lt;/P&gt;&lt;P&gt;Year(Day) as Year&lt;/P&gt;&lt;P&gt;And then use this&lt;/P&gt;&lt;P&gt;CY - Sum({&amp;lt;Year = {$(=Year(Today()))}&amp;gt;} Revenue)&lt;/P&gt;&lt;P&gt;LY - Sum({&amp;lt;Year = {$(=Max(Year))&amp;gt;} Revenue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 03:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-comparison-date-365/m-p/1390419#M422805</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-20T03:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis comparison date - 365</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-comparison-date-365/m-p/1390420#M422806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps You need AsOfTable technique, like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; Day,Revenue&lt;BR /&gt; 01/01/2018,10&lt;BR /&gt; 02/02/2018,20&lt;BR /&gt; 03/03/2018,30&lt;BR /&gt; 04/04/2018,40&lt;BR /&gt; 01/01/2017,11&lt;BR /&gt; 02/02/2017,21&lt;BR /&gt; 03/03/2017,31&lt;BR /&gt; 04/04/2017,41&lt;BR /&gt; ]&lt;/SPAN&gt;;&lt;BR /&gt; Temp:&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Table;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Join&lt;/SPAN&gt; (Temp) &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AsOfDay&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Temp;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;AsOfDay&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;AsOfDay&lt;/SPAN&gt;-&lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DayDiff&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Temp&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Where&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AsOfDay&lt;/SPAN&gt; &amp;gt;= &lt;SPAN style="color: #800000;"&gt;Day&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Drop&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt; Temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183848_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 06:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-comparison-date-365/m-p/1390420#M422806</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-20T06:51:38Z</dc:date>
    </item>
  </channel>
</rss>

