<?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: QlikView Chart Color Logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085127#M525340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your thorough answer!&amp;nbsp; That portion of the script in lines 2-3 is exactly what I needed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other thing is that I would like to avoid inline loading the colors... I am hoping to store the solid colors in an excel spreadsheet so they can be maintained easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My spreadsheet looks likes:&lt;/P&gt;&lt;P&gt;Column A: Business&lt;/P&gt;&lt;P&gt;Column B: Value for R in rgb&lt;/P&gt;&lt;P&gt;Column C: Value for G in rgb&lt;/P&gt;&lt;P&gt;Column &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; Value for B in rgb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I could use the same logic but instead of lines 4-8 I'd load from Excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 14:36:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-10T14:36:59Z</dc:date>
    <item>
      <title>QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085122#M525335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change colors in a line chart based on dynamic criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a chart with a field called Business. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In that field some of the values are: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Shoes, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Socks, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hats&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Other values in that field include: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Shoes (O), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Socks (O), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hats (O)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make the values without an '(O)' at the end be a solid color in the chart, and the one's with an '(O)' be a more opaque version of the original color.&amp;nbsp; It is important that this is done through automated logic.&amp;nbsp; It is also important to note that because there are other dimensions in this chart I cannot utilize a new field distinguishing between the values with and without '(O)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current idea:&lt;/P&gt;&lt;P&gt;Inline load the color values or load them from Excel as R, G, and B variables and somehow map them to each Business field value.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; This would result in an expression that says "if the Business is 'Shoes' then display it as rgb(Rshoes, Gshoes, Bshoes) for 'Shoes' and if the Business is 'Shoes (O)' then display it as argb(100, Rshoes, Gshoes, Bshoes)."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Written in the background color for the expression as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(Business = 'Shoes' , rgb(R,G,B), If(Business = Business &amp;amp; ' (O)', argb(100, R,G,B))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unsure as to what method to use to load in the color values and how to make sure that the portion of the expression containing '&lt;SPAN style="font-size: 13.3333px;"&gt;If(Business = Business &amp;amp; ' (O)''&amp;nbsp; functions properly.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you for any help!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Update:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I am pulling in the color values from Excel columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;My formula for background color in the expression now reads as "ARGB(ColorA,ColorR,ColorG,ColorB)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This expression colors everything correctly if I manually put in an argb value for all business values.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I am still trying to figure out a way to auto generate the colors for businesses with the 'O' on the end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Correct Answer Reply:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks everyone for the great replies!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Marco, I used your iteration logic as a launching point to dynamically assign the colors.&amp;nbsp; I ended up inline loading a list of colors as such:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-980345-115522/ColorPalette.PNG" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="ColorPalette.PNG" class="jive-image image-1" height="181" src="https://community.qlik.com/legacyfs/online/116619_ColorPalette.PNG" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="166" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and then looping through my data to dynamically assign each of those colors based on certain criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks again for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Reed Perry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085122#M525335</guid>
      <dc:creator />
      <dc:date>2016-02-09T18:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085123#M525336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(WildMatch(Business, '*(O)'), rgb(R,G,B), argb(100,R,G,B))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 20:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085123#M525336</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-02-09T20:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085124#M525337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply however this method did not work for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 20:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085124#M525337</guid>
      <dc:creator />
      <dc:date>2016-02-09T20:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085125#M525338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you post a small example of your problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 21:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085125#M525338</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-02-09T21:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085126#M525339</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_204912_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114087_QlikCommunity_Thread_204912_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_204912_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/114088_QlikCommunity_Thread_204912_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_204912_Pic6.JPG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/114095_QlikCommunity_Thread_204912_Pic6.JPG" style="height: 192px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_204912_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/114092_QlikCommunity_Thread_204912_Pic3.JPG" style="height: 245px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_204912_Pic5.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/114094_QlikCommunity_Thread_204912_Pic5.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_204912_Pic4.JPG" class="jive-image image-7" src="https://community.qlik.com/legacyfs/online/114096_QlikCommunity_Thread_204912_Pic4.JPG" style="height: 396px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14550572809403312 jive_text_macro" jivemacro_uid="_14550572809403312"&gt;
