<?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: Colour cells based on first sorted value logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1652757#M447968</link>
    <description>&lt;P&gt;Can you attach a sample app please&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2019 15:56:51 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-11-29T15:56:51Z</dc:date>
    <item>
      <title>Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1652724#M447964</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;me again so attached is an app that&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; has been helping greatly with and i am at the next crossroad...&lt;/P&gt;&lt;P&gt;so within the app there is a column that finds the most used salesagent by customer, what i now would like to do is colour these based on the salesagent. so each sales agent is set a colour and for arguments sake it would be ARGB(255,&lt;SPAN&gt;0,48,135) for agent 1, then slightly transparent for sales agent 2 argb(200,0,48,135) and so on for 3,4,5 etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;as this column finds the most used sales agent using an aggr and first sorted value im unsure how to colour this based on the sales agent and any help would be greatly received. app is all inline so can be refreshed.&lt;/P&gt;&lt;P&gt;using pick match i can create the below table where this is set, but it will be dynamic and ideally needs changing dependant on the first sort value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-11-29 at 14.19.31.png" style="width: 330px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24672i67FD35CD6FB1EB88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-11-29 at 14.19.31.png" alt="Screenshot 2019-11-29 at 14.19.31.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="p1"&gt;=&lt;SPAN class="s1"&gt;pick&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;match&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;SalesAgent&lt;/SPAN&gt;,'SalesAgent1','SalesAgent2','SalesAgent3','SalesAgent4','SalesAgent5')&lt;BR /&gt;,&lt;SPAN class="s1"&gt;argb&lt;/SPAN&gt;(255,0,48,135),&lt;SPAN class="s1"&gt;argb&lt;/SPAN&gt;(200,0,48,135),&lt;SPAN class="s1"&gt;argb&lt;/SPAN&gt;(155,0,48,135),&lt;SPAN class="s1"&gt;argb&lt;/SPAN&gt;(100,0,48,135),&lt;SPAN class="s1"&gt;argb&lt;/SPAN&gt;(55,0,48,135))&lt;/P&gt;&lt;P class="p1"&gt;so i want these colours to replicate down this column: *** updated, just to say there is a mapped in ARGB colour field called SalesAgentColour ***&lt;/P&gt;&lt;P class="p1"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-11-29 at 14.21.09.png" style="width: 143px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24673iEFC45027D1911E1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-11-29 at 14.21.09.png" alt="Screenshot 2019-11-29 at 14.21.09.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;any help would be amazing&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1652724#M447964</guid>
      <dc:creator>LeeSmithBtn</dc:creator>
      <dc:date>2024-11-16T19:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1652757#M447968</link>
      <description>&lt;P&gt;Can you attach a sample app please&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 15:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1652757#M447968</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-29T15:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1652766#M447970</link>
      <description>&lt;P&gt;well thats my bad haha... attached is now the app we last completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 16:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1652766#M447970</guid>
      <dc:creator>LeeSmithBtn</dc:creator>
      <dc:date>2019-11-29T16:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1652914#M447973</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Aggr(Pick(Match(Sum([Total Sales]),
				 Max(TOTAL Aggr(Sum([Total Sales]), SalesAgent)),
				 Max(TOTAL Aggr(Sum([Total Sales]), SalesAgent), 2),
				 Max(TOTAL Aggr(Sum([Total Sales]), SalesAgent), 3),
				 Max(TOTAL Aggr(Sum([Total Sales]), SalesAgent), 4),
				 Max(TOTAL Aggr(Sum([Total Sales]), SalesAgent), 5)),
	ARGB(255,0,48,135),
	ARGB(200,0,48,135),
	ARGB(155,0,48,135),
	ARGB(100,0,48,135),
	ARGB(55,0,48,135))
