<?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: Color in bar chart depending on dimension value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648040#M542300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Made my day!!! It works!!!&lt;/P&gt;&lt;P&gt;But could you explain me briefly the "only" function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 08:20:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-10T08:20:41Z</dc:date>
    <item>
      <title>Color in bar chart depending on dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648035#M542295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart displaying the value of the order and the dimension is the delivery week.&lt;/P&gt;&lt;P&gt;So, i have on the chart the orders scheduled for week 20, 21, 22... (as you can see in the attached picture).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the problem!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to color differently the bar, depending on the delivery week.&lt;/P&gt;&lt;P&gt;I explain better. Suppose we are in week 24.&lt;/P&gt;&lt;P&gt;I would like to:&lt;/P&gt;&lt;P&gt;1) the bar of previous weeks (23, 22, 21 and behind) are in black color,&lt;/P&gt;&lt;P&gt;2) the bar of our current week is red,&lt;/P&gt;&lt;P&gt;3) the bar of future weeks (25, 26, 27...) are in green color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought to use the color function of the expression but I don't know how to get the x value, i.e. the delivery week.&lt;/P&gt;&lt;P&gt;Which function should I use?&lt;/P&gt;&lt;P&gt;Is there a more correct way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me!!!&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="order-chart.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60350_order-chart.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 06:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648035#M542295</guid>
      <dc:creator />
      <dc:date>2014-06-10T06:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Color in bar chart depending on dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648036#M542296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your sample app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try like:= If(Week(Today())&amp;gt;[Delivery Week], Green(), If(Week(Today())=[Delivery Week],Red(),Black()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648036#M542296</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-10T07:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Color in bar chart depending on dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648037#M542297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easier than I suppose!!! It works!!!&lt;/P&gt;&lt;P&gt;Thanks tresesco!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648037#M542297</guid>
      <dc:creator />
      <dc:date>2014-06-10T07:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Color in bar chart depending on dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648038#M542298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thank you too soon! Your answer is correct but I got another problem!&lt;/P&gt;&lt;P&gt;In the chart I have an expression with set analysis which ignore (override) the user selection.&lt;/P&gt;&lt;P&gt;But if statement &lt;SPAN style="text-decoration: underline;"&gt;consider&lt;/SPAN&gt; the selection, so the colors change even if they should not!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I ignore the selection with the if statement?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648038#M542298</guid>
      <dc:creator />
      <dc:date>2014-06-10T08:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Color in bar chart depending on dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648039#M542299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;P&gt;=Only( {your set} If(....))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648039#M542299</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-10T08:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Color in bar chart depending on dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648040#M542300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Made my day!!! It works!!!&lt;/P&gt;&lt;P&gt;But could you explain me briefly the "only" function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648040#M542300</guid>
      <dc:creator />
      <dc:date>2014-06-10T08:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Color in bar chart depending on dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648041#M542301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Only&lt;/STRONG&gt; is an aggregation function (note: set analysis can be used only in aggregation functions)&amp;nbsp; that returns a value if there is only one value in the scope otherwise returns a null. I took only() to take just the advantage of set analysis. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-bar-chart-depending-on-dimension-value/m-p/648041#M542301</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-10T08:25:28Z</dc:date>
    </item>
  </channel>
</rss>

