<?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 variables in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405384#M485585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a variable (v_on_season) that calculates the number of thansactions that a customer performs in a selected period , eg Q1 2012. and another variable (v_off_season) that calculates the number of thansactions that a customer performs in another selected period , eg Q4 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the number of customers that performed at least one transaction in the first period and at least 100&amp;nbsp; in the other selected period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if customer_id is the calculated field i want to calculate something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count ( {$&amp;lt; $(v_on_season) &amp;gt; 0 , $(v_off_season) &amp;gt;= 100&amp;gt;} customer_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be very appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2013 13:43:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-26T13:43:29Z</dc:date>
    <item>
      <title>using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405384#M485585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a variable (v_on_season) that calculates the number of thansactions that a customer performs in a selected period , eg Q1 2012. and another variable (v_off_season) that calculates the number of thansactions that a customer performs in another selected period , eg Q4 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the number of customers that performed at least one transaction in the first period and at least 100&amp;nbsp; in the other selected period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if customer_id is the calculated field i want to calculate something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count ( {$&amp;lt; $(v_on_season) &amp;gt; 0 , $(v_off_season) &amp;gt;= 100&amp;gt;} customer_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be very appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 13:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405384#M485585</guid>
      <dc:creator />
      <dc:date>2013-04-26T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405385#M485586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this, without set analysis:&lt;/P&gt;&lt;P&gt;count(distinct if(aggr($(v_on_season),customer_id)&amp;gt;0 and aggr($(v_off_season),customer_id)&amp;gt;=100, customer_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't be sure if I got it right without knowing the nature of your variables.&amp;nbsp; In this case I assume that they are text of expressions rather than result of expressions calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 18:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405385#M485586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-26T18:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405386#M485587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/dimcharalampou" id="jive-8821920380919656381511" style="background-color: #ffffff; font-size: 12px; color: #007fc0; text-decoration: initial; font-weight: bold; font-family: Arial; text-align: center;"&gt;dimcharalampou&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the variable will store only one value hence you cant calculate for each customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please share the logic, how u are calculating those variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 18:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405386#M485587</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2013-04-26T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405387#M485588</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(v_on_season)&lt;/SPAN&gt;&amp;gt;0 and &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(v_off_season) &amp;gt;= 100&lt;/SPAN&gt;,count(customer_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is not working then please share the logic to implement the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 01:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405387#M485588</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-04-27T01:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405388#M485589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable for on season&amp;nbsp; is : count({$&amp;lt; Season = p[Season1] &amp;gt;} [Transaction Ammount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for off season is:&amp;nbsp; count({$&amp;lt; Season = p[Season2] &amp;gt;} [Transaction Ammount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your responses guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 07:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405388#M485589</guid>
      <dc:creator />
      <dc:date>2013-04-29T07:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405389#M485590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 13:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405389#M485590</guid>
      <dc:creator />
      <dc:date>2013-05-08T13:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405390#M485591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please try this example.&lt;/P&gt;&lt;P&gt;As rightly said by Nilesh, you can not achieve it by variables.&lt;/P&gt;&lt;P&gt;Try this one and see if it helps &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 15:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variables-in-set-analysis/m-p/405390#M485591</guid>
      <dc:creator>anandathome</dc:creator>
      <dc:date>2013-05-08T15:02:41Z</dc:date>
    </item>
  </channel>
</rss>

