<?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 today - 7 days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871477#M304656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=date(today()-7))&amp;lt;=$(=date(today()))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 08:54:36 GMT</pubDate>
    <dc:creator>nikhilgandhi715</dc:creator>
    <dc:date>2015-07-15T08:54:36Z</dc:date>
    <item>
      <title>count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871471#M304650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I have the following fields:&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Activity_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a table chart with the following expression: count(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Activities_id).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I want to count (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Activities_id&lt;/SPAN&gt;) using set analysis, so that I'll count all the activities which were performed 7 days ago till today.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I'm not sure how I can do that... I'm using the following expression in order to count last week activities:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=count&lt;/P&gt;&lt;P&gt;(DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; {$&amp;lt;[YearWeek_Num] = {$(=MAX([YearWeek_Num])-1)}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Activities_id]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;can someone please advise?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871471#M304650</guid>
      <dc:creator />
      <dc:date>2015-07-14T13:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871472#M304651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count&lt;/P&gt;&lt;P&gt;(DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; {$&amp;lt;[YearWeek_Num] = {$(=(year(Today()-7)*100+week(today()-7)))}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Activities_id]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871472#M304651</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-07-14T13:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871473#M304652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that the field names are Date and Activity_id, this will work:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Date={"&amp;gt;=date(today()-7)&amp;lt;=date(today()"}&amp;gt;} distinct Activity_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871473#M304652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-14T14:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871474#M304653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count({&amp;lt;Date={"&amp;gt;=date(today()-7)&amp;lt;=date(today()&lt;STRONG&gt;)&lt;/STRONG&gt;"}&amp;gt;} distinct Activity_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U missed a Bracket&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 15:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871474#M304653</guid>
      <dc:creator>sgrice</dc:creator>
      <dc:date>2015-07-14T15:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871475#M304654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 15:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871475#M304654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-14T15:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871476#M304655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! thank you for your help.&lt;/P&gt;&lt;P&gt;for some reason the result is '0' although I have activities in the last 7 days&lt;/P&gt;&lt;P&gt;please check the attached example...&lt;/P&gt;&lt;P&gt;thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 08:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871476#M304655</guid>
      <dc:creator />
      <dc:date>2015-07-15T08:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871477#M304656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=date(today()-7))&amp;lt;=$(=date(today()))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 08:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871477#M304656</guid>
      <dc:creator>nikhilgandhi715</dc:creator>
      <dc:date>2015-07-15T08:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871478#M304657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, here is a more reliable way:&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;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(='&amp;gt;='&amp;amp;date(today()-7)&amp;amp;'&amp;lt;='&amp;amp;date(today()))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 09:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871478#M304657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-15T09:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871479#M304658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Michal&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Date={"=date(today()-7)"}&amp;gt;} distinct Activity_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 09:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871479#M304658</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2015-07-15T09:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871480#M304659</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;Try like this&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;count({&amp;lt;Date={"&amp;gt;=$(=date(today()-7))&amp;lt;=$(=date(today()))"}&amp;gt;} distinct Activity_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; 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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 09:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871480#M304659</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-07-15T09:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871481#M304660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 10:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871481#M304660</guid>
      <dc:creator />
      <dc:date>2015-07-15T10:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: count today - 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871482#M304661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to expression&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Date1={"&amp;gt;=$(=Date(today()-7))&amp;lt;=$(=Date(today()))"}&amp;gt;} Distinct Activity_ID),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It started working when I corrected my source date using preceding load,&lt;/P&gt;&lt;P&gt;Load Date#(Date,'DD/MM/YYYY') as Date1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Unfortunately as of now I don't have licensed version so cannot see ur QVW, just check if you have similar problem. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 10:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-today-7-days/m-p/871482#M304661</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-07-15T10:53:14Z</dc:date>
    </item>
  </channel>
</rss>

