<?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: Can a function be used as the basis for set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-a-function-be-used-as-the-basis-for-set-analysis/m-p/688831#M675714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Spencer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be the syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; {$&amp;lt;Store= {“=count(distinct store_counter_cur ) &amp;gt; 0.5*$(vTotalStores)”}&amp;gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 22:04:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-16T22:04:17Z</dc:date>
    <item>
      <title>Can a function be used as the basis for set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-a-function-be-used-as-the-basis-for-set-analysis/m-p/688830#M675713</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;&lt;/P&gt;&lt;P&gt;I'm trying to create a select in field action by using the concat function, but I'm having an issue with the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to limit my product selection to just products which are sold in &amp;gt;50% of stores, so I'm trying the set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{(&amp;lt;count(DISTINCT store_counter_cur)={"&amp;gt;.5*$(vTotalStores)"&amp;gt;)}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think anything can be done in script to per-aggregate, as it's dependent on the current store selection, as well as the timeframe.&amp;nbsp; Qlikview doesn't seem to like having an aggregation function in the set analysis however.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Spence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 14:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-a-function-be-used-as-the-basis-for-set-analysis/m-p/688830#M675713</guid>
      <dc:creator />
      <dc:date>2014-07-16T14:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can a function be used as the basis for set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-a-function-be-used-as-the-basis-for-set-analysis/m-p/688831#M675714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Spencer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be the syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; {$&amp;lt;Store= {“=count(distinct store_counter_cur ) &amp;gt; 0.5*$(vTotalStores)”}&amp;gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 22:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-a-function-be-used-as-the-basis-for-set-analysis/m-p/688831#M675714</guid>
      <dc:creator />
      <dc:date>2014-07-16T22:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can a function be used as the basis for set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-a-function-be-used-as-the-basis-for-set-analysis/m-p/688832#M675715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that got it, thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For everyone else's benefit, the full code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='("'&amp;amp; &lt;/P&gt;&lt;P&gt;Concat(&lt;/P&gt;&lt;P&gt;{$&amp;lt;Product={"=count(DISTINCT store_counter_cur) &amp;gt; 0.5*$(vTotalStores)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;Product, '"|"')&lt;/P&gt;&lt;P&gt; &amp;amp; '")'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 13:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-a-function-be-used-as-the-basis-for-set-analysis/m-p/688832#M675715</guid>
      <dc:creator />
      <dc:date>2014-07-17T13:27:19Z</dc:date>
    </item>
  </channel>
</rss>

