<?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 Text colour based on expression not working correctly. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414300#M427408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a SUM(TOTAL) field that I am wanting to colour code 3 ways, Green if it matches new Rent, Orange if it matches Old Rent and Red if it matches neither.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I am using for this is as follows:&lt;/P&gt;&lt;P&gt;=if(SUM(TOTAL &amp;lt;CRMOrganisation.code&amp;gt; familyUnitRent)=newRebatedRentPerWeek,rgb(46, 204, 113)&lt;/P&gt;&lt;P&gt; ,if(SUM(TOTAL &amp;lt;CRMOrganisation.code&amp;gt; familyUnitRent)=rebatedRentPerWeek,rgb(230, 126, 34),rgb(192, 57, 43))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically it takes everyone in the households (&lt;SPAN style="font-size: 13.3333px;"&gt;CRMOrganisation.code)&lt;/SPAN&gt; pre-calculated portion of the rent (&lt;SPAN style="font-size: 13.3333px;"&gt;familyUnitRent)&lt;/SPAN&gt;, adds it together and determines if it matches the new rent, the old rent or none of the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the majority of the rows its working no issues, but I cant find any kind of similarity between the ones that are failing and when I go back to my source system and manually calculate it all, it should be showing as green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can think might be happening is that some members of the household are filtered out at the clinkCRNNumber dimension by an IF statement, but I have tried removing this and the problem still persists.&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help would be much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Nov 2017 11:41:22 GMT</pubDate>
    <dc:creator>lukegilligan</dc:creator>
    <dc:date>2017-11-04T11:41:22Z</dc:date>
    <item>
      <title>Text colour based on expression not working correctly.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414300#M427408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a SUM(TOTAL) field that I am wanting to colour code 3 ways, Green if it matches new Rent, Orange if it matches Old Rent and Red if it matches neither.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I am using for this is as follows:&lt;/P&gt;&lt;P&gt;=if(SUM(TOTAL &amp;lt;CRMOrganisation.code&amp;gt; familyUnitRent)=newRebatedRentPerWeek,rgb(46, 204, 113)&lt;/P&gt;&lt;P&gt; ,if(SUM(TOTAL &amp;lt;CRMOrganisation.code&amp;gt; familyUnitRent)=rebatedRentPerWeek,rgb(230, 126, 34),rgb(192, 57, 43))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically it takes everyone in the households (&lt;SPAN style="font-size: 13.3333px;"&gt;CRMOrganisation.code)&lt;/SPAN&gt; pre-calculated portion of the rent (&lt;SPAN style="font-size: 13.3333px;"&gt;familyUnitRent)&lt;/SPAN&gt;, adds it together and determines if it matches the new rent, the old rent or none of the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the majority of the rows its working no issues, but I cant find any kind of similarity between the ones that are failing and when I go back to my source system and manually calculate it all, it should be showing as green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can think might be happening is that some members of the household are filtered out at the clinkCRNNumber dimension by an IF statement, but I have tried removing this and the problem still persists.&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help would be much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Nov 2017 11:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414300#M427408</guid>
      <dc:creator>lukegilligan</dc:creator>
      <dc:date>2017-11-04T11:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Text colour based on expression not working correctly.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414301#M427409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you be more specific as to how it is "failing" - and possibly the rows that you think are failing...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Nov 2017 14:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414301#M427409</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-11-04T14:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text colour based on expression not working correctly.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414302#M427410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter, basically any of the &lt;STRONG&gt;Individual Amount&lt;/STRONG&gt; column that has gone red is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the image below, you can see both people are part of the one &lt;STRONG&gt;CRMOrganisation.code&lt;/STRONG&gt; group 126204.99031267. This is their household with a fortnightly &lt;STRONG&gt;Rent Total &lt;/STRONG&gt;of $713.10 per fortnight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have software on the backend that determines how much each person within the household is supposed to pay (this is based on their income, and irrelevant to the errors I am seeing) and this is their &lt;STRONG&gt;Individual Amount&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SUM of all of the &lt;STRONG&gt;Individual Amount's&lt;/STRONG&gt; that share a &lt;STRONG style="font-size: 13.3333px;"&gt;CRMOrganisation.code &lt;/STRONG&gt;should equal the fortnightly &lt;STRONG&gt;Rent Total &lt;/STRONG&gt;and go green to show that they do equal the correct amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in this example though Customer 211358462C's amount is 373.08 and Customer 433783222V's amount is 340.02 which when added together gives 713.10 the same as the fortnightly &lt;STRONG&gt;Rent Total&lt;/STRONG&gt; which should turn it gree, however it is red.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Rent Calculation.PNG" class="jive-image image-1" src="/legacyfs/online/182116_Rent Calculation.PNG" style="height: 127px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Nov 2017 20:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414302#M427410</guid>
      <dc:creator>lukegilligan</dc:creator>
      <dc:date>2017-11-04T20:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Text colour based on expression not working correctly.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414303#M427411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I might have some more clues as to why this isn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of the &lt;STRONG&gt;Individual Amounts&lt;/STRONG&gt; on their own do not equal &lt;STRONG&gt;Rent Total&lt;/STRONG&gt; for those that are not working, eg in the example above &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Customer 211358462C's amount is 373.08 and Customer 433783222V's amount is 340.02, but the &lt;STRONG&gt;Rent Total&lt;/STRONG&gt; per week is 356.55 (which neither equal the totals). This leads me to believe that somehow my SUM(TOTAL) based on the &lt;STRONG&gt;CRMOrganisation.code&lt;/STRONG&gt; is not working correctly.&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: 13px;"&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: 13px;"&gt;Does this help with where I have gone wrong at all?&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: 13px;"&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: 13px;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Nov 2017 21:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414303#M427411</guid>
      <dc:creator>lukegilligan</dc:creator>
      <dc:date>2017-11-04T21:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Text colour based on expression not working correctly.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414304#M427412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter, any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 01:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-colour-based-on-expression-not-working-correctly/m-p/1414304#M427412</guid>
      <dc:creator>lukegilligan</dc:creator>
      <dc:date>2017-11-08T01:55:23Z</dc:date>
    </item>
  </channel>
</rss>

