<?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: set analysis dates &amp;lt;= not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797577#M471721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put your formula into a chart with no name in expression and verify which part doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 14:52:47 GMT</pubDate>
    <dc:creator>menta</dc:creator>
    <dc:date>2015-02-26T14:52:47Z</dc:date>
    <item>
      <title>set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797571#M471715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having difficulty making the &amp;lt;= vCurrentYearDate work in my set analysis.&amp;nbsp; The variable, vCurrentYearDate gives me the last months prior month end if a month year selection is not made.&amp;nbsp; The variable is working and gives me the correct date, which is the last day of the month, however the set analysis is not giving me the data for the last day of the month.&amp;nbsp; It is treating it like a &amp;lt; not a &amp;lt;=.&amp;nbsp; I have removed all time stamps from the data.&amp;nbsp; If I change the variable to be the first day of the next month, I can get the last day of the month, but I would like to figure out why the &amp;lt;= is not working properly with this set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year =, Month = ,Transaction_Date={"&amp;gt;=$(=(vCurrentYearStart))&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&amp;lt;=$(=(vCurrentYearDate))&lt;/STRONG&gt;"}&lt;/SPAN&gt;&amp;gt;}Invoice_Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vCurrentYearDate&lt;/STRONG&gt; = date(if(getselectedcount(Year)&amp;lt;&amp;gt;1 and getselectedcount(Month)&amp;lt;&amp;gt;1, date(Monthend(AddMonths(max(Transaction_Date),-1))), date(Monthend((max(Transaction_Date))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797571#M471715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T14:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797572#M471716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have a sample app for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797572#M471716</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-02-26T14:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797573#M471717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using single quotes and wrapping the variable in the Date() function. And don't forget a space between the &amp;gt;= / &amp;lt;= groups:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Sum({&amp;lt;Year =, Month = ,Transaction_Date={'&amp;gt;=$(=Date($(vCurrentYearStart))) &amp;lt;=$(=Date($(vCurrentYearDate)))'}&amp;gt;}Invoice_Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797573#M471717</guid>
      <dc:creator />
      <dc:date>2015-02-26T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797574#M471718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dirk!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I added the $ after the Date($( it returned 0, so this is what it looks like now and I'm still getting the same results where it is not picking up the last day of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction_Date={'&amp;gt;=$(=Date((vCurrentYearStart))) &amp;lt;=$(=Date((vCurrentYearDate)))'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help.&amp;nbsp; I really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797574#M471718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T14:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797575#M471719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jen,&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;Year =, Month = ,Transaction_Date={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(vCurrentYearStart)&amp;lt;=$(vCurrentYearDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}Invoice_Amount) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797575#M471719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T14:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797576#M471720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Neetha!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tried and it is still not picking up the last day of the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797576#M471720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T14:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797577#M471721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put your formula into a chart with no name in expression and verify which part doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797577#M471721</guid>
      <dc:creator>menta</dc:creator>
      <dc:date>2015-02-26T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797578#M471722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's the &amp;lt;= that does not work.&amp;nbsp; It is ignoring the last day of the month, so the &amp;lt;= is behaving like a &amp;lt; .&amp;nbsp; If I change the variable vCurrentYearDate to be the 2/1/15, and use the &amp;lt;= it will pick up 1/31/15 data and not 2/1/15 data.&amp;nbsp; As it is right now&amp;nbsp; vCurrentYearDate = 1/31/15 and the last date showing in the range is 1/30/15 not 1/31/15 as I would expect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797578#M471722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T15:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797579#M471723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jen,&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;Year =, Month = ,Transaction_Date={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(vCurrentYearStart)&amp;lt;=$(=vCurrentYearDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}Invoice_Amount) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797579#M471723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797580#M471724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had an issue once where I had used MonthEnd to create a date &amp;amp; a join failed as it also included the timestamp (to give last millisecond of the actual day).&lt;/P&gt;&lt;P&gt;Might your transaction dates actually have a time on them &amp;amp; therefore be after date is it is calculating as 1/31/15 00:00:00?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797580#M471724</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2015-02-26T15:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797581#M471725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to solve the problem you can use floor&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;floor(date(Monthend(AddMonths(max(Transaction_Date),-1)))), Floor(date(Monthend((max(Transaction_Date)))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797581#M471725</guid>
      <dc:creator>menta</dc:creator>
      <dc:date>2015-02-26T15:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797582#M471726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Christopher!&amp;nbsp; Yes, it looks like the time stamp is the issue. I put Date(Transaction_Date) as Transaction_Date in my script, which I thought would remove the time from the date. Also, I&amp;nbsp; SET TimestampFormat='M/D/YYYY' in the script as well.&amp;nbsp; Is there a better way to remove the time from the date when loading the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797582#M471726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T15:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis dates &lt;= not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797583#M471727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Carlo's floor would do it, but wrap it around your Transaction_Date (that you might need to cast back into being a date).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-dates-lt-not-working/m-p/797583#M471727</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2015-02-26T15:53:06Z</dc:date>
    </item>
  </channel>
</rss>

