<?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 How to give dynamic color in Histogram chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141274#M753682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, can someone help me to figure out the expression in Background Color section? I want to get something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Color2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215399_Color2.PNG" style="height: 194px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;So I create a histogram to show the distribution of sales for each customer. In dimensions, I use calculated dimension, class(aggr(sum(sales),customerID), 1000). The measurement/expression is count(distinct customerID). Then I got a histogram like above, now I want to show in histogram that &lt;STRONG&gt;x-axis&lt;/STRONG&gt; value &amp;lt;5000 with red, otherwise green. Can someone help me with the expression in Background Color?&lt;/P&gt;&lt;P&gt;for example: IF (&lt;SPAN style="font-size: 13.3333px;"&gt;aggr(sum(sales),customerID)&amp;lt;5000, red(), green()) --this expression doesn't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>yzhang88</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to give dynamic color in Histogram chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141274#M753682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, can someone help me to figure out the expression in Background Color section? I want to get something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Color2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215399_Color2.PNG" style="height: 194px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;So I create a histogram to show the distribution of sales for each customer. In dimensions, I use calculated dimension, class(aggr(sum(sales),customerID), 1000). The measurement/expression is count(distinct customerID). Then I got a histogram like above, now I want to show in histogram that &lt;STRONG&gt;x-axis&lt;/STRONG&gt; value &amp;lt;5000 with red, otherwise green. Can someone help me with the expression in Background Color?&lt;/P&gt;&lt;P&gt;for example: IF (&lt;SPAN style="font-size: 13.3333px;"&gt;aggr(sum(sales),customerID)&amp;lt;5000, red(), green()) --this expression doesn't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141274#M753682</guid>
      <dc:creator>yzhang88</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to give dynamic color in Histogram chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141275#M753683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share a sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 19:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141275#M753683</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-08T19:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to give dynamic color in Histogram chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141276#M753684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I think I can't due to company policy. Any questions I can answer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 19:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141276#M753684</guid>
      <dc:creator>yzhang88</dc:creator>
      <dc:date>2018-10-08T19:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to give dynamic color in Histogram chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141277#M753685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scrambling option available in Document properties/Scrambling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 19:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141277#M753685</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2018-10-08T19:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to give dynamic color in Histogram chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141278#M753686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont think additional aggr would work as you have bucketed it already.&lt;/P&gt;&lt;P&gt;i am assuming you want to mark each bucket where sum(Sales) for each customer is less than 5000&lt;/P&gt;&lt;P&gt;one work around would be to calculate average sale prize for each bucket which should satisfy the condition you want. something like&lt;/P&gt;&lt;P&gt;if(sum(Sales)/count(DISTINCT Customer)&amp;lt;5000,red(),green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it works out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 19:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141278#M753686</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-08T19:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to give dynamic color in Histogram chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141279#M753687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This workaround looks working for my purpose. Thank you Dilip. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 19:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141279#M753687</guid>
      <dc:creator>yzhang88</dc:creator>
      <dc:date>2018-10-08T19:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to give dynamic color in Histogram chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141280#M753688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no problem. glad it worked out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 19:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-give-dynamic-color-in-Histogram-chart/m-p/141280#M753688</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-08T19:44:50Z</dc:date>
    </item>
  </channel>
</rss>

