<?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: Previous Date Variable in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307814#M27862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vPYWeekending: =addmonths(Max(FormattedWeekEndDate),-12)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ariel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Jun 2017 14:07:35 GMT</pubDate>
    <dc:creator>ariel_klien</dc:creator>
    <dc:date>2017-06-04T14:07:35Z</dc:date>
    <item>
      <title>Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307813#M27861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to show current and last year's weekend date sales (see attached).&amp;nbsp; I am using a variable below to calculate last year's weekend date.&amp;nbsp; The text box shows that the variable is working because I have a filter on the weekend field set to 5/27/2017 and the variable is showing the comparable date last year.&amp;nbsp; The issue is that the "All Fuel Types Prior Year" column in the straight table is showing the filter date (i.e. 5/27/2017) value and not the value from 5/28/2016.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How anyone seen this issue before?&amp;nbsp; Thank you in advance for any assistance! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable: &lt;/P&gt;&lt;P&gt;vPYWeekending: =Max(FormattedWeekEndDate)-364&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;All Fuel Types Current Year:&amp;nbsp; Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}FuelMtrDtl_Posted_Units)&lt;/LI&gt;&lt;LI&gt;All Fuel Types Prior Year:&amp;nbsp; Aggr(Sum({$&amp;lt;FormattedWeekEndDate={'=$(vPYWeekending)'}&amp;gt;}FuelMtrDtl_Posted_Units),FormattedWeekEndDate)&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 13:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307813#M27861</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2017-06-04T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307814#M27862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vPYWeekending: =addmonths(Max(FormattedWeekEndDate),-12)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ariel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 14:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307814#M27862</guid>
      <dc:creator>ariel_klien</dc:creator>
      <dc:date>2017-06-04T14:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307815#M27863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ariel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&amp;nbsp; That did not work.&amp;nbsp; It produced a previous date of 12/30/1899.&amp;nbsp; See attached. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 14:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307815#M27863</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2017-06-04T14:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307816#M27864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I think the format of the field is not recognize... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;try &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vPYWeekending =addmonths((Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date#(&lt;/SPAN&gt;FormattedWeekEndDate,'MM/DD/YYYY')),-12)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 14:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307816#M27864</guid>
      <dc:creator>ariel_klien</dc:creator>
      <dc:date>2017-06-04T14:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307817#M27865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same result (i.e. &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;12/30/1899&lt;/SPAN&gt;).&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 14:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307817#M27865</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2017-06-04T14:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307818#M27866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach data sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 14:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307818#M27866</guid>
      <dc:creator>ariel_klien</dc:creator>
      <dc:date>2017-06-04T14:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307819#M27867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ariel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay.&amp;nbsp; See attached sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 16:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307819#M27867</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2017-06-04T16:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307820#M27868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you need to erase the equal sine in the variable.... &lt;/P&gt;&lt;P&gt;and you don't need the Date#....&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1280919.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165730_1280919.png" style="height: 276px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 07:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307820#M27868</guid>
      <dc:creator>ariel_klien</dc:creator>
      <dc:date>2017-06-05T07:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307821#M27869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ariel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Made the change but, the Prior Year column is still showing the Current Year.&amp;nbsp; See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the right numbers when I hardcode the prior year date in the PY expression like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;FormattedWeekEndDate={'5/28/2016'}&amp;gt;}FuelMtrDtl_Posted_Units)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even using the following expression without Aggr still shows the current year numbers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;FormattedWeekEndDate={'=$(vPYWeekending)'}&amp;gt;}FuelMtrDtl_Posted_Units) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;None of the expressions above are expanding the variable correctly.&amp;nbsp; The KPI in the screen shot does correctly expand the variable.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I believe the straight table is in the same "grain" with respect the the dimensions being used.&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 11:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307821#M27869</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2017-06-05T11:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307822#M27870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;FormattedWeekEndDate={"$(vPYWeekending)"}&amp;gt;}FuelMtrDtl_Posted_Units)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 13:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307822#M27870</guid>
      <dc:creator>ariel_klien</dc:creator>
      <dc:date>2017-06-05T13:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307823#M27871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing the quotes did not work.&amp;nbsp; I tried that previously.&amp;nbsp; This is strange....&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 20:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Variable-in-Set-Analysis/m-p/1307823#M27871</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2017-06-05T20:52:21Z</dc:date>
    </item>
  </channel>
</rss>

