<?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 Set Analysis and Date(Today()) ... help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853698#M1215778</link>
    <description>&lt;P&gt;That is what even I was expecting, i.e. - it should return the same value as set analysis with double quotes.&amp;nbsp; Okay, I guess this should work for your case:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Type&lt;/SPAN&gt;&lt;SPAN&gt;={'Served'},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;={$(=&lt;STRONG&gt;chr(39)&amp;amp;&lt;/STRONG&gt;Date(Today(),'YYYY-MM-DD')&lt;STRONG&gt;&amp;amp;chr(39)&lt;/STRONG&gt;)}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN&gt;TypeTimestamp&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;Note : no quotes outside $ expansion.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Oct 2021 14:14:06 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2021-10-29T14:14:06Z</dc:date>
    <item>
      <title>Using Set Analysis and Date(Today()) ... help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853548#M1215769</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im want to count count the number of customer within an app for the current day....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;=&lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN class="s2"&gt;Type&lt;/SPAN&gt;={'Served'}, &lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;={'2021-10-29'}&amp;gt;}&lt;SPAN class="s2"&gt;TypeTimestamp&lt;/SPAN&gt;)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; I correctly get &lt;STRONG&gt;7&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;However, if I use&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN class="s2"&gt;Type&lt;/SPAN&gt;={'Served'}, &lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;={"$(=Date(Today(), 'YYYY-MM-DD'))"}&amp;gt;}&lt;SPAN class="s2"&gt;TypeTimestamp&lt;/SPAN&gt;)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; I get &lt;STRONG&gt;37&lt;/STRONG&gt;....&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;Can anyone advise please?&lt;/P&gt;
&lt;P class="p1"&gt;Many thanks&lt;/P&gt;
&lt;P class="p1"&gt;Dai&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 09:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853548#M1215769</guid>
      <dc:creator>Senor_Dai</dc:creator>
      <dc:date>2021-10-29T09:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis and Date(Today()) ... help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853554#M1215770</link>
      <description>&lt;P&gt;Try like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Type&lt;/SPAN&gt;&lt;SPAN&gt;={'Served'},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;={&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;$(=Date(Today(), &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;''&lt;/FONT&gt;&lt;/STRONG&gt;YYYY-MM-DD&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;''&lt;/FONT&gt;&lt;/STRONG&gt;))&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;TypeTimestamp&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note : highlighted in red are all &lt;STRONG&gt;single quotes&lt;/STRONG&gt;. That means, use two singles quotes for formatting the date and put the final date in single quotes as well&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 09:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853554#M1215770</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-10-29T09:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis and Date(Today()) ... help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853601#M1215773</link>
      <description>&lt;P&gt;Hi Thanks for the reply..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This now returns 0 ... any ideas?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My expression is now&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;=&lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN class="s2"&gt;Type&lt;/SPAN&gt;={'Served'}, &lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;={'$(=Date(Today(),''YYYY-MM-DD''))'}&amp;gt;}&lt;SPAN&gt;TypeTimestamp&lt;/SPAN&gt;)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 10:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853601#M1215773</guid>
      <dc:creator>Senor_Dai</dc:creator>
      <dc:date>2021-10-29T10:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis and Date(Today()) ... help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853618#M1215774</link>
      <description>&lt;P&gt;What if you replace double quotes with square brackets, like below?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Type&lt;/SPAN&gt;&lt;SPAN&gt;={'Served'},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;={&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;[&lt;/FONT&gt;&lt;/STRONG&gt;$(=Date(Today(),'YYYY-MM-DD'))&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;]&lt;/FONT&gt;&lt;/STRONG&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN&gt;TypeTimestamp&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 11:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853618#M1215774</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-10-29T11:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis and Date(Today()) ... help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853653#M1215775</link>
      <description>&lt;P&gt;hi,&amp;nbsp; that gives me 37 again....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 12:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853653#M1215775</guid>
      <dc:creator>Senor_Dai</dc:creator>
      <dc:date>2021-10-29T12:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis and Date(Today()) ... help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853698#M1215778</link>
      <description>&lt;P&gt;That is what even I was expecting, i.e. - it should return the same value as set analysis with double quotes.&amp;nbsp; Okay, I guess this should work for your case:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Type&lt;/SPAN&gt;&lt;SPAN&gt;={'Served'},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;={$(=&lt;STRONG&gt;chr(39)&amp;amp;&lt;/STRONG&gt;Date(Today(),'YYYY-MM-DD')&lt;STRONG&gt;&amp;amp;chr(39)&lt;/STRONG&gt;)}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN&gt;TypeTimestamp&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;Note : no quotes outside $ expansion.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 14:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853698#M1215778</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-10-29T14:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis and Date(Today()) ... help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853728#M1215781</link>
      <description>&lt;P&gt;Hi, thanks again for your help... This still gives 37..&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;..&lt;BR /&gt;&lt;BR /&gt;Could it be anything to do with the format of my Date field?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 15:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853728#M1215781</guid>
      <dc:creator>Senor_Dai</dc:creator>
      <dc:date>2021-10-29T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis and Date(Today()) ... help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853860#M1215788</link>
      <description>&lt;P&gt;Could you please post a small sample application inlcuding only your Date field to test solutions with?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Sat, 30 Oct 2021 12:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-and-Date-Today-help/m-p/1853860#M1215788</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2021-10-30T12:33:16Z</dc:date>
    </item>
  </channel>
</rss>

