<?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 query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388931#M1164086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want it not to change also when you have a selection, then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max({1} total &amp;lt;country&amp;gt; highest)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Oct 2012 12:01:46 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-10-07T12:01:46Z</dc:date>
    <item>
      <title>Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388927#M1164082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, In the attached qvw I want the expression in the "Highest score by country" chart to be fixed irrespective of the selection. I know i need to do by set analysis and need to {1}, but not sure how to use that in this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(max({1}highest, country) doesn't seem to do the trick. Kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 10:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388927#M1164082</guid>
      <dc:creator />
      <dc:date>2012-10-07T10:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388928#M1164083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to use the aggr function for this. Instead you should use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(total &amp;lt;country&amp;gt; highest)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 11:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388928#M1164083</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-07T11:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388929#M1164084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric for the response, but the behaviour is still the same even after the change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 11:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388929#M1164084</guid>
      <dc:creator />
      <dc:date>2012-10-07T11:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388930#M1164085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric for the response, but the behaviour is still the same even after the change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 11:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388930#M1164085</guid>
      <dc:creator />
      <dc:date>2012-10-07T11:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388931#M1164086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want it not to change also when you have a selection, then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max({1} total &amp;lt;country&amp;gt; highest)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 12:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388931#M1164086</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-07T12:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388932#M1164087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after that change, it has started giving completely wrong results.&lt;/P&gt;&lt;P&gt;e.g&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 321 is displayed as the highest score for both the players in India.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 12:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388932#M1164087</guid>
      <dc:creator />
      <dc:date>2012-10-07T12:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388933#M1164088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But 321 &lt;SPAN style="text-decoration: underline;"&gt;is&lt;/SPAN&gt; the highest score by country irrespective of the selection - same number for both Indian players. If this isn't what you want, then I do not understand what you number you want to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 12:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388933#M1164088</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-07T12:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388934#M1164089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. What I want is actually the output of aggr(max(highest), country ), This gives me 6 rows and I have 6 distinct countries with the highest score of each country and the player who holds that highest score.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The moment I change to max(total&amp;lt;country&amp;gt;highest), this returns me 9 rows, I have 9 players but I don't want this chart to return 9 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want is the output of 1 not to change regardless of the selection. Hope I have made myself clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 12:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388934#M1164089</guid>
      <dc:creator />
      <dc:date>2012-10-07T12:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388935#M1164090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, you want one line per country, right? Six lines. Then you should use country as dimension - and no other dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First expression is "max({1} highest)" which will return the highest score per country. The {1} will evaluate the expression without selections, which I think is what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second expression is "FirstSortedValue({1} [Player Name],-highest)" which will return the first player name once you sort it according to -highest. The minus sign is to get the highest numbers first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 12:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388935#M1164090</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-07T12:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388936#M1164091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric. This works like a dream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just have one last problem to sort out. I have a Visual Cue setting for the first expression 'Highest'. My requirement is to highlight the top scorer of the world in a different colour. In my data it is Ricky Ponting from Australia. My Visual Cue Setting is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upper &amp;gt;=&amp;nbsp; max(highest)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This works fine if there is no selection or selection is 'Australia'. The moment I select any other country the result goes ragged. Kindly help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 12:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388936#M1164091</guid>
      <dc:creator />
      <dc:date>2012-10-07T12:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388937#M1164092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Skip the visual cues. It's an old fashioned way to do this. Instead you can use expression attributes. The test will then be if max(total &amp;lt;country&amp;gt; ...) equals max(total ...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For color, use e.g.&lt;/P&gt;&lt;P&gt;if(max({1}total &amp;lt;country&amp;gt; highest)=max({1}total highest),red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For bold and underline (text format), use e.g.&lt;/P&gt;&lt;P&gt;if(max({1}total &amp;lt;country&amp;gt; highest)=max({1}total highest),'&amp;lt;B&amp;gt;&amp;lt;U&amp;gt;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="23034" class="jive-image-thumbnail jive-image" onclick="" alt="expre attr.png" src="/legacyfs/online/23034_expre attr.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 12:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388937#M1164092</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-07T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388938#M1164093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is an eye-openeer for me. Very new to qlikview just 2 weeks old, but i learnt a lot of things today, your courtesy. Thanks a lot. Want to learn a lot more. Following you on twitter now. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 13:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388938#M1164093</guid>
      <dc:creator />
      <dc:date>2012-10-07T13:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388939#M1164094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the &lt;A _jive_internal="true" href="https://community.qlik.com/people/hic?view=blogposts"&gt;blog posts&lt;/A&gt; also. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 14:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/388939#M1164094</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-07T14:50:52Z</dc:date>
    </item>
  </channel>
</rss>

