<?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 count until value changes (in diagram) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025563#M642071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello and a happy new year to everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've got a question about a counting function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i count the rows until the value in one column changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to count all "A's" before the value changes to "B"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 08:11:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-05T08:11:43Z</dc:date>
    <item>
      <title>count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025563#M642071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello and a happy new year to everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've got a question about a counting function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i count the rows until the value in one column changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to count all "A's" before the value changes to "B"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 08:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025563#M642071</guid>
      <dc:creator />
      <dc:date>2016-01-05T08:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025564#M642072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you wanting to count this? Script or front end? And you only want to count As? and not Bs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 14:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025564#M642072</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-05T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025565#M642073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think i will count on diagram. but it can be in script too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, i have to know how much rows are there before the first B is in. I want to count the Bs as well, but only the uninterrupted Bs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example i would like to count the first As, then the First Bs, then de second As and the second Bs - ist that even possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025565#M642073</guid>
      <dc:creator />
      <dc:date>2016-01-05T16:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025566#M642074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Peek('Example') = Example, Peek('Same'), RangeSum(1, Peek('Same'))) as Same;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;Example&lt;/STRONG&gt; and &lt;STRONG&gt;Same&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;STRONG&gt;Count(Example)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110666_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025566#M642074</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-05T16:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025567#M642075</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;maybe also helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_198363_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/110694_QlikCommunity_Thread_198363_Pic3.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_198363_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/110693_QlikCommunity_Thread_198363_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_198363_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/110695_QlikCommunity_Thread_198363_Pic4.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14520392204398357" jivemacro_uid="_14520392204398357"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(ID,ClusterTotNum) as field1Seq,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(ClusterTotNum,field1) as ClusterNum;&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alt(Peek(ClusterTotNum),0)-(Previous(field1)&amp;lt;&amp;gt;field1) as ClusterTotNum&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;field1&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD ClusterTotNum,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(field1) as ClusterSize&lt;/P&gt;
&lt;P&gt;Resident table1&lt;/P&gt;
&lt;P&gt;Group By ClusterTotNum;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 00:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025567#M642075</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-01-06T00:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025568#M642076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you! this will help me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 07:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025568#M642076</guid>
      <dc:creator />
      <dc:date>2016-01-06T07:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025569#M642077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;thank you! this will help me!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 07:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025569#M642077</guid>
      <dc:creator />
      <dc:date>2016-01-06T07:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025570#M642078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you like, you can mark this solution helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 01:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025570#M642078</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-01-07T01:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025571#M642079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what if I want to count the number of clusters with the same label, output example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A: 4&lt;/P&gt;&lt;P&gt;B: 3&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, 09 Feb 2017 13:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025571#M642079</guid>
      <dc:creator />
      <dc:date>2017-02-09T13:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025572#M642080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out by using the expression as max(ClusterNum):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152633" alt="cluster_num.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152633_cluster_num.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This is very useful to count the number of clusters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 14:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025572#M642080</guid>
      <dc:creator />
      <dc:date>2017-02-09T14:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: count until value changes (in diagram)</title>
      <link>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025573#M642081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Glad you liked it.&lt;/P&gt;&lt;P&gt;Another solution might be:&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(Distinct ClusterNum)&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;regards&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;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Feb 2017 01:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-until-value-changes-in-diagram/m-p/1025573#M642081</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-02-12T01:29:41Z</dc:date>
    </item>
  </channel>
</rss>

