<?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: Set analysis problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653009#M238681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try adding a set modifier to the other aggregation functions too:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;max(&lt;STRONG&gt;{&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Account Name]=&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt; aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Account Name]=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;aggr([Savings]*((round(avg({$ &amp;lt;Industry = {'$(vIndustry)'},[Account Name] =&amp;gt;}[Question Response]))-1)/4),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Question Number], [Account Name])),[Account Name]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 08:18:29 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-09-09T08:18:29Z</dc:date>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653008#M238680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem with the expression below. It basically gives me the account name with the best score to a set of questions in a particular industry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine until I make a selection on the account name field, when it only calculates it for that account name. But I have put "account name =" in the set analysis which should override the selection but it doesn't. I have also tried a 1 instead of a $.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(aggr(sum(aggr([Savings]*((round(avg({$ &amp;lt;Industry = {'$(vIndustry)'},[Account Name] =&amp;gt;}[Question Response]))-1)/4),&lt;/P&gt;&lt;P&gt;[Question Number], [Account Name])),[Account Name]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My options are to calculate it in the script or to make the account name selection a data island so I never make a real selection on that field. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 07:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653008#M238680</guid>
      <dc:creator />
      <dc:date>2014-09-09T07:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653009#M238681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try adding a set modifier to the other aggregation functions too:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;max(&lt;STRONG&gt;{&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Account Name]=&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt; aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Account Name]=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;aggr([Savings]*((round(avg({$ &amp;lt;Industry = {'$(vIndustry)'},[Account Name] =&amp;gt;}[Question Response]))-1)/4),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Question Number], [Account Name])),[Account Name]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 08:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653009#M238681</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-09T08:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653010#M238682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it still only calculates on one account code sorry. I think it might be that the aggr function is using [Account name]. I am going to create a data island with all of the account names in and use that in the aggr function instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 08:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653010#M238682</guid>
      <dc:creator />
      <dc:date>2014-09-09T08:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653011#M238683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was still an implicit aggregation in there. Change&lt;EM&gt; aggr([Savings]&lt;/EM&gt; into &lt;EM&gt;aggr(only({&amp;lt;[Account Name]&amp;gt;}[Savings])&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 08:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653011#M238683</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-09T08:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653012#M238684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, that's brilliant - it works perfectly now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 08:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/653012#M238684</guid>
      <dc:creator />
      <dc:date>2014-09-09T08:33:12Z</dc:date>
    </item>
  </channel>
</rss>

