<?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 Calculate indicators over several months with a filter data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183798#M48921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response, but I don't know what is a flag?&lt;/P&gt;&lt;P&gt;How I can use this in the QVW to calculate the indicators?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jun 2010 13:41:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-10T13:41:51Z</dc:date>
    <item>
      <title>Calculate indicators over several months with a filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183796#M48919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I need help on a dashboard:&lt;BR /&gt;This involves several things in this dashboard:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="la première est un indicateur qui doit calculer le nombre de personnes qui ont été active (qui ont fais gagner de l'argent) dans le mois précédent et aussi dans le mois sélectionne dans les filtres de date."&gt;The first is an indicator that must calculate the number of people who have been active (who do make money) in the previous month and also in the month select the date filters.&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="(ex: on sélectionne Juin 2010, il nous faut affiche le nombre de personne active pour ce mois ci et active le mois de Mai 2010 aussi)"&gt;(Eg June 2010 is selected, we must show the number of people working for this month and active month of May 2010 also)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="(ex: on sélectionne Juin 2010, il nous faut affiche le nombre de personne active pour ce mois ci et active le mois de Mai 2010 aussi)"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="La deuxième concerne un indicateur qui doit récupérer le nombre d'utilisateur actif du mois dernier quand on sélectionne un mois précis : (ex: on sélectionne Juin 2010, il nous faut affiche le nombre de personne active pour ce mois ci et le nombre de personne"&gt;The second is an indicator that needs to get the number of active users last month when we select a particular month (eg June 2010 is selected, we must show the number of people working for this month and the number of people&lt;/SPAN&gt; activates the month of May 2010)&lt;BR /&gt;&lt;BR /&gt;Here are the different formulas that I use:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[Code]Indicator Acitve customer last month:&lt;BR /&gt;({$&amp;lt;$( vSetAnalysisSPLM count)&amp;gt;) DISTINCT KEY_USER_MARGE)&lt;BR /&gt;&lt;BR /&gt;Customers Active this Month:&lt;BR /&gt;count (DISTINCT KEY_USER_MARGE)&lt;BR /&gt;&lt;BR /&gt;New active customers:&lt;BR /&gt;&lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="(sum( { $&amp;lt;USER_MARGE.Cohorte={&amp;quot;&amp;gt;=$(=monthstart(max([Date])))&amp;lt;=$(=max([Date]))&amp;quot;}&amp;gt;} [USER_MARGE.Nb user ID]"&gt;(Sum (($ &amp;lt;USER_MARGE.Cohorte={"&amp;gt; = $ (monthstart = (max ([Date ])))&amp;lt;=$(= max ([Date ]))"}&amp;gt;} [USER_MARGE.Nb user ID]&lt;/SPAN&gt; ))&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="Nb Customers 1st deposit last month and margin this month:"&gt;No. Customers 1st deposit margin last month and this month:&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="count( { $&amp;lt;USER_MARGE.Cohorte={&amp;quot;&amp;gt;=$(=Addmonths(monthstart(max([Date]),-1)))"&gt;count (($ &amp;lt;USER_MARGE.Cohorte={"&amp;gt; = $ (= Addmonths (monthstart (max ([Date]), -1)))&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="&amp;lt;=$(=AddMonths(max([Date]),-1))&amp;quot;}&amp;gt;} DISTINCT KEY_USER_MARGE)"&gt;&amp;lt;=$(= AddMonths (max ([Date]), -1 ))"}&amp;gt;} DISTINCT KEY_USER_MARGE)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="Nb Active Customers both last month and this month :"&gt;No. Active Customers Both last month and this month:&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="count( { $&amp;lt;USER_MARGE.Cohorte={&amp;quot;&amp;gt;=$(=Addmonths(monthstart(max([Date]),-1)))&amp;lt;=$(=AddMonths(max([Date]),-1))"&gt;count (($ &amp;lt;USER_MARGE.Cohorte={"&amp;gt; = $ (= Addmonths (monthstart (max ([Date]), -1 )))&amp;lt;=$(= AddMonths (max ([Date]), -1))&lt;/SPAN&gt; &lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="&amp;quot;}&amp;gt;} DISTINCT KEY_USER_MARGE)"&gt;")&amp;gt;) DISTINCT KEY_USER_MARGE)&lt;BR /&gt;&lt;/SPAN&gt; [/Code]&lt;BR /&gt;&lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="&amp;quot;}&amp;gt;} DISTINCT KEY_USER_MARGE)"&gt;&lt;/SPAN&gt;Cohort is the first deposit date of the person.&lt;BR /&gt;&lt;BR /&gt; how I could calculate these indicators?&lt;BR /&gt;&lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="Je vous remercie d'avance de votre aide :)"&gt;Thank you in advance for your help:)&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="Je vous trouverez ci joint un fichier QVW d'exemple j'espère que cela fonctionnera."&gt;Please find attached here&lt;/SPAN&gt; &lt;A href="http://dl.free.fr/oRlsZfzFi" target="_blank"&gt;http://dl.free.fr/oRlsZfzFi&lt;/A&gt; &lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="Je vous trouverez ci joint un fichier QVW d'exemple j'espère que cela fonctionnera."&gt;an example file QVW I hope it will work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: #ffffff;" title="Je vous trouverez ci joint un fichier QVW d'exemple j'espère que cela fonctionnera."&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Sincerely,&lt;BR /&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 10:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183796#M48919</guid>
      <dc:creator />
      <dc:date>2010-06-10T10:43:53Z</dc:date>
    </item>
    <item>
      <title>Calculate indicators over several months with a filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183797#M48920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Olá Bruno!&lt;/P&gt;&lt;P&gt;I think you can create a flag in the script, linked by Customer&amp;amp;Month like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;FACT_TABLE:&lt;BR /&gt;LOAD&lt;BR /&gt; ...,&lt;BR /&gt; ...,&lt;BR /&gt; Data,&lt;BR /&gt; Customer,&lt;BR /&gt; autonumber(Monthname(Data)&amp;amp;Customer) as Key,&lt;BR /&gt;FROM XPTO.QVD (qvd)&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;FLAG:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt; autonumber(Monthname(Data)&amp;amp;Customer) as Key,&lt;BR /&gt; '1' as FlagAtivo&lt;BR /&gt;RESIDENT FACT_TABLE&lt;BR /&gt;;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;This way you can make the count of active customers as SUM(FlagAtivo) and compare diferent periods with simple Set Analisys expressions... &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;Abç,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 13:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183797#M48920</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-06-10T13:07:50Z</dc:date>
    </item>
    <item>
      <title>Calculate indicators over several months with a filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183798#M48921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response, but I don't know what is a flag?&lt;/P&gt;&lt;P&gt;How I can use this in the QVW to calculate the indicators?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 13:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183798#M48921</guid>
      <dc:creator />
      <dc:date>2010-06-10T13:41:51Z</dc:date>
    </item>
    <item>
      <title>Calculate indicators over several months with a filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183799#M48922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A flag is a field that you use as a reference in some calculations.&lt;/P&gt;&lt;P&gt;If you create a table with a column named "Flag" made of 1´s wich has a row for each active customer each month, the expression for counting them is just sum(flag)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 18:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183799#M48922</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-06-10T18:14:05Z</dc:date>
    </item>
    <item>
      <title>Calculate indicators over several months with a filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183800#M48923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a okay, but this table is very Huge. I have 5 years and more of 2 millions of Users.&lt;/P&gt;&lt;P&gt;I can do this i think they are an other solutions no i hope &lt;IMG alt="Tongue Tied" src="http://community.qlik.com/emoticons/emotion-7.gif" /&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 09:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-indicators-over-several-months-with-a-filter-data/m-p/183800#M48923</guid>
      <dc:creator />
      <dc:date>2010-06-11T09:26:46Z</dc:date>
    </item>
  </channel>
</rss>

