<?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: How can I create a rolling count when a month is selected? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-create-a-rolling-count-when-a-month-is-selected/m-p/990798#M971647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample Excel file with your expected output to help you better??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Sep 2015 17:20:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-09-07T17:20:54Z</dc:date>
    <item>
      <title>How can I create a rolling count when a month is selected?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-create-a-rolling-count-when-a-month-is-selected/m-p/990796#M971645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;I am trying to count the number of demos my territory managers do for a 3 month period.&lt;/P&gt;&lt;P&gt;I have created a field - Month_Activity_Num which I want to use to create a rolling count. However I tried the rollingcount() function with/without aggregration, set analysis to create a formula which would display the correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be my ignorance that is creating problems with the syntax. Can somebody help with this. There might be a simple solution to this query of mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The queries I used are:&lt;/P&gt;&lt;P&gt;= &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;rangecount (&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&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;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT_FAMILY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,3) )&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;SPAN style="color: #0000ff;"&gt; Count&lt;/SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&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;MONTH&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT_FAMILY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,3) ),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= Count ({$&amp;lt;MONTH_ACTIVITY_NUM1={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=7.*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}OKM_SALESPARTDESC) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= count &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&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;MONTH_ACTIVITY_NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT_FAMILY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,3) ),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_ACTIVITY_NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;= count(&lt;/SPAN&gt;{&amp;lt;Month={'&amp;gt;=$(=only(Month)-2)&amp;lt;=$(=only(Month))'}&amp;gt;}PRODUCT_FAMILY)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must use num(MONTH_ACTIVITY_NUM) to create a numeric value for the month value of the related activity.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 15:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-create-a-rolling-count-when-a-month-is-selected/m-p/990796#M971645</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2015-09-07T15:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a rolling count when a month is selected?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-create-a-rolling-count-when-a-month-is-selected/m-p/990797#M971646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this document for some solutions: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 15:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-create-a-rolling-count-when-a-month-is-selected/m-p/990797#M971646</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-07T15:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a rolling count when a month is selected?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-create-a-rolling-count-when-a-month-is-selected/m-p/990798#M971647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample Excel file with your expected output to help you better??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 17:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-create-a-rolling-count-when-a-month-is-selected/m-p/990798#M971647</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-07T17:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a rolling count when a month is selected?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-create-a-rolling-count-when-a-month-is-selected/m-p/990799#M971648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Please find attached the file for sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Product_family) gives correct data for the selected months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to create a syntax where it ignores the month dimension and displays data for 3 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use num(Month_activity_number) for calculations using months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the various syntax using rangecount() and set analysis but the value is not accurate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody can help with this, it would be very much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 11:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-create-a-rolling-count-when-a-month-is-selected/m-p/990799#M971648</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2015-09-09T11:32:16Z</dc:date>
    </item>
  </channel>
</rss>

