<?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: Using Today() in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174319#M463581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, this worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOhn &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 10:06:04 GMT</pubDate>
    <dc:creator>johnmccdwc</dc:creator>
    <dc:date>2016-06-23T10:06:04Z</dc:date>
    <item>
      <title>Using Today() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174315#M463577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to show a running total for 'Today' in a model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following works (when i hard code the date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;CurYTDFlag = {1},LineType = {2},ShipDate={'22/06/2016'}&amp;gt;} NetDelQty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i try to use Today i cannot get it to fly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;CurYTDFlag = {1},LineType = {2},ShipDate={$(=Date(today(),'DD/MM/YYYY'))}&amp;gt;} NetDelQty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANy ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174315#M463577</guid>
      <dc:creator>johnmccdwc</dc:creator>
      <dc:date>2016-06-22T14:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Today() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174316#M463578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John, did you try to put it into a variable and the put the variable in the set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174316#M463578</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2016-06-22T16:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Today() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174317#M463579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you using this expression? In a chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then put it into e.g. a straight table chart's expression and leave the expression label empty.&lt;/P&gt;&lt;P&gt;Then hover with the mouse over the expression header in the table chart.&lt;/P&gt;&lt;P&gt;You should see your expression with the dollar sign expansion evaluated and replaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only think of two possible differences right now between the two expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Missing single quotes in the second expression around the dollar sign expansion:&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;CurYTDFlag = {1},LineType = {2},ShipDate={'$(=Date(today(),'DD/MM/YYYY'))'}&amp;gt;} NetDelQty)&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;b) today() may not return '22/06/2016', because the default timer mode is returning the date when your QVW was opened.&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;See the help for available timer modes (0 to 2).&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;CurYTDFlag = {1},LineType = {2},ShipDate={'$(=Date(today(1),'DD/MM/YYYY'))'}&amp;gt;} NetDelQty)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174317#M463579</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-22T16:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Today() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174318#M463580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this (added double quotes in red)&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;STRONG&gt;=Sum({$&amp;lt;CurYTDFlag = {1}, LineType = {2}, ShipDate = {&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;$(=Date(Today(), 'DD/MM/YYYY'))&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;}&amp;gt;} NetDelQty)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 04:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174318#M463580</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-23T04:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Today() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174319#M463581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, this worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOhn &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 10:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174319#M463581</guid>
      <dc:creator>johnmccdwc</dc:creator>
      <dc:date>2016-06-23T10:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Today() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174320#M463582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interestingly this seems to work but the Syntax checker doesn't like it &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;thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOhn &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 10:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174320#M463582</guid>
      <dc:creator>johnmccdwc</dc:creator>
      <dc:date>2016-06-23T10:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Today() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174321#M463583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, the syntax checker is not really able to understand that the dollar sign expansion is actually evaluated and replaced before the expression is parsed. So it might indicate an error here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still prefer to use single quotes for literals and double quotes for searches, though both should work the same in current QV software (there is a note by HIC in one of his blog posts that these quotings &lt;EM&gt;should&lt;/EM&gt; be handled differently, but apparently they won't fix it (and this will break a lot of people's stuff)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Today-in-set-analysis/m-p/1174321#M463583</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-23T13:13:26Z</dc:date>
    </item>
  </channel>
</rss>