, SalesAgent)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Dec 2019 01:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1652914#M447973</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-02T01:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1654625#M448087</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;thanks for the reply, its fine in the little table doing that, but ideally i want the SalesAgent colour to be static, so its always Dark blue for agent 1 etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the main table where the column has Most Used Agent is the coloumn im ideally looking to colour this way. so it finds the most used sales agent so for customer 12 this is sales agent 3, ideally i want that to be a shade of blue in that column everytime it sees sales agent 3 for the same blue, then a different blue in that column for agent 1, 2,3,4,5 etc and could go up to many more sales agents&lt;/P&gt;&lt;P&gt;i hope that makes sense&lt;/P&gt;&lt;P&gt;so in effect it would be like this (colours are random colours) but all agents have same colour in this table. and then throughout the app the same sales agents have the same colour as this table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-12-05 at 14.44.35.png" style="width: 409px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25004iE9091E6A39F13FA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-12-05 at 14.44.35.png" alt="Screenshot 2019-12-05 at 14.44.35.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in effect a colour pallet for every sales agent then when it finds the sales agent it assigns this colour to the cell&lt;/P&gt;&lt;P&gt;i hope that makes sense&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 14:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1654625#M448087</guid>
      <dc:creator>LeeSmithBtn</dc:creator>
      <dc:date>2019-12-05T14:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1654720#M448097</link>
      <description>&lt;P&gt;I am not sure I follow completely. I understand that you want the color to be dashboard wide... but not entirely sure what is wrong with how you select the color?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 17:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1654720#M448097</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-05T17:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1654980#M448150</link>
      <description>&lt;P&gt;Hi Sunny, so the way we find the main sales agent is the complex aggr function as per the app... i want to create a colour app wide for the sales agent (mwhich will be more than 5 and possibly up to 100,) so using a pick function to write out 100 agents may be quite consuming. so i want to in theory pick the colour based on the agent in a similar way we find the agent name,&lt;/P&gt;&lt;P&gt;im hoping that makes more sense.&lt;/P&gt;&lt;P&gt;if i supply the logic you have sent into the main table it wont colour the cells correctly in the table where the sales agent name is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in the table the agent colour is determined by a mapping load, and then dependant on the agent most used column it will colour that cell the colour assigned to that agent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 12:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1654980#M448150</guid>
      <dc:creator>LeeSmithBtn</dc:creator>
      <dc:date>2019-12-06T12:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1655129#M448182</link>
      <description>&lt;P&gt;Can you point me to the exact location where you are having trouble in the dashboard?&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Sunny&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 19:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1655129#M448182</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-06T19:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1655528#M448205</link>
      <description>&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;so the point in the app im looking at is the big main table in the middle of the app. the column is Most Used Agent and for customer 12 this is sales agent 5 equating to 21.91% of the time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the column is finding the correct sales agent. so what i would like to do with the background colour is then show the salesagentcolour field as the background colour for each cell.&lt;/P&gt;&lt;P&gt;as per image, the calc finds the most used sales agent and ideally i want these cells to be coloured based on sales agent... there if a 4 fields in the app called sales agent Col A, Sales Agent Col R, Sales Agent Col G and Sales Agent Col B. also&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-12-09 at 15.15.08.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25177i9BC0889C82BA217C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-12-09 at 15.15.08.png" alt="Screenshot 2019-12-09 at 15.15.08.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;updated app with colours and also text objects pointing out what im trying to do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; this is complicated and i appreciate everything, all colours and fields et are inline loads&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 15:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1655528#M448205</guid>
      <dc:creator>LeeSmithBtn</dc:creator>
      <dc:date>2019-12-09T15:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1655530#M448206</link>
      <description>&lt;P&gt;however i think by asking the question and publishing i may have answered it myself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; for once haha.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-12-09 at 15.33.34.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25181i7F131E7D3A373705/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-12-09 at 15.33.34.png" alt="Screenshot 2019-12-09 at 15.33.34.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 15:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1655530#M448206</guid>
      <dc:creator>LeeSmithBtn</dc:creator>
      <dc:date>2019-12-09T15:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1655572#M448212</link>
      <description>&lt;P&gt;Amazing... I didn't see your response and used this... not sure if this is right or not... but do have a look&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 16:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1655572#M448212</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-09T16:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Colour cells based on first sorted value logic</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1656277#M448318</link>
      <description>&lt;P&gt;Here is a Design Blog post on setting colors the way you mentioned, think you may already have things solved, but just in case.&amp;nbsp; Be sure if you have a solution to mark any posts from Sunny that helped you get there using the Accept as Solution button on them...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Colors-in-charts/ba-p/1475280" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Colors-in-charts/ba-p/1475280&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 20:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-cells-based-on-first-sorted-value-logic/m-p/1656277#M448318</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-10T20:43:59Z</dc:date>
    </item>
  </channel>
</rss>

