<?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: Comparing two dates in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392579#M146436</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;The format in the variable and the field are not the same, therefore the zeroes in the result. Check the ammended application and see how the variable has changed and works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 18:33:51 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-09-11T18:33:51Z</dc:date>
    <item>
      <title>Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392566#M146423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am very new to Qlikview and I am comparing two different dates. In my script I set &lt;/P&gt;&lt;P&gt;LET vThreeDayAgo = Dayname(today()-3); so the variable ends up looking like this 09/07/2012 today. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am comparing this in this set analysis syntax but get the sum of everything for DaysFilled.Days in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DaysFilled.Date is formatted mm/dd/yyyy. I have verified that there is a DayFilled.Date = 09/07/2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;DaysFilled.Date={"=vThreeDayAgo"}&amp;gt;} DaysFilled.Days)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me what is wrong with the above Set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;OnePuttGirl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392566#M146423</guid>
      <dc:creator />
      <dc:date>2012-09-10T17:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392567#M146424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({$&amp;lt;DaysFilled.Date={"=DaysFilled.Date=$(vThreeDayAgo)"}&amp;gt;} DaysFilled.Days)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392567#M146424</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-10T17:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392568#M146425</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;sum({$&amp;lt;DaysFilled.Date={$(vThreeDayAgo)}&amp;gt;} DaysFilled.Days)&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;DaysFilled.Date={'$(vThreeDayAgo)'}&amp;gt;} DaysFilled.Days) miss qoutes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392568#M146425</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-10T17:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392569#M146426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Thank you for your response. I don't know why but when I do this I get null values. And the one above this I get zeros. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392569#M146426</guid>
      <dc:creator />
      <dc:date>2012-09-10T18:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392570#M146427</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;Probably it's due to the fact that Dates are represented as literals (strings) so using single quotes should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13473010512596647" jivemacro_uid="_13473010512596647"&gt;&lt;P&gt;Sum({&amp;lt; DaysFilled.Date = {'$(vThreeDayAgo)'} &amp;gt;} DaysFilled.Days)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or event to the fact that you need to expand the variable using the equal sign and using single quotes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13473010762979734" jivemacro_uid="_13473010762979734"&gt;&lt;P&gt;Sum({&amp;lt; DaysFilled.Date = {'$(=vThreeDayAgo)'} &amp;gt;} DaysFilled.Days)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392570#M146427</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-10T18:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392571#M146428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;I did both of the expressions and I still get zeros. Is there anything else you would try? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392571#M146428</guid>
      <dc:creator />
      <dc:date>2012-09-10T18:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392572#M146429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As my and Miguel's expressions gives you zeros,&lt;/P&gt;&lt;P&gt;I suggest create a table box and check to be sure that zeros is not the right answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392572#M146429</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-10T18:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392573#M146430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I attach my .qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392573#M146430</guid>
      <dc:creator />
      <dc:date>2012-09-10T18:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392574#M146431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I attached a qvw and the expression is for Monday. Can you tell me why I'm getting nothing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392574#M146431</guid>
      <dc:creator />
      <dc:date>2012-09-10T18:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392575#M146432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zeros is not the correct answer. Can you check my .qvw I attached and see if you can get the correct result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392575#M146432</guid>
      <dc:creator />
      <dc:date>2012-09-10T18:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392576#M146433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this (as your vThreeDayAgo is just a string):&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt; DaysFilled.Date = {'&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;$(vThreeDayAgo)'} &amp;gt;} DaysFilled.Days)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 05:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392576#M146433</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-11T05:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392577#M146434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this exp:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(#=vStartdate) &amp;lt;$(#=vEndDate)"}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, this will solve your problem.&lt;/P&gt;&lt;P&gt;If this exp doesn't work then remove '=' sign and try again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(#vStartdate) &amp;lt;$(#vEndDate)"}&amp;gt;} value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 06:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392577#M146434</guid>
      <dc:creator />
      <dc:date>2012-09-11T06:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392578#M146435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this exp:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(#=vStartdate) &amp;lt;$(#=vEndDate)"}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, this will solve your problem.&lt;/P&gt;&lt;P&gt;If this exp doesn't work then remove '=' sign and try again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(#vStartdate) &amp;lt;$(#vEndDate)"}&amp;gt;} value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 06:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392578#M146435</guid>
      <dc:creator />
      <dc:date>2012-09-11T06:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392579#M146436</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;The format in the variable and the field are not the same, therefore the zeroes in the result. Check the ammended application and see how the variable has changed and works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 18:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392579#M146436</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-11T18:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392580#M146437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Thank you, Thank you!&lt;BR /&gt; Miguel I did finally get that they were different formats. Thank you for the followup because it's really nice to know there are people out there to help with problems. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 19:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392580#M146437</guid>
      <dc:creator />
      <dc:date>2012-09-11T19:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392581#M146438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi miguel,&lt;/P&gt;&lt;P&gt;i saw application of both but could nt get any change in the variable its dayname(today()-3) in both but output of variables are diffrent in both.. how?&lt;/P&gt;&lt;P&gt;Can u plz explain a bit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 08:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-dates-in-Set-Analysis/m-p/392581#M146438</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-09-12T08:23:20Z</dc:date>
    </item>
  </channel>
</rss>

