<?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 Using E or P set analysis with a second qualifier in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-E-or-P-set-analysis-with-a-second-qualifier/m-p/663946#M241809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate a function that lists all subscription orders (directory_qualifier in my example), where the order doesnt exist in any later period (i.e. the subscription is ending) but has also appeared in at least 12 previous periods. I have identified orders that are ending using E set analysis as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;directory_qualifier =E({1&amp;lt;Financial_Period_YYYYMM={'&amp;gt;$(vSelectedPeriod)'}&amp;gt;})&amp;gt;} distinct&amp;nbsp; directory_qualifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also been able to count how many periods the subscription appeared in using the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Financial_Period_YYYYMM = {'*'}&amp;gt;} directory_qualifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to bring the two together though, to give me a result set of subscriptions which have run for 12 period and finish in the selected period (vSelectedPeriod). Is this possible through just set analysis, or through a combination of if statement and set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2014 15:31:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-27T15:31:50Z</dc:date>
    <item>
      <title>Using E or P set analysis with a second qualifier</title>
      <link>https://community.qlik.com/t5/QlikView/Using-E-or-P-set-analysis-with-a-second-qualifier/m-p/663946#M241809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate a function that lists all subscription orders (directory_qualifier in my example), where the order doesnt exist in any later period (i.e. the subscription is ending) but has also appeared in at least 12 previous periods. I have identified orders that are ending using E set analysis as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;directory_qualifier =E({1&amp;lt;Financial_Period_YYYYMM={'&amp;gt;$(vSelectedPeriod)'}&amp;gt;})&amp;gt;} distinct&amp;nbsp; directory_qualifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also been able to count how many periods the subscription appeared in using the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Financial_Period_YYYYMM = {'*'}&amp;gt;} directory_qualifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to bring the two together though, to give me a result set of subscriptions which have run for 12 period and finish in the selected period (vSelectedPeriod). Is this possible through just set analysis, or through a combination of if statement and set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 15:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-E-or-P-set-analysis-with-a-second-qualifier/m-p/663946#M241809</guid>
      <dc:creator />
      <dc:date>2014-08-27T15:31:50Z</dc:date>
    </item>
  </channel>
</rss>

