<?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 set analysis today() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205297#M502829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When using Set Analysis with Dates, you must be careful that the format of the date field matches what you specify in your Set Expression.&lt;/P&gt;&lt;P&gt;Assuming your Format is MM/DD/YYYY, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Count( {1&amp;lt;[PO Promise Date] = {$(=Date(Today(), 'MM/DD/YYYY'))}&amp;gt;} [PO Action])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That will give you a count of PO Action where the PO Promise Date EQUALS Today(). If you want to get those dates EQUAL or BEFORE Today(), then use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Count( {1&amp;lt;[PO Promise Date] = {"&amp;lt;=$(=Date(Today(), 'MM/DD/YYYY'))"}&amp;gt;} [PO Action])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jun 2010 15:52:24 GMT</pubDate>
    <dc:creator>mike_garcia</dc:creator>
    <dc:date>2010-06-28T15:52:24Z</dc:date>
    <item>
      <title>set analysis today()</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205296#M502828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to Set Analysis and have trouble getting it to work with dates. I want to coutn the number of Purchase Orders that is Past Due, i.e number of "PO Action" that have a Promise Date earlier then today.&lt;/P&gt;&lt;P&gt;=count( {1&amp;lt;[PO Promise Date]={&lt;STRONG&gt;today()&lt;/STRONG&gt;}&amp;gt;} [PO Action])&lt;/P&gt;&lt;P&gt;How do I write the Today() statement?&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 15:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205296#M502828</guid>
      <dc:creator />
      <dc:date>2010-06-28T15:45:26Z</dc:date>
    </item>
    <item>
      <title>set analysis today()</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205297#M502829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When using Set Analysis with Dates, you must be careful that the format of the date field matches what you specify in your Set Expression.&lt;/P&gt;&lt;P&gt;Assuming your Format is MM/DD/YYYY, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Count( {1&amp;lt;[PO Promise Date] = {$(=Date(Today(), 'MM/DD/YYYY'))}&amp;gt;} [PO Action])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That will give you a count of PO Action where the PO Promise Date EQUALS Today(). If you want to get those dates EQUAL or BEFORE Today(), then use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Count( {1&amp;lt;[PO Promise Date] = {"&amp;lt;=$(=Date(Today(), 'MM/DD/YYYY'))"}&amp;gt;} [PO Action])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 15:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205297#M502829</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2010-06-28T15:52:24Z</dc:date>
    </item>
    <item>
      <title>set analysis today()</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205298#M502830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Mike!&lt;/P&gt;&lt;P&gt;It works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 12:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205298#M502830</guid>
      <dc:creator />
      <dc:date>2010-06-29T12:08:46Z</dc:date>
    </item>
    <item>
      <title>set analysis today()</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205299#M502831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help - Could someone PLEASE tell me why this does not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count( {1&amp;lt;[Submit Date-T] = {$(=Date(Today(), 'YYYY-MM-DD') ) }&amp;gt;} [Incident Number]&lt;/P&gt;&lt;PRE&gt;It comes back with nothing- not 0 - it acts like there is some type of code error - but no error shows when editing it.&lt;/PRE&gt;&lt;PRE&gt;This works fine&lt;/PRE&gt;&lt;PRE&gt;=Count( {1&amp;lt;[Submit Date-T] = {'2011-03-26'}&amp;gt;} [Incident Number])&lt;/PRE&gt;&lt;PRE&gt;Thank you in advance - I have tried all type of syntax to no avail&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;Jim&lt;/PRE&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2011 21:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205299#M502831</guid>
      <dc:creator />
      <dc:date>2011-03-26T21:36:08Z</dc:date>
    </item>
    <item>
      <title>set analysis today()</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205300#M502832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry htis is what is not working somehow missed the last bracket when pasting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count( {1&amp;lt;[Submit Date-T] = {$(=Date(Today(), 'YYYY-MM-DD') ) }&amp;gt;} [Incident Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2011 21:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205300#M502832</guid>
      <dc:creator />
      <dc:date>2011-03-26T21:46:19Z</dc:date>
    </item>
    <item>
      <title>set analysis today()</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205301#M502833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;If you evaluate the above expression to see what QlikView is actually interpreting, you will get:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Count( {1&amp;lt;[Submit Date-T] = {2011-03-27}&amp;gt;} [Incident Number])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;As you can see, it is not the same as the one you said is working, you are missing the single quotes. So, just add them to enclose the dollar-sign expansion. You should have something linke: &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Count( {1&amp;lt;[Submit Date-T] = { '$(=Date(Today(), 'YYYY-MM-DD'))' }&amp;gt;} [Incident Number])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;* Try to remove unnecessary spaces between the single quotes.&lt;/P&gt;&lt;P&gt;* You can also use double quotes in this case.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Miguel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2011 17:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205301#M502833</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2011-03-27T17:56:46Z</dc:date>
    </item>
    <item>
      <title>set analysis today()</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205302#M502834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just noticed, the date expression is using single quotes also, so if you add other pair of single quotes it will cause some trouble. Use double quotes instead.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Count( {1&amp;lt;[Submit Date-T] = { "$(=Date(Today(), 'YYYY-MM-DD'))" }&amp;gt;} [Incident Number])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Miguel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2011 17:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-today/m-p/205302#M502834</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2011-03-27T17:59:36Z</dc:date>
    </item>
  </channel>
</rss>

