<?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 Colormix in Top 5 Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724188#M722344</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to apply Colormix1 in a Top 5 Chart.&lt;/P&gt;&lt;P&gt;=Colormix1(count(value)/count(TOTAL value), red(), green())&lt;/P&gt;&lt;P&gt;The issue is&amp;nbsp;count(TOTAL value) counts all, I onl need to count the top 5.&lt;/P&gt;&lt;P&gt;How can I count only the top 5&amp;nbsp; values?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:23:26 GMT</pubDate>
    <dc:creator>elinamcastelletta</dc:creator>
    <dc:date>2024-11-16T00:23:26Z</dc:date>
    <item>
      <title>Colormix in Top 5 Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724188#M722344</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to apply Colormix1 in a Top 5 Chart.&lt;/P&gt;&lt;P&gt;=Colormix1(count(value)/count(TOTAL value), red(), green())&lt;/P&gt;&lt;P&gt;The issue is&amp;nbsp;count(TOTAL value) counts all, I onl need to count the top 5.&lt;/P&gt;&lt;P&gt;How can I count only the top 5&amp;nbsp; values?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724188#M722344</guid>
      <dc:creator>elinamcastelletta</dc:creator>
      <dc:date>2024-11-16T00:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Colormix in Top 5 Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724300#M722345</link>
      <description>&lt;P&gt;Not sure if I understood you problem correctly.&amp;nbsp; But, can you try using rank function&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Colormix1(count(value)/if(rank([TOTAL value])&amp;lt;=5, count(TOTAL value)), red(), green())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Basav&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 06:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724300#M722345</guid>
      <dc:creator>basav</dc:creator>
      <dc:date>2020-07-02T06:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Colormix in Top 5 Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724455#M722346</link>
      <description>&lt;P&gt;Hi Basav,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks fr your reply. I have the same result as before. Although you are using Rank, I think it is still considering all counted values instead of the 1st 5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 12:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724455#M722346</guid>
      <dc:creator>elinamcastelletta</dc:creator>
      <dc:date>2020-07-02T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Colormix in Top 5 Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724562#M722347</link>
      <description>&lt;P&gt;Okay, lets try this. Please keep the expression as it is(&lt;SPAN&gt;=Colormix1(count(value)/count(TOTAL value), red(), green())&lt;/SPAN&gt;). No changes there, but Can you try limiting the dimension itself.&amp;nbsp; Go to&amp;nbsp; Dimension Limits, please find below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="city.PNG" style="width: 648px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36840i73FB7D5891B10609/image-dimensions/648x550?v=v2" width="648" height="550" role="button" title="city.PNG" alt="city.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Basav&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 15:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724562#M722347</guid>
      <dc:creator>basav</dc:creator>
      <dc:date>2020-07-02T15:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Colormix in Top 5 Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724598#M722348</link>
      <description>&lt;P&gt;Yes, I've already limited the dimension. But still doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe adapting the script?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 17:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724598#M722348</guid>
      <dc:creator>elinamcastelletta</dc:creator>
      <dc:date>2020-07-02T17:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Colormix in Top 5 Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724601#M722349</link>
      <description>&lt;P&gt;What is/are your chart dimension/s?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 17:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724601#M722349</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-07-02T17:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Colormix in Top 5 Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724611#M722350</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;One dimension is Client, other is Score.&amp;nbsp;Value is IDs.&lt;/P&gt;&lt;P&gt;I could solve it by creating&amp;nbsp; a table in the script and then using this formula :&lt;/P&gt;&lt;P&gt;=Colormix1(rank(CountClient)/count(total CountClient),rgb(48,90,234),&lt;BR /&gt;white())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;Sort_top5_clients:&lt;BR /&gt;Load&lt;BR /&gt;count(distinct ID) as CountClient,&lt;BR /&gt;"Client",&lt;BR /&gt;Score*count(distinct ID) as Ponder&lt;BR /&gt;resident Clients&lt;BR /&gt;where Score&amp;gt;2 and len(Client)&amp;gt;0&lt;BR /&gt;group by Client, Score&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;Top5_clients_tmp1:&lt;BR /&gt;Load&lt;BR /&gt;Client ,&lt;BR /&gt;sum( CountClient) as CountClient,&lt;BR /&gt;sum(Ponder) as P&lt;BR /&gt;Resident Sort_top5_clients&lt;BR /&gt;group by Client;&lt;BR /&gt;&lt;BR /&gt;Top5_clients_tmp:&lt;BR /&gt;Load&lt;BR /&gt;Client ,&lt;BR /&gt;CountClient,&lt;BR /&gt;RowNo() as Row&lt;BR /&gt;Resident Top5_clients_tmp1&lt;BR /&gt;order by P desc;&lt;BR /&gt;&lt;BR /&gt;Top5_clients:&lt;BR /&gt;Load&lt;BR /&gt;Client ,&lt;BR /&gt;CountClient&lt;BR /&gt;Resident Top5_clients_tmp&lt;BR /&gt;where Row&amp;lt;6;&lt;BR /&gt;&lt;BR /&gt;drop table Top5_clients_tmp1;&lt;BR /&gt;drop table Top5_clients_tmp;&lt;BR /&gt;drop Table Sort_top5_clients;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure it can be optimized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Elina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 17:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724611#M722350</guid>
      <dc:creator>elinamcastelletta</dc:creator>
      <dc:date>2020-07-02T17:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Colormix in Top 5 Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724631#M722351</link>
      <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Colormix1(Count({&amp;lt;Client = {"=Rank(Count(value)) &amp;lt; 6"}&amp;gt;} value)/Count(TOTAL {&amp;lt;Client = {"=Rank(Count(value)) &amp;lt; 6"}&amp;gt;} value), Red(), Green())&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jul 2020 18:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colormix-in-Top-5-Chart/m-p/1724631#M722351</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-07-02T18:30:05Z</dc:date>
    </item>
  </channel>
</rss>

