<?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: problem with a set analysis in a count instruction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456406#M488525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this&lt;/P&gt;&lt;P&gt;mid(Status,index(status,',',1)+1,1)&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Dec 2012 13:11:57 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2012-12-20T13:11:57Z</dc:date>
    <item>
      <title>problem with a set analysis in a count instruction</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456401#M488520</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;I need some help about a formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 3 columns, which gives me the customer's status for each month:&lt;/P&gt;&lt;P&gt;- customer&lt;/P&gt;&lt;P&gt;- period&lt;/P&gt;&lt;P&gt;- status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to count the number of customers who have an Y status the month after having an X status for the last time, inside the periods selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like that to have the number of customers per status for the month after having the last status X :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;count({$&amp;lt;period={'$(=addmonths(max({&amp;lt;status={X}&amp;gt;} period), 1))'}&amp;gt;} distinct customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the set returns the max period of all customers not for each customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea to solve my problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and support!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 11:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456401#M488520</guid>
      <dc:creator>adelmeire</dc:creator>
      <dc:date>2012-12-20T11:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a set analysis in a count instruction</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456402#M488521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use aggr function in your expression from starting point&lt;/P&gt;&lt;P&gt;hope it will helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 12:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456402#M488521</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2012-12-20T12:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a set analysis in a count instruction</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456403#M488522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your help but I tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;aggr( &lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;count({$&amp;lt;period={'$(=addmonths(max({&amp;lt;status={X}&amp;gt;} period), 1))'}&amp;gt;} distinct customer)&lt;/EM&gt;, customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;count({$&amp;lt;period={'$(=addmonths(aggr(max({&amp;lt;status={X}&amp;gt;} period), customer), 1))'}&amp;gt;} distinct customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with no result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here what I would like:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27276" class="jive-image" alt="Microsoft Excel - Classeur1.jpg" src="/legacyfs/online/27276_Microsoft Excel - Classeur1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;but what my formula renters is the last value of each customer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 12:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456403#M488522</guid>
      <dc:creator>adelmeire</dc:creator>
      <dc:date>2012-12-20T12:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a set analysis in a count instruction</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456404#M488523</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;Can you attach sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 12:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456404#M488523</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-12-20T12:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a set analysis in a count instruction</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456405#M488524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this: &lt;/P&gt;&lt;P&gt;mid(concat(Status,','),index(concat(Status,','),'X',-1)+2,1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 12:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456405#M488524</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-20T12:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a set analysis in a count instruction</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456406#M488525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this&lt;/P&gt;&lt;P&gt;mid(Status,index(status,',',1)+1,1)&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 13:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456406#M488525</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2012-12-20T13:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a set analysis in a count instruction</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456407#M488526</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;&lt;/P&gt;&lt;P&gt;here a sequence a status:&amp;nbsp; 11, 11, 12, 11, 11, 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with your help, I found the next value (15) following the last 11 value.&lt;/P&gt;&lt;P&gt;But now, I want to find the previous value (12) before the last 11 value. Do you have another any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 16:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-set-analysis-in-a-count-instruction/m-p/456407#M488526</guid>
      <dc:creator>adelmeire</dc:creator>
      <dc:date>2012-12-20T16:24:49Z</dc:date>
    </item>
  </channel>
</rss>

