<?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>article TOP &amp;amp; BOTTOM in the same object/chart in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/TOP-amp-BOTTOM-in-the-same-object-chart/ta-p/1572617</link>
    <description>&lt;P&gt;As a result of our work always in search of the smarter solutions, we explain how to create a top and bottom in the same chart ...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This example is for a TOP &amp;amp; BOTTOM 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;First create your top and bottom ranking using a calculated dimension...&lt;/P&gt;&lt;P&gt;Choose Bar Chart / Style Orientation - Horizontal&lt;/P&gt;&lt;P&gt;=IF(Aggr(Rank(Sum($(vYourMeasure)),4),$(vDimension))&amp;lt;=5,$(vYourDimension)&lt;BR /&gt;,&lt;BR /&gt;IF(Aggr(Rank(-Sum($(vYourMeasure)),4),$(vDimension))&amp;lt;=5,$(vYourDimension),4),$(vYourDimension))&amp;lt;=5,$(vYourDimension)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your expression...&lt;/P&gt;&lt;P&gt;Sum($(vYourMeasure))&lt;/P&gt;&lt;P&gt;Different colors to differentiate between positive and negative...&lt;/P&gt;&lt;P&gt;=if(Sum($(vYourMeasure))&amp;gt;=0,RGB(0,146,69),RGB(255,0,0))&lt;/P&gt;&lt;P&gt;Sort...&lt;/P&gt;&lt;P&gt;Sort your calculated dimension by the use of the expression... Your expression:&amp;nbsp;&amp;nbsp;Sum($(vYourMeasure)) ... Descending...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled5.png" style="width: 881px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10775i99BBAFBEBBAE338C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled5.png" alt="Untitled5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Feel free to modify further parameters like Presentation, Axe, etc...&lt;/P&gt;&lt;P&gt;At your disposal to answer questions and comments&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2022 17:07:35 GMT</pubDate>
    <dc:creator>agomes1971</dc:creator>
    <dc:date>2022-09-21T17:07:35Z</dc:date>
    <item>
      <title>TOP &amp; BOTTOM in the same object/chart</title>
      <link>https://community.qlik.com/t5/Member-Articles/TOP-amp-BOTTOM-in-the-same-object-chart/ta-p/1572617</link>
      <description>&lt;P&gt;As a result of our work always in search of the smarter solutions, we explain how to create a top and bottom in the same chart ...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This example is for a TOP &amp;amp; BOTTOM 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;First create your top and bottom ranking using a calculated dimension...&lt;/P&gt;&lt;P&gt;Choose Bar Chart / Style Orientation - Horizontal&lt;/P&gt;&lt;P&gt;=IF(Aggr(Rank(Sum($(vYourMeasure)),4),$(vDimension))&amp;lt;=5,$(vYourDimension)&lt;BR /&gt;,&lt;BR /&gt;IF(Aggr(Rank(-Sum($(vYourMeasure)),4),$(vDimension))&amp;lt;=5,$(vYourDimension),4),$(vYourDimension))&amp;lt;=5,$(vYourDimension)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your expression...&lt;/P&gt;&lt;P&gt;Sum($(vYourMeasure))&lt;/P&gt;&lt;P&gt;Different colors to differentiate between positive and negative...&lt;/P&gt;&lt;P&gt;=if(Sum($(vYourMeasure))&amp;gt;=0,RGB(0,146,69),RGB(255,0,0))&lt;/P&gt;&lt;P&gt;Sort...&lt;/P&gt;&lt;P&gt;Sort your calculated dimension by the use of the expression... Your expression:&amp;nbsp;&amp;nbsp;Sum($(vYourMeasure)) ... Descending...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled5.png" style="width: 881px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10775i99BBAFBEBBAE338C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled5.png" alt="Untitled5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Feel free to modify further parameters like Presentation, Axe, etc...&lt;/P&gt;&lt;P&gt;At your disposal to answer questions and comments&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 17:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/TOP-amp-BOTTOM-in-the-same-object-chart/ta-p/1572617</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2022-09-21T17:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: TOP &amp; BOTTOM in the same object/chart</title>
      <link>https://community.qlik.com/t5/Member-Articles/TOP-amp-BOTTOM-in-the-same-object-chart/tac-p/2067874#M1505</link>
      <description>&lt;P&gt;Hi André,&lt;/P&gt;
&lt;P&gt;Thanks a lot for this, this gave me a lot of inspiration!&lt;/P&gt;
&lt;P&gt;I do think I have found an easier expression when starting with yours:&lt;BR /&gt;If(Rank(&lt;SPAN&gt;vYourMeasure&lt;/SPAN&gt;) &amp;lt;=5 or Rank(&lt;SPAN&gt;vYourMeasure&lt;/SPAN&gt;&lt;STRONG&gt;*-1&lt;/STRONG&gt;)&amp;lt;=5, &lt;SPAN&gt;vYourMeasure&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;Always happy to receive feedback.&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;BR /&gt;Nick Meijers&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/TOP-amp-BOTTOM-in-the-same-object-chart/tac-p/2067874#M1505</guid>
      <dc:creator>Nick_Meijers</dc:creator>
      <dc:date>2023-05-04T20:30:43Z</dc:date>
    </item>
  </channel>
</rss>

