<?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: Expression chart colors depending on the dimension for no selected values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-chart-colors-depending-on-the-dimension-for-no/m-p/44373#M7444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this happen after making selections, if it does, try to wrap your expression around with Only({1} ....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({1} &lt;SPAN style="color: #ff0000;"&gt;YourIfStatementForColor&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 18:17:42 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-02-02T18:17:42Z</dc:date>
    <item>
      <title>Expression chart colors depending on the dimension for no selected values</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-chart-colors-depending-on-the-dimension-for-no/m-p/44372#M7443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; text-align: left; color: #242729; text-transform: none; line-height: inherit; text-indent: 0px; letter-spacing: normal; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; vertical-align: baseline; white-space: normal; border-collapse: collapse; border-spacing: 0px; orphans: 2; widows: 2; font-stretch: inherit; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: inherit; font-variant-east-asian: inherit; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;TBODY&gt;&lt;TR style="border: 0px currentColor; border-image: none;"&gt;&lt;TD class="votecell" style="padding: 0px 15px 0px 0px; border: 0px currentColor; border-image: none;"&gt;&lt;/TD&gt;&lt;TD class="votecell" style="padding: 0px 15px 0px 0px; border: 0px currentColor; border-image: none;"&gt;&lt;DIV class="vote" style="text-align: center;"&gt;&lt;SPAN class="vote-count-post" style="margin: 8px 0px; color: #6a737c; font-family: inherit; font-size: 20px; font-style: inherit; font-weight: inherit;"&gt;0&lt;/SPAN&gt;&lt;A class="vote-down-off" title="This question does not show any research effort; it is unclear or not useful"&gt;down vote&lt;/A&gt;&lt;A class="star-off" href="https://stackoverflow.com/questions/48582107/expression-chart-colors-depending-on-the-dimension-for-no-selected-values" title="Click to mark as favorite question (click again to undo)"&gt;favorite&lt;/A&gt;&lt;DIV class="favoritecount" style="text-align: center;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD class="postcell" style="border: 0px currentColor; border-image: none;"&gt;&lt;/TD&gt;&lt;TD class="postcell" style="border: 0px currentColor; border-image: none;"&gt;&lt;DIV class="post-text" style="margin: 0px 0px 5px; font-family: inherit; font-size: 15px; font-style: inherit; font-weight: inherit;"&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;I was planning to do a Straight Table chart like this:&lt;/DIV&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;&lt;IMG alt="desired_result" class="jive-image" src="https://i.stack.imgur.com/txvJT.png" style="border: 0px currentColor; border-image: none;" /&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;The four dimensions should always appear and have exactly the same colors (the only variation is the expression values).&lt;/DIV&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;What I have now is the dimensions and the values as I want except for the colors. The initial data is organized in a table like:&lt;/DIV&gt;&lt;PRE style="margin: 0px 0px 1em; padding: 5px; border: 0px currentColor; border-image: none; width: auto; line-height: inherit; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; font-style: inherit; font-variant: inherit; font-weight: inherit; vertical-align: baseline; -ms-word-wrap: normal; max-height: 600px; font-stretch: inherit; background-color: #eff0f1;"&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; line-height: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; font-style: inherit; font-variant: inherit; font-weight: inherit; vertical-align: baseline; white-space: inherit; font-stretch: inherit; background-color: #eff0f1;"&gt;Project Status 1 Completed 2 On Track 3 On Track 4 Deviating &lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;So the #RA variation is the percentage of each status value from the total. However, it can happen that in some cases one status value is 0. And I get this:&lt;/DIV&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;&lt;IMG alt="actual_result" class="jive-image" src="https://i.stack.imgur.com/s15hf.png" style="border: 0px currentColor; border-image: none;" /&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;The condition for the colors is set in the color background expression, like this:&lt;/DIV&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;&lt;IMG alt="colors_setting" class="jive-image" src="https://i.stack.imgur.com/ZXhQv.png" style="border: 0px currentColor; border-image: none;" /&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;I also have to say that as some fields of the dimension have no values they disapear, so they are forced to appear using the Show All Values in the dimension tab.&lt;/DIV&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;Any one knows how to make the colors always fixed for its dimension even when the value is null?&lt;/DIV&gt;&lt;DIV style="margin: 0px 0px 1em;"&gt;Thanks for the attention&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 13:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-chart-colors-depending-on-the-dimension-for-no/m-p/44372#M7443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-02T13:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expression chart colors depending on the dimension for no selected values</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-chart-colors-depending-on-the-dimension-for-no/m-p/44373#M7444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this happen after making selections, if it does, try to wrap your expression around with Only({1} ....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({1} &lt;SPAN style="color: #ff0000;"&gt;YourIfStatementForColor&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-chart-colors-depending-on-the-dimension-for-no/m-p/44373#M7444</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-02T18:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression chart colors depending on the dimension for no selected values</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-chart-colors-depending-on-the-dimension-for-no/m-p/44374#M7445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny Talwar, it worked perfectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 09:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-chart-colors-depending-on-the-dimension-for-no/m-p/44374#M7445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-05T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression chart colors depending on the dimension for no selected values</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-chart-colors-depending-on-the-dimension-for-no/m-p/44375#M7446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close the thread by marking the correct response if you got&amp;nbsp; what you wanted.&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>Mon, 05 Feb 2018 16:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-chart-colors-depending-on-the-dimension-for-no/m-p/44375#M7446</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-05T16:34:12Z</dc:date>
    </item>
  </channel>
</rss>

