<?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 How to highlight a single bar based on FirstSortedValue? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-highlight-a-single-bar-based-on-FirstSortedValue/m-p/128136#M8976</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;I have a bar chart that shows the sales by Country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is show the highest sales country in a different colour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example show the country with biggest sales in Green, and everything else in Blue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension is Country&lt;/P&gt;&lt;P&gt;Measure is Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought to get the biggest sales country name value by doing FirstSortedValue(Country, -Aggr(Sum(Sales), Country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use it in an IF statement for Colour By Expression. E.g. If(Country = &amp;lt;OutcomeOfFirstSortedValueExpresison&amp;gt;, Green, Blue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2018 13:20:15 GMT</pubDate>
    <dc:creator>mwallman</dc:creator>
    <dc:date>2018-10-02T13:20:15Z</dc:date>
    <item>
      <title>How to highlight a single bar based on FirstSortedValue?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-highlight-a-single-bar-based-on-FirstSortedValue/m-p/128136#M8976</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;I have a bar chart that shows the sales by Country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is show the highest sales country in a different colour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example show the country with biggest sales in Green, and everything else in Blue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension is Country&lt;/P&gt;&lt;P&gt;Measure is Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought to get the biggest sales country name value by doing FirstSortedValue(Country, -Aggr(Sum(Sales), Country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use it in an IF statement for Colour By Expression. E.g. If(Country = &amp;lt;OutcomeOfFirstSortedValueExpresison&amp;gt;, Green, Blue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 13:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-highlight-a-single-bar-based-on-FirstSortedValue/m-p/128136#M8976</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2018-10-02T13:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight a single bar based on FirstSortedValue?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-highlight-a-single-bar-based-on-FirstSortedValue/m-p/128137#M8977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum(Sales) = Max(TOTAL Aggr(Sum(Sales), Country)), Green(), Blue())&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 13:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-highlight-a-single-bar-based-on-FirstSortedValue/m-p/128137#M8977</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-02T13:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight a single bar based on FirstSortedValue?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-highlight-a-single-bar-based-on-FirstSortedValue/m-p/128138#M8978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or your way would be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Country = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FirstSortedValue(TOTAL Country, -Aggr(Sum(Sales), Country)&lt;/SPAN&gt;, Green, Blue)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 13:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-highlight-a-single-bar-based-on-FirstSortedValue/m-p/128138#M8978</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-02T13:30:31Z</dc:date>
    </item>
  </channel>
</rss>

