<?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: BG color expression with set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802557#M535975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that quote is a little misleading John, visual cue will evaluate on the expression values broken down by the dimension(s) present within your chart, so if your expression was just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'nCOS'} &amp;gt;} Value) / sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'InvValue'} &amp;gt;} Value))&lt;/P&gt;&lt;P&gt;you could use them with no problem, rather than a colour expression (which should give better performance I believe due to less expressions) and it would highlight accordingly for each dimension value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for a different evaluation based on some other expression though, then yes of course would need to use the colour expression for that (or as you say within a different chart type) I totally agree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Dec 2014 09:02:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-31T09:02:29Z</dc:date>
    <item>
      <title>BG color expression with set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802552#M535970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should I expect set analysis to work inside a background color expression for each row of a chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per an answer from John W (&lt;A _jive_internal="true" href="https://community.qlik.com/message/175445#175445" title="http://community.qlik.com/message/175445#175445"&gt;http://community.qlik.com/message/175445#175445&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A set is calculated for an entire chart, not for a row of the chart.&amp;nbsp; The same is true of dollar sign expansion.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following BG color expression.&amp;nbsp; I artificially set the limit to 0.&amp;nbsp; Since none of my values are less than 0, I expected green background, but I'm getting all red background.&amp;nbsp; See the below image:&lt;/P&gt;&lt;P&gt;=IF( &lt;/P&gt;&lt;P&gt; (sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'nCOS'} &amp;gt;} Value) / sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'InvValue'} &amp;gt;} Value)) &amp;gt; 0, $(vGoodColor), &lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vPoorColor)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of the values in the below table (straight table) are generated by a set analysis expression for different years and product groups.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74417_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;11.2, SR4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 15:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802552#M535970</guid>
      <dc:creator />
      <dc:date>2014-12-30T15:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: BG color expression with set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802553#M535971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a reason by the standard visual cues setting in the chart would not work for you? You can still use your colour variables too but it will be evaluated across each row&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="74413" alt="visual cues.png" class="image-1 jive-image" src="/legacyfs/online/74413_visual cues.png" style="width: 620px; height: 549px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 17:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802553#M535971</guid>
      <dc:creator />
      <dc:date>2014-12-30T17:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: BG color expression with set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802554#M535972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe,&lt;/P&gt;&lt;P&gt;per an older response (2010): ( Search for "Visual cues in table using set analysis")&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;"Visual cue expressions are evaluated on a global level, not on a row by row basis, to do that you should use the color subexpressions."&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: 12.7272720336914px;"&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: 12.7272720336914px;"&gt;And I tried using Visual Cues - I was not able to get a per-row, per column to work.&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: 12.7272720336914px;"&gt;If I use just numbers in the visual cue's entry boxes, I get the expected color changes, but when I use attributes, it does not work.&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: 12.7272720336914px;"&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: 12.7272720336914px;"&gt;Edit: Also, I need to apply the same sort of background color to bar charts and Visual Cues is not available for bar charts.&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: 12.7272720336914px;"&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: 12.7272720336914px;"&gt;John&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 17:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802554#M535972</guid>
      <dc:creator />
      <dc:date>2014-12-30T17:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: BG color expression with set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802555#M535973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Sum(Value) will be executed row by row, so it should work. What do you get if you paste just the &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&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: 12.7272720336914px;"&gt;(sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'nCOS'} &amp;gt;} Value) / sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'InvValue'} &amp;gt;} Value)) &amp;gt; 0&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: 12.7272720336914px;"&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: 12.7272720336914px;"&gt;in an expression column?&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: 12.7272720336914px;"&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: 12.7272720336914px;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 20:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802555#M535973</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-30T20:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: BG color expression with set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802556#M535974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp; That debugging hint helped a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the below, I get the ever popular '-', which indicates an aggregation issue.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'nCOS'} &amp;gt;} Value) / &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'InvValue'} &amp;gt;} Value)) &amp;gt; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;And that lead me to add &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;in the FYear parameter, which then gives me the colors I expect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=IF(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; (sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'nCOS'},&amp;nbsp;&amp;nbsp;&amp;nbsp; FYear ={"$(=(max(FYear)-1))"} &amp;gt;} Value) /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'InvValue'}, FYear ={"$(=(max(FYear)-1))"} &amp;gt;} Value)) &amp;gt;= GoalTurns, $(vGoodColor),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; $(vPoorColor)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to work that into the rest of my BG equations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JLR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 21:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802556#M535974</guid>
      <dc:creator />
      <dc:date>2014-12-30T21:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: BG color expression with set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802557#M535975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that quote is a little misleading John, visual cue will evaluate on the expression values broken down by the dimension(s) present within your chart, so if your expression was just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'nCOS'} &amp;gt;} Value) / sum({&amp;lt; PeriodType = {'Y'}, ValueType = {'InvValue'} &amp;gt;} Value))&lt;/P&gt;&lt;P&gt;you could use them with no problem, rather than a colour expression (which should give better performance I believe due to less expressions) and it would highlight accordingly for each dimension value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for a different evaluation based on some other expression though, then yes of course would need to use the colour expression for that (or as you say within a different chart type) I totally agree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 09:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BG-color-expression-with-set-analysis/m-p/802557#M535975</guid>
      <dc:creator />
      <dc:date>2014-12-31T09:02:29Z</dc:date>
    </item>
  </channel>
</rss>

