<?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 Counting recent occurrences in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-recent-occurrences/m-p/222739#M75323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is very easy to calculate using frontend scripting in chart. U can use count(If(TransactionDate&amp;lt;=today() and TransactionDate&amp;gt;=today()-30,Login)&lt;/P&gt;&lt;P&gt;for any query u can send me the application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Dec 2010 12:17:16 GMT</pubDate>
    <dc:creator>maneshkhottcpl</dc:creator>
    <dc:date>2010-12-14T12:17:16Z</dc:date>
    <item>
      <title>Counting recent occurrences</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-recent-occurrences/m-p/222738#M75322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are currently evaluating QlikView and are trying to model our metrics in QlikView. I'm trying to see how far I can get by using the data directly from our production slave database.&lt;/P&gt;&lt;P&gt;It's coming along quite well, but I have hit one stumbling block that I have been unable to solve. We are logging user logins to our site, and would like to measure how many users use our product on a daily, weekly and monthly basis. To do this we want for each day to calculate how many users have logged in in the last 30 days, at least 4 times in the last 30 days and at least 16 times in the last 30 days. I can easily model the first one by accumulating 30 steps back. I am however unsure how I should model the other two.&lt;/P&gt;&lt;P&gt;Any hints on how this should be done? The data is simply a table of user ids and the dates they logged in.&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Christian, Podio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 11:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-recent-occurrences/m-p/222738#M75322</guid>
      <dc:creator />
      <dc:date>2010-12-14T11:08:35Z</dc:date>
    </item>
    <item>
      <title>Counting recent occurrences</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-recent-occurrences/m-p/222739#M75323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is very easy to calculate using frontend scripting in chart. U can use count(If(TransactionDate&amp;lt;=today() and TransactionDate&amp;gt;=today()-30,Login)&lt;/P&gt;&lt;P&gt;for any query u can send me the application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 12:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-recent-occurrences/m-p/222739#M75323</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2010-12-14T12:17:16Z</dc:date>
    </item>
    <item>
      <title>Counting recent occurrences</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-recent-occurrences/m-p/222740#M75324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I have the table as (user_id, login_date), and have used login_date as the dimension. If I use your example I would always test against today, while I need to test against the login, so I can get the changes over time, not just the current picture. I am I misunderstanding something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 12:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-recent-occurrences/m-p/222740#M75324</guid>
      <dc:creator />
      <dc:date>2010-12-14T12:42:39Z</dc:date>
    </item>
    <item>
      <title>Counting recent occurrences</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-recent-occurrences/m-p/222741#M75325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christian&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Number of users logged in last 30 days&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;count({1&amp;lt;logindate={"&amp;gt;=$(=Date((Today()-30), 'DD.MM.YYYY'))"}&amp;gt;}distinct User)&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;number of user logged in last 30 days but at least 4 times&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;count&lt;/B&gt;({$&amp;lt; &lt;B&gt;User&lt;/B&gt;={'=count({&amp;lt;logindate={"&amp;gt;=$(=(Date((Today()-30), '&lt;B&gt;DD.MM.YYYY'&lt;/B&gt;)))&lt;B&gt;"}&amp;gt;}logindate)&amp;gt;3'}&amp;gt;} distinct User)&lt;/B&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;number of user logged in last 30 days but at least 16 times&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;count&lt;/B&gt;({$&amp;lt; &lt;B&gt;User&lt;/B&gt;={'=count({&amp;lt;logindate={"&amp;gt;=$(=(Date((Today()-30), '&lt;B&gt;DD.MM.YYYY'&lt;/B&gt;)))&lt;B&gt;"}&amp;gt;}logindate)&amp;gt;15'}&amp;gt;} distinct User)&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;although the formula editor is given an error it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 13:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-recent-occurrences/m-p/222741#M75325</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2010-12-14T13:37:03Z</dc:date>
    </item>
  </channel>
</rss>

