<?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: Background Color Expression issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression-issue/m-p/2029245#M84791</link>
    <description>&lt;P&gt;The solution is as follows:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;if(Sum({$&amp;lt;MS1Count=-{0}&amp;gt;} Total ORDERCOUNTER) / Sum(Total ORDERCOUNTER) &amp;gt;    
[MS1 Set],                                                                                      Green(),LightRed())&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 24 Jan 2023 10:45:24 GMT</pubDate>
    <dc:creator>mamaewapolya</dc:creator>
    <dc:date>2023-01-24T10:45:24Z</dc:date>
    <item>
      <title>Background Color Expression issue</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression-issue/m-p/1996203#M82487</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I am trying to implement the conditional colouring to the table, but it works for the red colour only.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to see as a result is that each value in a column, that is less than the average for this column, should be coloured in red and the others - in green.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;if(Avg(Aggr(Sum({$&amp;lt;MS1Count=-{0}&amp;gt;}ORDERCOUNTER) / Sum(ORDERCOUNTER), OrderBranch)) &amp;gt;    
	[MS1 Set],                                                                                           
		Green(),LightRed())&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;MS1 Set&lt;/STRONG&gt; is a master measure, which equals to&amp;nbsp;&lt;STRONG&gt;Sum({$&amp;lt;MS1Count=-{0}&amp;gt;}ORDERCOUNTER) / Sum(ORDERCOUNTER)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If I replace MS1 Set&amp;nbsp;with a value (e.g 0.2), the colouring rule works fine.&lt;/P&gt;
&lt;P&gt;Could you please help me find the issue?&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Polly&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 10:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression-issue/m-p/1996203#M82487</guid>
      <dc:creator>mamaewapolya</dc:creator>
      <dc:date>2023-01-24T10:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression issue</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression-issue/m-p/1996317#M82492</link>
      <description>&lt;P&gt;You may verify if measures are good by creating a test straight table and have these two measures -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-python"&gt;&lt;CODE&gt;Avg(Aggr(Sum({$&amp;lt;Milestone1Count=-{0}&amp;gt;}SHIPMENTCOUNTER) / Sum(SHIPMENTCOUNTER), ShipmentBranch))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-python"&gt;&lt;CODE&gt;[MS1 Set]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am guessing you would need aggr by same dim in 2nd measure as you have in first but not sure..&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 21:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression-issue/m-p/1996317#M82492</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-10-24T21:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression issue</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression-issue/m-p/1996398#M82506</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48860"&gt;@Digvijay_Singh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have verified them in the table, that's why I am wondering why the colouring rule is not applied in a correct way.&lt;/P&gt;
&lt;P&gt;I've just understood one thing - the&amp;nbsp;&lt;STRONG&gt;[MS1 Set]&amp;nbsp;&lt;/STRONG&gt;value should be the same (fixed like in Excel) for all cells for one column. I am not sure it's possible in Qlik Sense though.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 06:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression-issue/m-p/1996398#M82506</guid>
      <dc:creator>mamaewapolya</dc:creator>
      <dc:date>2022-10-25T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression issue</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression-issue/m-p/2029245#M84791</link>
      <description>&lt;P&gt;The solution is as follows:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;if(Sum({$&amp;lt;MS1Count=-{0}&amp;gt;} Total ORDERCOUNTER) / Sum(Total ORDERCOUNTER) &amp;gt;    
[MS1 Set],                                                                                      Green(),LightRed())&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Jan 2023 10:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression-issue/m-p/2029245#M84791</guid>
      <dc:creator>mamaewapolya</dc:creator>
      <dc:date>2023-01-24T10:45:24Z</dc:date>
    </item>
  </channel>
</rss>

