<?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: How do I colour the background of negative Sales Variance numbers in a table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025581#M15566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Betty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are making use of the same color when its true as well as when its false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RGB(255,0,0) is red &lt;/P&gt;&lt;P&gt;So change the colour codes:&lt;/P&gt;&lt;P&gt;Green would be RGB(146,208,80)&lt;/P&gt;&lt;P&gt;Amber would be RGB(255,192,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sangram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 17:47:29 GMT</pubDate>
    <dc:creator>reddy-s</dc:creator>
    <dc:date>2016-01-19T17:47:29Z</dc:date>
    <item>
      <title>How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025574#M15559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to colour the background of negative Sales Variance % in a table and it has worked in other tables before, but not this time. This is the table&amp;nbsp; where I want to colour the background red (Sales Variance%):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmklipp2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111969_Skärmklipp2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;The expression for Sales Variance % looks like this:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sum({$&amp;lt;Year={$(=Max(Year))}, Mon={$(=Month(Today()))}&amp;gt;}Sales)/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year)-1)}, Mon={$(=Month(Today()))}&amp;gt;}Sales) - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how I can write an expression that makes the colour in the background red?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Betty Habtemariam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025574#M15559</guid>
      <dc:creator />
      <dc:date>2024-11-16T10:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025575#M15560</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;You can use expression background color for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression, if you click +, you can define background color. In your specific condition you can put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( &lt;SPAN style="font-size: 10pt;"&gt;Sum({$&amp;lt;Year={$(=Max(Year))}, Mon={$(=Month(Today()))}&amp;gt;}Sales)/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year)-1)}, Mon={$(=Month(Today()))}&amp;gt;}Sales) - 1 &amp;lt; 0, Yellow())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I skipped otherwise (False) condition of IF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( &lt;SPAN style="font-size: 10pt;"&gt;Sum({$&amp;lt;Year={$(=Max(Year))}, Mon={$(=Month(Today()))}&amp;gt;}Sales)/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year)-1)}, Mon={$(=Month(Today()))}&amp;gt;}Sales) - 1 &amp;lt; 0, Yellow(), Green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 11:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025575#M15560</guid>
      <dc:creator>tahirkhalil</dc:creator>
      <dc:date>2016-01-19T11:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025576#M15561</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;chk dis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/953088"&gt;Background colour using expression&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 11:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025576#M15561</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-01-19T11:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025577#M15562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expand Expression - Select Background Color - put condition like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Sales Variance &amp;lt; 0, redcolor())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 11:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025577#M15562</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2016-01-19T11:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025578#M15563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/850137"&gt;How to create conditional background color?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 11:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025578#M15563</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-01-19T11:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025579#M15564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to expand the Measure under Data--&amp;gt;Columns--&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and you'll find Background Color Expression like below&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="111987" alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111987_Untitled.png" style="height: 799px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 12:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025579#M15564</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2016-01-19T12:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025580#M15565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I managed to fix the background colour. However, now the problem is that everything is red, whether or not the numbers are positive or negative, haha! It's a neverending story &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Any thoughts on that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it looks like now:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="112000" alt="Skärmklipp2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112000_Skärmklipp2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;The expression: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if (Sum({$&amp;lt;Year={$(=Max(Year))}, Min={$(=Month(Today()))}&amp;gt;}Sales) -&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year)-1)}, Min={$(=Month(Today()))}&amp;gt;}Sales)/&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year)-1)}, Min={$(=mMonth(Today()))}&amp;gt;}Sales) &amp;lt; 0, RGB(255,0,0), red ())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Betty Habtemariam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 13:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025580#M15565</guid>
      <dc:creator />
      <dc:date>2016-01-19T13:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025581#M15566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Betty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are making use of the same color when its true as well as when its false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RGB(255,0,0) is red &lt;/P&gt;&lt;P&gt;So change the colour codes:&lt;/P&gt;&lt;P&gt;Green would be RGB(146,208,80)&lt;/P&gt;&lt;P&gt;Amber would be RGB(255,192,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sangram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 17:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025581#M15566</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2016-01-19T17:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025582#M15567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; It worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 09:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025582#M15567</guid>
      <dc:creator />
      <dc:date>2016-01-25T09:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025583#M15568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&amp;nbsp; Sometimes I'm just too blind, haha! Sorry for the late reply. I was away from work a couple of days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Betty Habtemariam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 09:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025583#M15568</guid>
      <dc:creator />
      <dc:date>2016-01-25T09:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I colour the background of negative Sales Variance numbers in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025584#M15569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad It helped!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-colour-the-background-of-negative-Sales-Variance/m-p/1025584#M15569</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2016-01-25T17:04:30Z</dc:date>
    </item>
  </channel>
</rss>

