<?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: Counting transactions after event in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001782#M954799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimesnion: &lt;STRONG&gt;PERSON&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;=Count({&amp;lt;CODE = {"$(='&amp;gt;' &amp;amp; $(v_Code))"}&amp;gt;}PERSON) &lt;/STRONG&gt;or may be this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count(If(CODE &amp;gt; $(v_Code), PERSON))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2015 11:23:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-11-16T11:23:13Z</dc:date>
    <item>
      <title>Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001781#M954798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to count the numnber of transactions occuring after a specific event for each person.&lt;/P&gt;&lt;P&gt;The data looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105594_pastedImage_0.png" /&gt;&lt;/P&gt;&lt;P&gt;The event of interest is entered as a variable (v_Code). So if i enter 2 as event in v_code, i would like to have a result like this:&lt;/P&gt;&lt;P&gt;Person&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number of Transactions after Code=2 (TAID)&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to solve this? I guess set-analysis is not possible. I tried asof-Tables, but cannot create them because of size (3 million transactions in table).&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;Cheers Andreas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001781#M954798</guid>
      <dc:creator />
      <dc:date>2015-11-16T11:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001782#M954799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimesnion: &lt;STRONG&gt;PERSON&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;=Count({&amp;lt;CODE = {"$(='&amp;gt;' &amp;amp; $(v_Code))"}&amp;gt;}PERSON) &lt;/STRONG&gt;or may be this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count(If(CODE &amp;gt; $(v_Code), PERSON))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001782#M954799</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-16T11:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001783#M954800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it. Seems to work but only if a code is used that both Persons received. For example if i enter 1 for v_code it correctly returns 4 for Person 1 but also 2 for Person 2 although this Person hasn't received Code 1 at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001783#M954800</guid>
      <dc:creator />
      <dc:date>2015-11-16T11:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001784#M954801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with Dimension Person with following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exp:&amp;nbsp; count({&amp;lt;CODE={'&amp;gt;=$(=&lt;STRONG style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;v_Code)&lt;/STRONG&gt;'}&amp;gt;} Person)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;make sure CODE should be in num format&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001784#M954801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-16T11:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001785#M954802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Person&lt;/P&gt;&lt;P&gt;Expression: &lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Count({&amp;lt;CODE = {"&amp;gt;=$(v_Code)"}&amp;gt;} TAID) -1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Expression: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;=Count( AGGR( if( TAID &amp;gt; MIN(TOTAL&amp;lt;Person&amp;gt; {&amp;lt;Code = {'$(v_Code)'}&amp;gt;} TAID), TAID), PERSON, TAID))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;edit: It's not really clear if Code of a TAID could be any Code, even lower than the previous codes and the code you are looking for. It seems that could be the case and that you just want to count any TAID after the first occurence of vCode, sorted by TAID. I believe, you would need something like my second expression then.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001785#M954802</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-16T11:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001786#M954803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension : Person&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression : count({&amp;lt;Code ={"$(=v_Code)"}&amp;gt;}&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001786#M954803</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-16T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001787#M954804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right, the codes are ordered by chance in the example. It is possible, that they are not ordered, so that a &amp;gt;= comparison would fail.&lt;/P&gt;&lt;P&gt;I tried your second solution, but it doesn't return anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Found it Person for TOTAL has to be also in upper case. But it is still not working. For code=2 it returns for Person1 4 and for Person2 = 1. Any idea why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 12:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001787#M954804</guid>
      <dc:creator />
      <dc:date>2015-11-16T12:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001788#M954805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Second expression seems to work ok also for v_Code = 1, just need to use the correct field names (QV is case sensitive):&lt;/P&gt;&lt;P&gt;=Count( AGGR( if( TAID &amp;gt; MIN(TOTAL&amp;lt;PERSON&amp;gt; {&amp;lt;CODE = {'$(v_Code)'}&amp;gt;} TAID), TAID), PERSON, TAID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 12:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001788#M954805</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-16T12:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001789#M954806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you expect to see when you v_Code = 1 for person 2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 12:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001789#M954806</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-16T12:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001790#M954807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be empty, because Person 2 didn't receive code 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Thanks Sunny. See answer of swuehl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 13:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001790#M954807</guid>
      <dc:creator />
      <dc:date>2015-11-16T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting transactions after event</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001791#M954808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried it again and found it working. Thanks so much swuehl. No I'm trying the reponse time for 3 million entries &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 13:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-transactions-after-event/m-p/1001791#M954808</guid>
      <dc:creator />
      <dc:date>2015-11-16T13:05:52Z</dc:date>
    </item>
  </channel>
</rss>

