<?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 Problem with Set Analysis and date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212882#M877006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to build a calendar where I can select dates, and these dates should then change a graph for me.&lt;/P&gt;&lt;P&gt;How ever, what I ever do it just wont work... I'm quite new to Qlikview also, so knowing exactly the fault is difficult to find.&lt;BR /&gt;I've googled and search here and still can't figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step one has been to make Calendar Objects linked to variables. Check and done. Simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when I'm trying to get the output in a graph.&lt;/P&gt;&lt;P&gt;This is the expression&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt; LastTravelDate = {'&amp;gt;=(=Date(vStartDate))&amp;lt;=(=Date(vEndDate))'} &amp;gt;} NumOrders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I try and slim in down and fail search:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt; LastTravelDate = {=vPeriodStart1)} &amp;gt;} NumOrders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wont work, the Variable turns gray, but my NumOrders wont go red...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212882#M877006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to build a calendar where I can select dates, and these dates should then change a graph for me.&lt;/P&gt;&lt;P&gt;How ever, what I ever do it just wont work... I'm quite new to Qlikview also, so knowing exactly the fault is difficult to find.&lt;BR /&gt;I've googled and search here and still can't figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step one has been to make Calendar Objects linked to variables. Check and done. Simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when I'm trying to get the output in a graph.&lt;/P&gt;&lt;P&gt;This is the expression&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt; LastTravelDate = {'&amp;gt;=(=Date(vStartDate))&amp;lt;=(=Date(vEndDate))'} &amp;gt;} NumOrders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I try and slim in down and fail search:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt; LastTravelDate = {=vPeriodStart1)} &amp;gt;} NumOrders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wont work, the Variable turns gray, but my NumOrders wont go red...&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-Set-Analysis-and-date/m-p/1212882#M877006</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212883#M877007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be difficult to know what might be missing without seeing a sample. Would you be able to provide one? In the mean time you can also read this blog&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 15:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212883#M877007</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-24T15:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212884#M877008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it would be a lot easier to troubleshoot if you could post a small sample app with your chart...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first expression, you should remove the single quotes within the braces:&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; LastTravelDate = {&amp;gt;=(=Date(vStartDate))&amp;lt;=(=Date(vEndDate))} &amp;gt;} NumOrders)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second expression, you don't need the equal sign for the variable, but you do need to enclose it in a $-sign expansion and possibly convert to the date format:&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; LastTravelDate = {$(vPeriodStart1)} &amp;gt;} NumOrders)&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 style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt; LastTravelDate = {$(=date(vPeriodStart1))} &amp;gt;} NumOrders)&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;You can learn more about Set Analysis and many other advanced Qlik techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&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;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;cheers,&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;Oleg Troyansky&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 15:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212884#M877008</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-24T15:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212885#M877009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;As pointed out by others a sample app would make it easier to offer a solution. In the meantime you could always try entering your expression in a text box and playing around with the dates i.e.e selecting a small date range such as two or three days to make it easier to check the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 15:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212885#M877009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-24T15:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212886#M877010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes of course, stupid of me, forgetting the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached it here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 18:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212886#M877010</guid>
      <dc:creator />
      <dc:date>2016-10-24T18:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212887#M877011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, I have not attached a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was working around in a text box, as you mention, easier to check results... and without results..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 18:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212887#M877011</guid>
      <dc:creator />
      <dc:date>2016-10-24T18:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212888#M877012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is three the correct number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt; LastTravelDate = {"$(=vPeriodStart1)"}&amp;gt;} NumOrders)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141765_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 18:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212888#M877012</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-24T18:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212889#M877013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, much better now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your variable for Start Period contains a formula that returns a formatted Date. For that reason, it needs to be enclosed in a $-sign expansion (because it's a variable) and in a set of single quotes (because it returns a formatted date. So, the corrected formula is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt; LastTravelDate = {'$(vPeriodStart1)'} &amp;gt;} NumOrders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The corrected sample is also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Learn advanced QlikView and Qlik Sense techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212889#M877013</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-24T19:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212890#M877014</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;Thank you for the help. I see the difference. But if I change the PeriodStart to vStartDate which is linked in the calendar, it wont function. Is there something wrong in the calendar ?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141748_Capture1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212890#M877014</guid>
      <dc:creator />
      <dc:date>2016-10-24T19:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212891#M877015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you just need to give it a proper format and it works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;LastTravelDate = {"$(=date(vStartDate,'YYYY-MM-DD'))"}&amp;gt;} NumOrders)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141778_Capture.PNG" style="height: 145px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212891#M877015</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-24T19:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212892#M877016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it works! I really appreciate the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about if I want an interval of dates and the number of orders?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;LastTravelDate= {"&amp;gt;=$(=date(vStartDate,'YYYY-MM-DD'))&amp;lt;=$(=date(vEndDate,'YYYY-MM-DD'))"}&amp;gt;} &lt;/SPAN&gt; NumOrders)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this one which I found online, but it't not functioning..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212892#M877016</guid>
      <dc:creator />
      <dc:date>2016-10-24T19:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212893#M877017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that your dates are not read as date by QlikView. See how they are left aligned, if these were dates, they would have been right aligned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141783_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change this in the script in couple of ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Change the environmental variables&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET DateFormat='YYYY-MM-DD';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Fix the field using Date#() function&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#(LastTravelDate, '&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;YYYY-MM-DD')&lt;SPAN style="font-size: 13.3333px;"&gt;, '&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;YYYY-MM-DD') as &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LastTravelDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read about loading dates in QlikView and things to take care&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212893#M877017</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-24T20:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Set Analysis and date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212894#M877018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enclose your $-sign expansions in single quotes - for the same reason I explained above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LastTravelDate= {"&amp;gt;='$(=date(vStartDate,'YYYY-MM-DD'))'&amp;lt;='$(=date(vEndDate,'YYYY-MM-DD'))'"}&amp;gt;} &lt;/SPAN&gt;NumOrders)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now, you might have a clash between the quotes in your Date format and the quotes around the $-sign expansion...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The better way of resolving it is using Advanced Search instead of a simple search - then you don't have to worry about formatting the dates and about $-sign expansions alltogether. Something like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LastTravelDate= {"=&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; background-color: #f2f2f2; font-family: inherit; font-weight: inherit;"&gt;LastTravelDate&lt;/STRONG&gt;&amp;gt;=vStartDate and &lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; background-color: #f2f2f2; font-family: inherit; font-weight: inherit;"&gt;LastTravelDate&lt;/STRONG&gt;&amp;lt;=vEndDate"}&amp;gt;} &lt;/SPAN&gt;NumOrders)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I also noticed that your default Date format is D.M.YYYY. In this case, why use a different format in your Set Analysis conditions? Why not apply the same format everywhere? Anyway, the Advanced Search (double quotes with an equal sign in front) solves all these problems.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Learn advanced QlikView and Qlik Sense techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Set-Analysis-and-date/m-p/1212894#M877018</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-24T20:12:09Z</dc:date>
    </item>
  </channel>
</rss>

