<?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: Date in variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104987#M18758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does EVENT_DATE show a numeric representation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, upload a small sample QVF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jun 2016 17:07:50 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-06-01T17:07:50Z</dc:date>
    <item>
      <title>Date in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104981#M18752</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;I like to set up the KPI chart in my &lt;STRONG&gt;sense&lt;/STRONG&gt; dashboard in the cloud so that it always show the figure of yesterday. When I hardcode the date it works but not in any other way&lt;/P&gt;&lt;P&gt;I'm a newbie and a&lt;SPAN style="font-size: 13.3333px;"&gt;ppreciate any help...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----this is the one working----&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;[EVENT_DATE]={"16-MAY-16 12.00.00"}&amp;gt;} TOTAL_DISCREPANCY_VALUE_OVER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is all the different methods I tried and failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----without variable----&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;[EVENT_DATE]={"=$(=date(today()-13,'DD-MMM-YY hh.mm.ss'))"}&amp;gt;} TOTAL_DISCREPANCY_VALUE_OVER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;----without variable----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;LET v_date = date(today()-14,'DD/MM/YYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1 &amp;lt;[Date(Date#(EVENT_DATE,'DD-MMM-YYYY hh.mm.ss'),'DD/MM/YYYY')]={$(=v_date)}&amp;gt;} TOTAL_DISCREPANCY_VALUE_OVER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;----without variable 2----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;v_date2 =&lt;/SPAN&gt;date(today()-14,'DD-MMM-YY hh.mm.ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({$ &amp;lt;[EVENT_DATE]={"$(=v_date2)"}&amp;gt;} TOTAL_DISCREPANCY_VALUE_OVER)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({$ &amp;lt;[EVENT_DATE]={$(=v_date2)}&amp;gt;} TOTAL_DISCREPANCY_VALUE_OVER)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 12:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104981#M18752</guid>
      <dc:creator />
      <dc:date>2016-06-01T12:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104982#M18753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try either&lt;/P&gt;&lt;P&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;sum({$ &amp;lt;[EVENT_DATE]={'$(=date(today()-13,'DD-MMM-YY hh.mm.ss'))'}&amp;gt;} TOTAL_DISCREPANCY_VALUE_OVER)&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;or&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-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$ &amp;lt;[EVENT_DATE]={'$(v_date2)'}&amp;gt;} TOTAL_DISCREPANCY_VALUE_OVER)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Note that you are using -13 in the first expression vs -14 in your variable.&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104982#M18753</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-01T14:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104983#M18754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried both, first one comes back with null and second one returns 0 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 16:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104983#M18754</guid>
      <dc:creator />
      <dc:date>2016-06-01T16:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104984#M18755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which exact value are you trying to match?&lt;/P&gt;&lt;P&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;16-MAY-16 12.00.00&amp;nbsp; is noon May 16, while today() will return today at midnight (and if you subtract some days, it's still midnight).&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;Don't you have a real date field?&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;If not, you can try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$ &amp;lt;[EVENT_DATE]=&lt;STRONG&gt;{"=[EVENT DATE]&amp;gt;=$(=Floor(today()-13)) AND [EVENT DATE] &amp;lt;$(=Floor(today()-12))"}&lt;/STRONG&gt;&amp;gt;} TOTAL_DISCREPANCY_VALUE_OVER)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 16:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104984#M18755</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-01T16:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104985#M18756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;event_date is the date filed in the 'DD-MMM-YY 12.00.00' format. The sample data that I loaded for testing is from 01-MAY-16 till 23-MAY-16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like 12.00.00 is causing the problem?&lt;/P&gt;&lt;P&gt;I tried this one too, it returns 0 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 16:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104985#M18756</guid>
      <dc:creator />
      <dc:date>2016-06-01T16:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104986#M18757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried your first suggestion with an slight alteration (12.00.00 instead of hh.mm.ss) and it works &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;[EVENT_DATE]={'$(=date(today()-14,'DD-MMM-YY 12.00.00'))'}&amp;gt;} TOTAL_DISCREPANCY_VALUE_OVER) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the variable one still doesnt work even-though I changed it to&lt;/P&gt;&lt;P&gt;date(today()-14,'DD-MMM-YY 12.00.00')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104986#M18757</guid>
      <dc:creator />
      <dc:date>2016-06-01T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104987#M18758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does EVENT_DATE show a numeric representation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, upload a small sample QVF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104987#M18758</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-01T17:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104988#M18759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the links, I have a better understanding now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;No it doesn't. It is totally a messed up format but I gotta fix it now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks alot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sara&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-in-variable/m-p/1104988#M18759</guid>
      <dc:creator />
      <dc:date>2016-06-01T17:39:35Z</dc:date>
    </item>
  </channel>
</rss>

