<?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: Count All IDs for Current Day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604731#M1103860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create these variables&lt;/P&gt;&lt;P&gt;vPrev4Weeks = Date(weekstart(today()-28),'MM/DD/YYYY hh:mm:ss')&lt;BR /&gt;vCurrent = Date(Today(),'MM/DD/YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this expression&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;CHECKIN_DT_TM={"&amp;gt;=$(vPrev4Weeks)&amp;lt;=$(vCurrent)"}&amp;gt;}ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 06:48:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-07T06:48:09Z</dc:date>
    <item>
      <title>Count All IDs for Current Day</title>
      <link>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604725#M1103853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having an issue creating an expression to display in a text box that will show me a count of IDs created on the current day, as well as for the last 4 weeks. I have tried using set analysis also and have not had any luck.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date field that I am using is: CHECKIN_DT_TM and has a format of 'MM/DD/YYYY, 'HH:MM:SS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried multiple formulas with no success, any help/suggestions are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 19:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604725#M1103853</guid>
      <dc:creator />
      <dc:date>2014-04-04T19:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count All IDs for Current Day</title>
      <link>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604726#M1103854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CHECKIN_DT_TM &lt;/SPAN&gt;={'$(=Today())'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CHECKIN_DT_TM &lt;/SPAN&gt;={'$(=date(floor(Today())))'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT&lt;/P&gt;&lt;P&gt;=count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CHECKIN_DT_TM&lt;/SPAN&gt; ={"&amp;gt;=$(=weekstart(today()-28))&amp;lt;=$(=date(floor(Today())))"}&amp;gt;} ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 21:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604726#M1103854</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-04T21:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count All IDs for Current Day</title>
      <link>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604727#M1103855</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;=count({&amp;lt;"CHECKIN_DT_TM&amp;gt;={'$(=weekstart(today()-28))'} and CHECKIN_DT_TM=&amp;lt;{'$(=date(floor(Today())))'}"&amp;gt;}ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 06:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604727#M1103855</guid>
      <dc:creator />
      <dc:date>2014-04-05T06:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count All IDs for Current Day</title>
      <link>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604728#M1103856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harshal, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response, however I keep getting the error ' Error in Expression: '}' expected', and the error line is on the '}' right before the 'and' in the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I played around and attempted to add/move the ']' but had no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 17:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604728#M1103856</guid>
      <dc:creator />
      <dc:date>2014-04-05T17:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count All IDs for Current Day</title>
      <link>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604729#M1103857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried what Massimo explained its perfectly working for me.&lt;/P&gt;&lt;P&gt;May be problem is in date column, try to exclude time stamp from the date.&lt;/P&gt;&lt;P&gt;You may get the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the excel file I used.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56670_Capture.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 00:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604729#M1103857</guid>
      <dc:creator />
      <dc:date>2014-04-06T00:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count All IDs for Current Day</title>
      <link>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604730#M1103858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jordan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another approach:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CHECKIN_DT_TM&lt;/SPAN&gt;={'&amp;gt;=$(=vweek)&amp;lt;=$(=vtoday)'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ID&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(variable)vweek: =weekstart(today()-28)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(variable)&lt;/SPAN&gt;vtoday: =date(floor(Today()))&lt;/SPAN&gt;&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;"&gt;=count({&amp;lt;CHECKIN_DT_TM=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{"&amp;gt;=$(=weekstart(today()-28))&amp;lt;=$(=date(floor(Today())))"}&lt;/SPAN&gt;&amp;gt;}ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this is correct format specified by massimo if still you are getting trouble then you must check your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CHECKIN_DT_TM&lt;/SPAN&gt; date format cause if it not matches with expression it may result as 0 in your text-box result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 06:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604730#M1103858</guid>
      <dc:creator />
      <dc:date>2014-04-07T06:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count All IDs for Current Day</title>
      <link>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604731#M1103860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create these variables&lt;/P&gt;&lt;P&gt;vPrev4Weeks = Date(weekstart(today()-28),'MM/DD/YYYY hh:mm:ss')&lt;BR /&gt;vCurrent = Date(Today(),'MM/DD/YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this expression&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;CHECKIN_DT_TM={"&amp;gt;=$(vPrev4Weeks)&amp;lt;=$(vCurrent)"}&amp;gt;}ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 06:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-All-IDs-for-Current-Day/m-p/604731#M1103860</guid>
      <dc:creator />
      <dc:date>2014-04-07T06:48:09Z</dc:date>
    </item>
  </channel>
</rss>

