<?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 Custom color measurements in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-color-measurements/m-p/1066862#M17320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here comes another color question. I have a chart that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmklipp.PNG" class="jive-image image-1" height="306" src="https://community.qlik.com/legacyfs/online/112443_Skärmklipp.PNG" style="height: 306.045px; width: 356px;" width="356" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 1 dimension and 2 measures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmklipp 01.PNG" class="jive-image image-2" height="211" src="/legacyfs/online/112444_Skärmklipp 01.PNG" style="height: 210.601px; width: 164px;" width="165" /&gt;&lt;/P&gt;&lt;P&gt;Gross margin is calculated like this: &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmklipp 02.PNG" class="jive-image image-3" src="/legacyfs/online/112463_Skärmklipp 02.PNG" style="height: auto;" /&gt; (for those who want to know).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to be able to custom color my measure (Gross Margin). Can anyone tell&amp;nbsp; me how to do it? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Betty Habtemariam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2016 13:03:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-25T13:03:25Z</dc:date>
    <item>
      <title>Custom color measurements</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-color-measurements/m-p/1066862#M17320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here comes another color question. I have a chart that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmklipp.PNG" class="jive-image image-1" height="306" src="https://community.qlik.com/legacyfs/online/112443_Skärmklipp.PNG" style="height: 306.045px; width: 356px;" width="356" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 1 dimension and 2 measures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmklipp 01.PNG" class="jive-image image-2" height="211" src="/legacyfs/online/112444_Skärmklipp 01.PNG" style="height: 210.601px; width: 164px;" width="165" /&gt;&lt;/P&gt;&lt;P&gt;Gross margin is calculated like this: &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmklipp 02.PNG" class="jive-image image-3" src="/legacyfs/online/112463_Skärmklipp 02.PNG" style="height: auto;" /&gt; (for those who want to know).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to be able to custom color my measure (Gross Margin). Can anyone tell&amp;nbsp; me how to do it? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Betty Habtemariam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 13:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-color-measurements/m-p/1066862#M17320</guid>
      <dc:creator />
      <dc:date>2016-01-25T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom color measurements</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-color-measurements/m-p/1066863#M17321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Betty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be somethink like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColorMix1(&lt;/P&gt;&lt;P&gt;((Sum(Sales)-sum(COGS))/Sum(Sales)-$(=min(aggr( ((Sum(Sales)-sum(COGS))/Sum(Sales), [Month])))))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;$(=(max(aggr(((Sum(Sales)-sum(COGS))/Sum(Sales),[Month]))-min(aggr(((Sum(Sales)-sum(COGS))/Sum(Sales), [Month])))))),white(),blue())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 15:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-color-measurements/m-p/1066863#M17321</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2016-01-25T15:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom color measurements</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-color-measurements/m-p/1066864#M17322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Betty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have the gross margin as one of he measures , you will be able to colour code the chart with just an if statement like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( (sum(sales)-sum(cogs))/sum(sales) &amp;gt; 0.5,green(), // greater than 50% green&lt;/P&gt;&lt;P&gt;if( (sum(sales)-sum(cogs))/sum(sales) &amp;lt; 0.2,red(), // less than 20% red&lt;/P&gt;&lt;P&gt; blue())) // else blue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sangram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 23:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-color-measurements/m-p/1066864#M17322</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2016-01-25T23:19:16Z</dc:date>
    </item>
  </channel>
</rss>

