<?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: Re: Background Color Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541628#M1133404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed you need to use the Total qualifier in the background expressions to ignore the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I attached a sample file in which i changed your data structure, having a simpler way to compare values in the expressions.&lt;/P&gt;&lt;P&gt;Just in case you see that such a change will be beneficial and/or feasible in your real application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2013 20:39:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-20T20:39:26Z</dc:date>
    <item>
      <title>Background Color Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541620#M1133396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a simple table that has the line counts in two of our environments. &lt;/P&gt;&lt;P&gt;There is a dimension called 'Database' and there are two options its either 'TST' or 'PRD'&lt;/P&gt;&lt;P&gt;I have the line counts for each table.&amp;nbsp; I want to be able to highlight the line if TST does not equal PRD.&amp;nbsp; I am using the following expression in the background color area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Database&lt;/SPAN&gt;={'PRD'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;BAR_CHARGES&lt;/SPAN&gt;))&amp;lt;&amp;gt;(&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Database&lt;/SPAN&gt;={'TST'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;BAR_CHARGES&lt;/SPAN&gt;)),&lt;SPAN style="color: #0000ff;"&gt;YELLOW&lt;/SPAN&gt;(),&lt;SPAN style="color: #0000ff;"&gt;WHITE&lt;/SPAN&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I use &amp;lt;&amp;gt; then it colors them yellow even if they match&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;((&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Database&lt;/SPAN&gt;={'PRD'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;BAR_CHARGES&lt;/SPAN&gt;))=-(&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Database&lt;/SPAN&gt;={'TST'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;BAR_CHARGES&lt;/SPAN&gt;)),&lt;SPAN style="color: #0000ff;"&gt;YELLOW&lt;/SPAN&gt;(),&lt;SPAN style="color: #0000ff;"&gt;WHITE&lt;/SPAN&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I use =- then it leaves it white even if it doesn't match&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What am I missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 20:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541620#M1133396</guid>
      <dc:creator />
      <dc:date>2013-11-18T20:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541621#M1133397</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;May be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If( &lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Database&lt;/SPAN&gt;={'PRD'}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;BAR_CHARGES&lt;/SPAN&gt;)&lt;/SPAN&gt; - &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Database&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={'TST'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;BAR_CHARGES&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt; = 0, White(), Yellow())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;Check either difference in decimal once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 21:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541621#M1133397</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-11-18T21:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541622#M1133398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is where set is not the best way.&amp;nbsp; Try this:&lt;/P&gt;&lt;P&gt;if(SUM(if(Database='PRD', BAR_CHARGES))&amp;lt;&amp;gt;SUM(if(Database='TST', BAR_CHARGES)),YELLOW(),WHITE())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 21:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541622#M1133398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-18T21:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541623#M1133399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately neither option worked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 19:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541623#M1133399</guid>
      <dc:creator />
      <dc:date>2013-11-19T19:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541624#M1133400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload an example?&amp;nbsp; I suspect something small is missing...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 14:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541624#M1133400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-20T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541625#M1133401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Database a dimension on your chart/table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 14:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541625#M1133401</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-11-20T14:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541626#M1133402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for taking a look!&amp;nbsp; I am sure you are right, it has to be something simple I am overlooking.&amp;nbsp; I didn't think it was going to be a complicated issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, database is a dimension!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 19:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541626#M1133402</guid>
      <dc:creator />
      <dc:date>2013-11-20T19:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541627#M1133403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SET MODIFIER does not overule the same dimensional value that is in the chart column.&amp;nbsp; I modified your example to show this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To workaround that premise i used the TOTAL arguement in the chart aggregation function to compare over and above the current dimensional value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF((SUM({&amp;lt;Database={'PRD'}&amp;gt;}BAR_CHARGES))&amp;lt;&amp;gt;(SUM({&amp;lt;Database={'TST'}&amp;gt;}BAR_CHARGES)),YELLOW(),WHITE())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF((SUM({&amp;lt;Database={'PRD'}&amp;gt;} total BAR_CHARGES))&amp;lt;&amp;gt;(SUM({&amp;lt;Database={'TST'}&amp;gt;} total BAR_CHARGES)),YELLOW(),WHITE())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works for this isolated use case. Let me know if yours is more complex then your demo example and i'll try to adapt accordingly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 20:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541627#M1133403</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2013-11-20T20:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Background Color Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541628#M1133404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed you need to use the Total qualifier in the background expressions to ignore the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I attached a sample file in which i changed your data structure, having a simpler way to compare values in the expressions.&lt;/P&gt;&lt;P&gt;Just in case you see that such a change will be beneficial and/or feasible in your real application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 20:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-Set-Analysis/m-p/541628#M1133404</guid>
      <dc:creator />
      <dc:date>2013-11-20T20:39:26Z</dc:date>
    </item>
  </channel>
</rss>

