<?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 bar colour based on another dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364329#M845623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it may not be the first value always..if we have same score and the class is high and low then it should consider high,&lt;/P&gt;&lt;P&gt;if its low and medium then it should consider medium.if its low and high then it should high.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Apr 2017 11:24:06 GMT</pubDate>
    <dc:creator>alvaprajna</dc:creator>
    <dc:date>2017-04-09T11:24:06Z</dc:date>
    <item>
      <title>Change bar colour based on another dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364327#M845621</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;I have following data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country,entity,class,score&lt;/P&gt;&lt;P&gt;Austria,1523,HIGH,5&lt;/P&gt;&lt;P&gt;Austria,1524,LOW,3&lt;/P&gt;&lt;P&gt;Bang,123,High,2&lt;/P&gt;&lt;P&gt;Bang,1234,Low,2&lt;/P&gt;&lt;P&gt;Denmark,1236,Medium,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart with a drill down (country--&amp;gt; entity) as dimension and expression=max(Score)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to plot this in such a way that y-axis height is max score and bar color is based on class.&lt;/P&gt;&lt;P&gt;if(class=HIGH,red(),class=LOW,yellow()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the score is same then it must consider highest class,so in above case it can be high for country=Bang.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adding background expression as if(class=HIGH,red(),class=LOW,yellow()).The value for country is not shown as 5 since it has two values &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&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/Change-bar-colour-based-on-another-dimension/m-p/1364327#M845621</guid>
      <dc:creator>alvaprajna</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change bar colour based on another dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364328#M845622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(FirstSortedValue(class, -Score) = 'HIGH', Red(),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FirstSortedValue(class, -Score)&lt;/SPAN&gt; = 'LOW', Yellow()))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 14:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364328#M845622</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-07T14:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change bar colour based on another dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364329#M845623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it may not be the first value always..if we have same score and the class is high and low then it should consider high,&lt;/P&gt;&lt;P&gt;if its low and medium then it should consider medium.if its low and high then it should high.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 11:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364329#M845623</guid>
      <dc:creator>alvaprajna</dc:creator>
      <dc:date>2017-04-09T11:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change bar colour based on another dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364330#M845624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay i used a table adding risk value its working now.&lt;/P&gt;&lt;P&gt;one more isssue, Actually in dimension..i added&lt;/P&gt;&lt;P&gt;=if(TotalScore=aggr(max(TotalScore),[country]) ,[country],[entity]) &lt;/P&gt;&lt;P&gt;so that it shows me all country with highest score in bar chart. and accordigly em getting colour based on class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But noe i am facing a new issue,If the ountry has same score its giving the highest score..but colour is not set based on the class.May be due to common score its not able to decide the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Country,entity,class,score&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Poland,159,HIGH,3&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Poland,158,LOW,3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its basically a drill down for ex: country--&amp;gt; entity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 11:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364330#M845624</guid>
      <dc:creator>alvaprajna</dc:creator>
      <dc:date>2017-04-09T11:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change bar colour based on another dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364331#M845625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case the score is same its failing. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 12:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364331#M845625</guid>
      <dc:creator>alvaprajna</dc:creator>
      <dc:date>2017-04-09T12:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change bar colour based on another dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364332#M845626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to take a deeper look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 12:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-bar-colour-based-on-another-dimension/m-p/1364332#M845626</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-09T12:51:46Z</dc:date>
    </item>
  </channel>
</rss>

