<?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: Problem with date variable in set analysis. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296378#M836982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes indeed, Thirumala, you are right, but only on my post (was just a typo). I actually have it well written on my dashboard, and it does not work : S . Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 15:09:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-18T15:09:16Z</dc:date>
    <item>
      <title>Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296374#M836978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following &lt;SPAN style="font-size: 13.3333px;"&gt; (hardcoded) &lt;/SPAN&gt;set analysis works as intended:&lt;/P&gt;&lt;P&gt;=SUM({ $ &amp;lt; Date = {'&amp;lt;=12/01/2017'} &amp;gt;} Amount )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But indeed what I wanna do, is let the user select the date. And so did I. I created a calendar, and assigned a variable.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Calendar.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163915_Calendar.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="VARIABLE.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/163928_VARIABLE.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I rewrite the set analysis, in order to include this variable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=SUM({ $ &amp;lt; Date = {'&amp;lt;=$(vFechaHastaLM)} &amp;gt;} Amount )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It just doesn't work. While I should get the same values as in the first set analysis. I actually don't get any value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any idea of what might be happening?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296374#M836978</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296375#M836979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely when you put the variable, the content of the variable isn't exactly as the hardcoded '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;12/01/2017' and in that case the set analysis won't find the equivalent date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 14:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296375#M836979</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-05-18T14:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296376#M836980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this: &lt;SPAN style="font-size: 13.3333px;"&gt;=&lt;STRONG&gt;SUM({$&amp;lt;Date={'&amp;lt;=$(vFechaHastaLM)'}&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 14:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296376#M836980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T14:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296377#M836981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you are missing the closing quote:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=SUM({ $ &amp;lt; Date = {'&amp;lt;=$(vFechaHastaLM)&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;gt;} Amount )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296377#M836981</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-05-18T15:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296378#M836982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes indeed, Thirumala, you are right, but only on my post (was just a typo). I actually have it well written on my dashboard, and it does not work : S . Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296378#M836982</guid>
      <dc:creator />
      <dc:date>2017-05-18T15:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296379#M836983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Matthew. That's the very same set analysis, but with the missing closing quote. I wrote it OK on my dashboard, but I miswrote it on my post, sorry. Anyway, it does not work even with the closing quote. Thanks, anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296379#M836983</guid>
      <dc:creator />
      <dc:date>2017-05-18T15:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296380#M836984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I've found the solution, there should be no quotes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;SUM({$&amp;lt;Date={&amp;lt;=$(vFechaHastaLM)}&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296380#M836984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T15:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296381#M836985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the output of your variable in a text box, to see if it matches your hardcoded date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296381#M836985</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-05-18T15:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296382#M836986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok got it.. Make sure you set the format of the date in the calendar object like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="163908" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163908_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296382#M836986</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-05-18T15:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296383#M836987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Felip. Thanks for your answer. I agree with your observation: the content of the variable is not '12/01/2017', indeed. It is in another format (in point of fact, it is '42747').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What strikes me the most, is that I have always done this comparisons (with the same database format) and I've never run into this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I tried declaring a variable DATE(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(vFechaHastaLM)) which actually shows 12/01/2017, and I tried using it in the set analysis, in the very same way I used the other, but I had no luck.&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: 13.3333px;"&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: 13.3333px;"&gt;Thanks anyway!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296383#M836987</guid>
      <dc:creator />
      <dc:date>2017-05-18T15:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296384#M836988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Matthew. There should always be quotes. It throws syntax expression error, otherwise. Thanks for the effort, though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296384#M836988</guid>
      <dc:creator />
      <dc:date>2017-05-18T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296385#M836989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, indeed. I had it set like that. Anyway, that is the format used for the calendar, but I has no impact in the variable content (and thus, in the set analysis expression) whatsoever. Thanks a lot, anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296385#M836989</guid>
      <dc:creator />
      <dc:date>2017-05-18T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296386#M836990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Last attempt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;SUM({$&amp;lt;Date={'&amp;lt;=$(=$(vFechaHastaLM))'}&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296386#M836990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T15:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296387#M836991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unsuccessful : (&amp;nbsp;&amp;nbsp; But you were doing good. Thanks, bro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296387#M836991</guid>
      <dc:creator />
      <dc:date>2017-05-18T15:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296388#M836993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Date= {"&amp;lt;=$(vFechaHastaLM)"} &amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;see the attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 17:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296388#M836993</guid>
      <dc:creator>vhespinog</dc:creator>
      <dc:date>2017-05-18T17:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296389#M836994</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;Try&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=SUM({&amp;lt; Date = {"&amp;lt;=$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vFechaHastaLM)&lt;/SPAN&gt;"} &amp;gt;} Amount )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 20:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296389#M836994</guid>
      <dc:creator>hcabrera</dc:creator>
      <dc:date>2017-05-18T20:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296390#M836995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;you need to format your variable as &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;date($(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vFechaHastaLM),'M/D/YYYY')&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 21:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296390#M836995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T21:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296391#M836996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a good search online and found this, I think it is what you are looking for.&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;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;SUM({$&amp;lt;Date={'&amp;lt;=$(=vFechaHastaLM)'}&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/SPAN&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;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;​Hopefully that works for you lol&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 07:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296391#M836996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-19T07:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296392#M836997</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;Can can take a screen shot of variable expression from variable Variable overview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 08:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296392#M836997</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2017-05-19T08:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date variable in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296393#M836998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;&lt;A href="https://community.qlik.com/qlik-users/143334"&gt;mpineiro&lt;/A&gt;‌, I've been struggling with a similar problem to you and have finally got a solution that works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;I have a Calendar object using my variable &lt;EM style="color: #999999;"&gt;Dt&lt;/EM&gt; and in the Number tab I used the Format Pattern DD/MM/YYYY&lt;/P&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;I have selected 15/05/2017 using the Calendar object and Variable Overview shows this variable to be 42870&lt;/P&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;In my case I'm using Count against a unique key &lt;SPAN style="color: #993366;"&gt;SeqNo&lt;/SPAN&gt; so...&lt;/P&gt;&lt;UL&gt;&lt;LI style="color: #000000; font-family: Verdana;"&gt;My original expression: =&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #993366;"&gt;EndDate&lt;/SPAN&gt;={'15/05/2017'}&amp;gt;} &lt;SPAN style="color: #993366;"&gt;SeqNo&lt;/SPAN&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;Now, we both know that we need to replace the 15/05/2017 part with &lt;EM style="color: #999999;"&gt;$(Dt)&lt;/EM&gt; so we get...&lt;/P&gt;&lt;UL&gt;&lt;LI style="color: #000000; font-family: Verdana;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #993366;"&gt;EndDate&lt;/SPAN&gt;={'$(&lt;EM&gt;Dt&lt;/EM&gt;)'}&amp;gt;} &lt;SPAN style="color: #993366;"&gt;SeqNo&lt;/SPAN&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;We know this does not work as &lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;Dt&lt;/EM&gt;&lt;/SPAN&gt; is 42870 so we need to format it using &lt;SPAN style="color: #993366;"&gt;Date&lt;/SPAN&gt;(&lt;EM style="color: #999999;"&gt;$(Dt)&lt;/EM&gt;). In order to get the Date function to work inside the set analysis we need to use dollar expansion&amp;nbsp; $(=&lt;SPAN style="color: #993366;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #999999;"&gt;$(&lt;EM&gt;Dt&lt;/EM&gt;)&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;So the final expression becomes...&lt;/P&gt;&lt;UL&gt;&lt;LI style="color: #000000; font-family: Verdana;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #993366;"&gt;EndDate&lt;/SPAN&gt;={'$(=Date($(&lt;EM&gt;Dt&lt;/EM&gt;)))'}&amp;gt;} &lt;SPAN style="color: #993366;"&gt;SeqNo&lt;/SPAN&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;So we're dollar expanding the &lt;EM style="color: #999999;"&gt;Dt&lt;/EM&gt; variable and we're dollar expanding the &lt;SPAN style="color: #993366;"&gt;Date&lt;/SPAN&gt; expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;I hope that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Verdana;"&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 11:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-variable-in-set-analysis/m-p/1296393#M836998</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2017-05-24T11:07:58Z</dc:date>
    </item>
  </channel>
</rss>

