<?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: Change Color in a bar chart with dinamic expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-Color-in-a-bar-chart-with-dinamic-expression/m-p/988178#M526293</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;BR /&gt;Does you want to show colors for the two different ranges&lt;/P&gt;&lt;P&gt;For eg:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In (0-100)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for 0-40 yellow()&lt;/P&gt;&lt;P&gt;for 40-60 Green()&lt;/P&gt;&lt;P&gt;for 60-100 Red()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;In (100-200)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;for 110-140 yellow()&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;for 140-160 Green()&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;for 160-200 Red()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this your requirement or simple color ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this for simple color -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Dimension:- &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;In backGround COlor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(Field='A',Red(),Green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;For Expression:- &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; text-decoration: underline;"&gt;In backGround COlor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If(Value&amp;lt;=100,Red(),Green())&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;Hope this Helps else post a sample App if Possible,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;HirisH&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Nov 2015 10:21:34 GMT</pubDate>
    <dc:creator>HirisH_V7</dc:creator>
    <dc:date>2015-11-29T10:21:34Z</dc:date>
    <item>
      <title>Change Color in a bar chart with dinamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Color-in-a-bar-chart-with-dinamic-expression/m-p/988175#M526290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bar chart that change expression dinamically. &lt;/P&gt;&lt;P&gt;This is the espression that I have in a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(if(vView='MWh' and vTime='Month', Only (MonthProd), if(vView='MWh' and vTime='Year',Only(YearProd),&lt;/P&gt;&lt;P&gt;if(vView='Revenue' and vTime='Month', Only (MonthRevenue), if(vView='Revenue' and vTime='Year',Only(YearRevenue),&lt;/P&gt;&lt;P&gt;if(vView='Opex' and vTime='Month', Only (MonthOpex), if(vView='Opex' and vTime='Year',Only(YearOpex))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Dimension is always the same (Legal entity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have a different color that depends from the size of my dimension. &lt;/P&gt;&lt;P&gt;Id Value od dimension is &amp;lt;0 so the color of the bar that are &amp;lt;0 should be red otherwise green.&lt;/P&gt;&lt;P&gt;The problem is that I don't know witch Expression will be call becouse it depends from the variable. &lt;/P&gt;&lt;P&gt;Thanks for help &lt;/P&gt;&lt;P&gt;Pasquale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 07:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Color-in-a-bar-chart-with-dinamic-expression/m-p/988175#M526290</guid>
      <dc:creator>pascos88</dc:creator>
      <dc:date>2015-11-26T07:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change Color in a bar chart with dinamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Color-in-a-bar-chart-with-dinamic-expression/m-p/988176#M526291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can give you expression a Name and use it on the color expression:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107346_Capturar.PNG" style="height: 315px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/107347_Capturar2.PNG" style="height: 486px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 10:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Color-in-a-bar-chart-with-dinamic-expression/m-p/988176#M526291</guid>
      <dc:creator>arthur_dom</dc:creator>
      <dc:date>2015-11-26T10:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change Color in a bar chart with dinamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Color-in-a-bar-chart-with-dinamic-expression/m-p/988177#M526292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;My reply is not in response to your question, instead it is to offer what I hope is a useful tip. Your expression has a large nested if statement. These are horrible to read and awful to edit. If you instead use the QlikView functions Pick and Match you can replace this with an expression that you may find is easier to read and to edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match(vView &amp;amp; vTime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'MWhMonth',&lt;/P&gt;&lt;P&gt;'MWhYear',&lt;/P&gt;&lt;P&gt;'RevenueMonth',&lt;/P&gt;&lt;P&gt;'RevenueYear',&lt;/P&gt;&lt;P&gt;'OpexMonth',&lt;/P&gt;&lt;P&gt;'OpexYear'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only(MonthProd), //MWhMonth&lt;/P&gt;&lt;P&gt;Only(YearProd), //MWhYear&lt;/P&gt;&lt;P&gt;Only (MonthRevenue), //RevenueMonth&lt;/P&gt;&lt;P&gt;Only(YearRevenue), //RevenueYear&lt;/P&gt;&lt;P&gt;Only (MonthOpex), //OpexMonth&lt;/P&gt;&lt;P&gt;Only(YearOpex)) //OpexYear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Nov 2015 21:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Color-in-a-bar-chart-with-dinamic-expression/m-p/988177#M526292</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-11-28T21:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change Color in a bar chart with dinamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Color-in-a-bar-chart-with-dinamic-expression/m-p/988178#M526293</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;BR /&gt;Does you want to show colors for the two different ranges&lt;/P&gt;&lt;P&gt;For eg:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In (0-100)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for 0-40 yellow()&lt;/P&gt;&lt;P&gt;for 40-60 Green()&lt;/P&gt;&lt;P&gt;for 60-100 Red()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;In (100-200)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;for 110-140 yellow()&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;for 140-160 Green()&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;for 160-200 Red()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this your requirement or simple color ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this for simple color -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Dimension:- &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;In backGround COlor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(Field='A',Red(),Green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;For Expression:- &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; text-decoration: underline;"&gt;In backGround COlor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If(Value&amp;lt;=100,Red(),Green())&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;Hope this Helps else post a sample App if Possible,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;HirisH&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 10:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Color-in-a-bar-chart-with-dinamic-expression/m-p/988178#M526293</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-11-29T10:21:34Z</dc:date>
    </item>
  </channel>
</rss>

