<?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: How to get the Same Day Last Year with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457501#M487471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Thanks to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;both&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;tried to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;give a correct answer&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;wrong approach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;As always&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;small solutions&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to big problems&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2013 11:31:20 GMT</pubDate>
    <dc:creator>joseluis_garcia</dc:creator>
    <dc:date>2013-01-25T11:31:20Z</dc:date>
    <item>
      <title>How to get the Same Day Last Year with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457498#M487468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I want to compare daily sales with the equivalent day last year. The"Calendar" table&amp;nbsp; contains both fields: DateOrder and SameDayLY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I've tried countless expressions and the results are always wrong. The actual formula I use is &lt;/SPAN&gt;&lt;/P&gt;&lt;H6&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13591092657962787" jivemacro_uid="_13591092657962787"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Amount_SDLY = Sum ({$ &amp;lt;SameDayLY=,DateOrder = {'$(=Date(Max(SameDayLY), "dd/MM/yyyy"))'}&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/H6&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;IMG __jive_id="32171" class="jive-image-thumbnail jive-image" onclick="" alt="sdly.PNG" src="https://community.qlik.com/legacyfs/online/32171_sdly.PNG" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Curiously, Date(Max(SameDayLY), "dd/MM/yyyy"))' is correct for every date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I leave a sample document with dates in spanish format ('DD/MM/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 10:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457498#M487468</guid>
      <dc:creator>joseluis_garcia</dc:creator>
      <dc:date>2013-01-25T10:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Same Day Last Year with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457499#M487469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis expression are calculated once for the entire chart, &lt;STRONG&gt;not &lt;/STRONG&gt;per row. So what you want is not possible with set analysis expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What&amp;nbsp; you could do is add a line to your load script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;LOAD DateOrder as SameDayLY, Amount as AmountLY Resident Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This effectively adds a field AmountLY to your table than contains the Sales of the previous year. You can add the expression sum(AmountLY) to your chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 11:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457499#M487469</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-25T11:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Same Day Last Year with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457500#M487470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, as you want to display it against the actual date you will struggle with just set analysis and you would need ifs etc which would be messy, try splitting the table into two with current and&amp;nbsp; previous tables then you can have two fields one for the current amount and one for previous, eg attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 11:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457500#M487470</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2013-01-25T11:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Same Day Last Year with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457501#M487471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Thanks to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;both&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;tried to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;give a correct answer&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;wrong approach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;As always&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;small solutions&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to big problems&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 11:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457501#M487471</guid>
      <dc:creator>joseluis_garcia</dc:creator>
      <dc:date>2013-01-25T11:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Same Day Last Year with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457502#M487472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is also, addyears(yourdate, -1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 13:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-Same-Day-Last-Year-with-Set-Analysis/m-p/457502#M487472</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-01-25T13:38:30Z</dc:date>
    </item>
  </channel>
</rss>