&lt;P&gt;tabBusCol:&lt;/P&gt;
&lt;P&gt;LOAD Business&amp;amp;If(IterNo()=2,' (O)') as Business,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ARGB(Pick(IterNo(),255,100),R,G,B) as BusCol&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business, R, G, B&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shoes, 50, 100, 150&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Socks, 100, 150, 50&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats, 150, 50, 100&lt;/P&gt;
&lt;P&gt;] While IterNo()&amp;lt;=2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabSales:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Money(Ceil(Rand()*1000)) as Sales&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shoes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Socks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shoes (O)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Socks (O)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats (O)&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 22:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085126#M525339</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-02-09T22:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085127#M525340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your thorough answer!&amp;nbsp; That portion of the script in lines 2-3 is exactly what I needed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other thing is that I would like to avoid inline loading the colors... I am hoping to store the solid colors in an excel spreadsheet so they can be maintained easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My spreadsheet looks likes:&lt;/P&gt;&lt;P&gt;Column A: Business&lt;/P&gt;&lt;P&gt;Column B: Value for R in rgb&lt;/P&gt;&lt;P&gt;Column C: Value for G in rgb&lt;/P&gt;&lt;P&gt;Column &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; Value for B in rgb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I could use the same logic but instead of lines 4-8 I'd load from Excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 14:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085127#M525340</guid>
      <dc:creator />
      <dc:date>2016-02-10T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085128#M525341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The next step for this color problem is that after I click into a Business such as "Hats" I get a list of products displayed.&lt;/P&gt;&lt;P&gt;My chart is designed with a conditional dimension so that when I drill into a Business the chart changes the dimension to Products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp; Once I choose "Hats" as a Business the chart displays values including: Top hats, Baseball hats, Hard hats, Top hats (O), Baseball hats (O), Hard hats (O).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For these values I do not want to have to set a specific color for every single one so I am hoping to make the solid color randomly generated and then the corresponding (O) value to have a lighter color.&amp;nbsp; So "Top Hats" may randomly appear as Red and if so then "Top Hats (O)" would appear as Light Red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing worth noting is that just because a field like "Top hats" exists does not mean "Top hats (O)" exists and vice versa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 15:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085128#M525341</guid>
      <dc:creator />
      <dc:date>2016-02-10T15:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085129#M525342</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;you can replace the inline load with a load from a file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14551484287304673 jive_text_macro" jivemacro_uid="_14551484287304673"&gt;
