<?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: Bar graph coloring not applying appropriatly based on expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879285#M470237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2015 16:12:51 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2015-05-29T16:12:51Z</dc:date>
    <item>
      <title>Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879281#M470233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a stacked bar chart that I want to display, by quarter, sales for the past 2 years.&lt;/P&gt;&lt;P&gt;The issue I have is, coloring applies correctly to only the Year &amp;amp; Quarter I have currently filtered on.&lt;/P&gt;&lt;P&gt;How do I edit my coloring expression to fix that? Is it a set analysis issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variables set,&lt;/P&gt;&lt;P&gt;cy = max(year)&lt;/P&gt;&lt;P&gt;pv = max(year)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;=right(year,2)&amp;amp;'-Q'&amp;amp;qtr&lt;/P&gt;&lt;P&gt;=1 ---- &amp;gt;I have to add this obligatory dimension to make it a stacked bar, rather than a side by side bar&lt;/P&gt;&lt;P&gt;=category&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;sum ({$ &amp;lt;year+={$(cy),$(pv)}, qtr+={*}&amp;gt;}&amp;nbsp; sales) / sum ({$ &amp;lt;year+={$(cy),$(pv)}, qtr+={*}&amp;gt;}&amp;nbsp; TOTAL &amp;lt;year,qtr&amp;gt;&amp;nbsp; dkey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bar chart Color Expression:&lt;/P&gt;&lt;P&gt;pick( match(category,'1','2','3','4'),&lt;/P&gt;&lt;P&gt;RGB(84,130,53),RGB(101,156,64),RGB(121,187,76),RGB(145,224,92))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879281#M470233</guid>
      <dc:creator />
      <dc:date>2015-05-29T16:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879282#M470234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try changing your expression to 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;=Sum({&amp;lt;year={$(cy),$(pv)}, qtr =&amp;gt;} sales) / Sum({&amp;lt;year={$(cy),$(pv)}, qtr =&amp;gt;}&amp;nbsp; TOTAL &amp;lt;year,qtr&amp;gt;&amp;nbsp; dkey)&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;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Not sure if it will make any difference, but lets start with making that change and see if it works or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879282#M470234</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-29T16:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879283#M470235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Returns same data, but does not resolve coloring issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no year filter, all 8 bar stacks are colored appropriate&lt;/P&gt;&lt;P&gt;If 2014 filtered on, 13 &amp;amp; 14 display....but only 2014's bars are colored appropriately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879283#M470235</guid>
      <dc:creator />
      <dc:date>2015-05-29T16:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879284#M470236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a shot for color expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Pick(Match(&lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt; Category),'1','2','3','4'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;RGB(84,130,53),RGB(101,156,64),RGB(121,187,76),RGB(145,224,92))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879284#M470236</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-29T16:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879285#M470237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879285#M470237</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-05-29T16:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879286#M470238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no year qtr filter I show 8 bars colored correctly&lt;/P&gt;&lt;P&gt;year filtered on shows no data&lt;/P&gt;&lt;P&gt;qtr filtered on shows data appropriatly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879286#M470238</guid>
      <dc:creator />
      <dc:date>2015-05-29T16:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879287#M470239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I deal with sensitive data, I get real iffy about posting anything online. =\&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879287#M470239</guid>
      <dc:creator />
      <dc:date>2015-05-29T16:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879288#M470240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this both your current expression and the new expression I gave you in my first post? i.e with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum ({$ &amp;lt;year+={$(cy),$(pv)}, qtr+={*}&amp;gt;}&amp;nbsp; sales) / sum ({$ &amp;lt;year+={$(cy),$(pv)}, qtr+={*}&amp;gt;}&amp;nbsp; TOTAL &amp;lt;year,qtr&amp;gt;&amp;nbsp; dkey)&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;BR /&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;and&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;BR /&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;2) &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;year={$(cy),$(pv)}, qtr =&amp;gt;} sales) / Sum({&amp;lt;year={$(cy),$(pv)}, qtr =&amp;gt;}&amp;nbsp; TOTAL &amp;lt;year,qtr&amp;gt;&amp;nbsp; dkey)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879288#M470240</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-29T16:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879289#M470241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried both of those.&amp;nbsp; Data displays correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colors correctly for either data filtered on, or when no filter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879289#M470241</guid>
      <dc:creator />
      <dc:date>2015-05-29T16:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879290#M470242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt; Colors correctly for either data filtered on, or when no filter&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Not sure I understand what you are trying to say here? Can you please elaborate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879290#M470242</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-29T16:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879291#M470243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using both of your codes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the bar graphs display appropriately no matter what year/qtr is filtered on.&lt;/P&gt;&lt;P&gt;the bar graphs color as I want, when no filter is applied&lt;/P&gt;&lt;P&gt;When a year or qtr filter is applied, only those bars on the graph color correctly, all other bars revert to default color scheme of qlik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879291#M470243</guid>
      <dc:creator />
      <dc:date>2015-05-29T16:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879292#M470244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So basically adding &lt;STRONG&gt;Only({1}&lt;/STRONG&gt; to your color expression did nothing. Everything still stays the same. I am not sure what could be going wrong here. I know you don't want to share your application, but you might want to share a sample of hide sensitive information and then share your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879292#M470244</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-29T16:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph coloring not applying appropriatly based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879293#M470245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We all deal with sensitive data &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; See: &lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative is to prepare a small example with dummy data that recreates your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-coloring-not-applying-appropriatly-based-on-expression/m-p/879293#M470245</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-05-29T16:54:13Z</dc:date>
    </item>
  </channel>
</rss>

