<?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: Help with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-set-analysis/m-p/1446339#M433427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;TRX_Key = p({&amp;lt;[Dim 1] = {'Repurchased'}&amp;gt;}), [Dim 1] = {'New Sales','New Stock'}&amp;gt;}TRX_Key)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2017 22:51:54 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-08-22T22:51:54Z</dc:date>
    <item>
      <title>Help with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-set-analysis/m-p/1446338#M433426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I have a problem where I cant solve the issue in the script. I have to do it in the object it self and I thought maybe this can be solved with some nice set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the occurence of a transaction in the dataset. But only for specific attributes. This is an example of my data set:&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_15034400145741725" jivemacro_uid="_15034400145741725" modifiedtitle="true"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;TRX_Key, Dim 1, Dim 2&lt;/P&gt;
&lt;P&gt;123, New Sales, x&lt;/P&gt;
&lt;P&gt;123, New Stock, y&lt;/P&gt;
&lt;P&gt;123, Old Sales, z&lt;/P&gt;
&lt;P&gt;123, Repurchased, x&lt;/P&gt;
&lt;P&gt;321, New Sales, y&lt;/P&gt;
&lt;P&gt;987, Old Stock, r&lt;/P&gt;
&lt;P&gt;987, Repurchased, s&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to calculate the number of times the transaction (with the TRX_key 123) with "DIM 1"="Repurchased" occurs in "DIM 1" = "New Sales" AND/OR "DIM 1" = "New Stock". In this case 2 times in total. I dont care about the occurence in "Old Sales".&lt;/P&gt;&lt;P&gt;Transaction with TRX_Key = 987 will be 0 times in total because it doesnt occur in "New Sales" nor "New Stock".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion how to do this?&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 22:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-set-analysis/m-p/1446338#M433426</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2017-08-22T22:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-set-analysis/m-p/1446339#M433427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;TRX_Key = p({&amp;lt;[Dim 1] = {'Repurchased'}&amp;gt;}), [Dim 1] = {'New Sales','New Stock'}&amp;gt;}TRX_Key)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 22:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-set-analysis/m-p/1446339#M433427</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-08-22T22:51:54Z</dc:date>
    </item>
  </channel>
</rss>