&lt;P&gt;tabBusCol:&lt;/P&gt;
&lt;P&gt;LOAD Business&amp;amp;If(IterNo()=2,' (O)') as Business,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ARGB(Pick(IterNo(),255,100),R,G,B) as BusCol&lt;/P&gt;
&lt;P&gt;FROM QlikCommunity_Thread_204912.csv (txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabSales:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Money(Ceil(Rand()*1000)) as Sales&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shoes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Socks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shoes (O)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Socks (O)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats (O)&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 23:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085129#M525342</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-02-10T23:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085130#M525343</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;maybe like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_204912_Pic7.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114258_QlikCommunity_Thread_204912_Pic7.JPG" style="height: 381px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_204912_Pic8.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/114259_QlikCommunity_Thread_204912_Pic8.JPG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_204912_Pic9.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/114260_QlikCommunity_Thread_204912_Pic9.JPG" style="height: 318px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_145515193416215 jive_text_macro" jivemacro_uid="_145515193416215"&gt;
&lt;P&gt;tabBusCol:&lt;/P&gt;
&lt;P&gt;LOAD Business&amp;amp;If(IterNo()=2,' (O)') as Business,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ARGB(Pick(IterNo(),255,100),R,G,B) as BusCol&lt;/P&gt;
&lt;P&gt;FROM QlikCommunity_Thread_204912.csv (txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabSales:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Money(Ceil(Rand()*1000)) as Sales&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business, Product&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shoes, Boots&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shoes, Sneakers&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Socks, low-cut&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Socks, ankle-dress&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats, Top hats&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats, Baseball hats&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats, Hard hats&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shoes (O), Boots (O)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shoes (O), Sneakers (O)&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Socks (O), low-cut (O)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Socks (O), ankle-dress (O)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats (O), Top hats (O)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats (O), Baseball hats (O)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hats (O), Hard hats (O)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabProdCol:&lt;/P&gt;
&lt;P&gt;LOAD Product&amp;amp;If(IterNo()=2,' (O)') as Product,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ARGB(Pick(IterNo(),255,100),ProdCol&amp;gt;&amp;gt;16 bitand 255,ProdCol&amp;gt;&amp;gt;8 bitand 255,ProdCol bitand 255) as ProdCol&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=2;&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Color(AutoNumber(Product)) as ProdCol&lt;/P&gt;
&lt;P&gt;Resident tabSales&lt;/P&gt;
&lt;P&gt;Where not Product like '* (O)';&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 00:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085130#M525343</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-02-11T00:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085131#M525344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to avoid pre-loading the values in the script, you can compute the color at runtime using a background expression of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if(Business LIKE '*(O)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,color(FieldIndex('$(=GetCurrentField(BizProduct))'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ,left($(=GetCurrentField(BizProduct)),len($(=GetCurrentField(BizProduct)))-4)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;bitand argb(100,255,255,255)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,color(FieldIndex('$(=GetCurrentField(BizProduct))',$(=GetCurrentField(BizProduct))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note if you have more than 18 values for a field, you'll have to use mod(fieldindex,18)+1 to get one of the 18 color palette values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info here&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2014/01/a-color-trick/" title="http://qlikviewcookbook.com/2014/01/a-color-trick/"&gt;A Color Trick | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 02:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085131#M525344</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-02-11T02:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085132#M525345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for the great replies!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco, I used your iteration logic as a launching point to dynamically assign the colors.&amp;nbsp; I ended up inline loading a list of colors as such:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ColorPalette.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115522_ColorPalette.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;and then looping through my data to dynamically assign each of those colors based on certain criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 20:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085132#M525345</guid>
      <dc:creator />
      <dc:date>2016-02-22T20:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Chart Color Logic</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085133#M525346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #2b2b2b; font-family: Lato, sans-serif; font-size: 16px;"&gt;I faced a similar situation. But I have 3 dimensions in my case: Company, Metric and Year. The sum(value) of the metric is my expression. I have chosen year as my primary and Company as secondary dimension and the metric is stacked. I get only 2 colors when i use an expression like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b2b2b; font-family: Lato, sans-serif; font-size: 16px;"&gt;if(Company=SubField($(vCompany),’,’,1),argb(75,255,255,255) bitand color(FieldIndex(‘Metric’,Metric)) , If(Company=SubField($(vCompany),’,’,2),argb(100,255,255,255) bitand color(FieldIndex(‘Metric’,Metric)),If(Company=SubField($(vCompany),’,’,3),argb(125,255,255,255) bitand color(FieldIndex(‘Metric’,Metric)),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b2b2b; font-family: Lato, sans-serif; font-size: 16px;"&gt;If(Company=SubField($(vCompany),’,’,4),argb(150,255,255,255) bitand color(FieldIndex(‘Metric’,Metric)),If(Company=SubField($(vCompany),’,’,5),argb(175,255,255,255) bitand color(FieldIndex(‘Metric’,Metric)),If(Company=SubField($(vCompany),’,’,6),argb(200,255,255,255) bitand color(FieldIndex(‘Metric’,Metric)),If(Company=SubField($(vCompany),’,’,7),argb(255,255,255,255) bitand color(FieldIndex(‘Metric’,Metric)),color(FieldIndex(‘Metric’,Metric)))))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b2b2b; font-family: Lato, sans-serif; font-size: 16px;"&gt;Please help me..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 11:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Chart-Color-Logic/m-p/1085133#M525346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-01T11:06:45Z</dc:date>
    </item>
  </channel>
</rss>

