<?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: Conditional Formatting According to Partial Sum/Avg in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835582#M293940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have changed your Background Color Definition to this and it works (I tried it with Revenue)&lt;/P&gt;&lt;P&gt;for the other expressions Change it according to this Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Revenue USD]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Revenue USD]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rep_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;lightgreen&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;lightred&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 07:43:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-09T07:43:57Z</dc:date>
    <item>
      <title>Conditional Formatting According to Partial Sum/Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835580#M293938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to format a table according to its totals (in my case it is an average total), i. e., I want to show a different color for when the value is higher or lower than the average. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am basically struggling with the average calculation. I can't always return the correct average of my expression, when I use simple functions as sum, it appears to be correct, however when I use other kinds of logics the average returned isn't the same as the table shows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if there is a function to return the exact partial or if there is another solution to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached an example to elucidate the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 22:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835580#M293938</guid>
      <dc:creator />
      <dc:date>2015-07-08T22:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting According to Partial Sum/Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835581#M293939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefano,&lt;/P&gt;&lt;P&gt;why in Background Color&amp;nbsp; You divide by NoOfRows() ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 07:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835581#M293939</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-07-09T07:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting According to Partial Sum/Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835582#M293940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have changed your Background Color Definition to this and it works (I tried it with Revenue)&lt;/P&gt;&lt;P&gt;for the other expressions Change it according to this Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Revenue USD]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Revenue USD]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rep_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;lightgreen&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;lightred&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 07:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835582#M293940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-09T07:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting According to Partial Sum/Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835583#M293941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since my table is in horizontal mode, my dimensions are still considered rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to reacreate the average total qlikview does and I believe it uses all the data, even if a representative (rep_name field in this case) doesn't have sales.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 16:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835583#M293941</guid>
      <dc:creator />
      <dc:date>2015-07-09T16:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting According to Partial Sum/Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835584#M293942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rudolf, thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both ways work well for simple calculations, the major problem is when the expression returns null values (e.g. a representative doesn't have sales goals). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview disregard these null values from the average total, whilst both our solutions put them into account and I couldn't find a way to reacreate this logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835584#M293942</guid>
      <dc:creator />
      <dc:date>2015-07-09T17:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting According to Partial Sum/Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835585#M293943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use rangesum which includes NULL values&lt;/P&gt;&lt;P&gt;I didnot check this with your application, but give it a try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 06:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-According-to-Partial-Sum-Avg/m-p/835585#M293943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-10T06:59:16Z</dc:date>
    </item>
  </channel>
</rss>

