<?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: Problem with Conditional Colors on Text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457732#M796672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use frac() function instead of defining date format - here is simpler version of your function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(frac(Now()) &amp;lt;= frac(Date#('01:30:00','hh:mm:ss')), blue())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 00:19:14 GMT</pubDate>
    <dc:creator>JaMajka1</dc:creator>
    <dc:date>2018-01-03T00:19:14Z</dc:date>
    <item>
      <title>Problem with Conditional Colors on Text</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457731#M796671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a problem with conditional formatting for text colors on screen. I have reused code that is working on other screens but with one big difference. I am trying to do a calculation on the expression and not a straight look at a single field. The code looks like the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((Date(Now(),'hh:mm:ss TT') - AVG(AGGR(AVG({$&amp;lt;ServiceName ={'Renew'}&amp;gt;} LongestWaiting), Branch, ServiceName))) &amp;lt;= '01:30:00', blue(), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if((Date(Now(),'hh:mm:ss TT') - AVG(AGGR(AVG({$&amp;lt;ServiceName ={'Renew'}&amp;gt;} LongestWaiting), Branch, ServiceName)))&amp;gt;='01:30:01' &lt;/P&gt;&lt;P&gt;AND (Date(Now(),'hh:mm:ss TT') - AVG(AGGR(AVG({$&amp;lt;ServiceName ={'Renew'}&amp;gt;} LongestWaiting, Branch, ServiceName))) &amp;lt;= '02:00:00', yellow(),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if((Date(Now(),'hh:mm:ss TT') - AVG(AGGR(AVG({$&amp;lt;ServiceName ={'Renew'}&amp;gt;} LongestWaiting), Branch, ServiceName)))&amp;gt;='02:00:01' &lt;/P&gt;&lt;P&gt;AND (Date(Now(),'hh:mm:ss TT') - AVG(AGGR(AVG({$&amp;lt;ServiceName ={'Renew'}&amp;gt;} LongestWaiting), Branch, ServiceName))) &amp;lt;= '02:30:00', red(),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((Date(Now(),'hh:mm:ss TT') - AVG(AGGR(AVG({$&amp;lt;ServiceName ={'Renew'}&amp;gt;} LongestWaiting), Branch, ServiceName))) &amp;gt; '02:30:00', black(), rgb(0, 87, 60)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the correct time for when I use the time calculation in the Field expression but it seems to fail in the conditional text color formatting. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457731#M796671</guid>
      <dc:creator>rponichtera</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Conditional Colors on Text</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457732#M796672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use frac() function instead of defining date format - here is simpler version of your function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(frac(Now()) &amp;lt;= frac(Date#('01:30:00','hh:mm:ss')), blue())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 00:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457732#M796672</guid>
      <dc:creator>JaMajka1</dc:creator>
      <dc:date>2018-01-03T00:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Conditional Colors on Text</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457733#M796673</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;Note that, you are subtracting 2 times and comparing with string, its make the expression failed.&lt;/P&gt;&lt;P&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;=if((Date(Now(),'hh:mm:ss TT') - AVG(AGGR(AVG({$&amp;lt;ServiceName ={'Renew'}&amp;gt;} LongestWaiting), Branch, ServiceName))) &amp;lt;= &lt;STRONG&gt;'01:30:00' &amp;lt;- String&lt;/STRONG&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;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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;Instead of that, you need to convert the string to time by using time# function. and also, recommend to use time function in the Avg also. &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;All 3 must have in same format.&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 06:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457733#M796673</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2018-01-03T06:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Conditional Colors on Text</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457734#M796674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have taken both suggestions and tried them . For simplicity I changed the conditional formatting to be on one time frame only. Unfortunately I am still not getting any positive results. The code now looks like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((Time#(Now(),'hh:mm:ss') - Time#(AVG(AGGR(AVG({$&amp;lt;ServiceName = 'Renew'&amp;gt;} LongestWaiting), Branch, ServiceName)))) &amp;lt;= Time#('01:30:00','hh:mm:ss'), blue(), red())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457734#M796674</guid>
      <dc:creator>rponichtera</dc:creator>
      <dc:date>2018-01-03T15:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Conditional Colors on Text</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457735#M796675</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;Can you provide some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 05:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457735#M796675</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2018-01-04T05:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Conditional Colors on Text</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457736#M796676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a qvf of the app I am working on. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Conditional-Colors-on-Text/m-p/1457736#M796676</guid>
      <dc:creator>rponichtera</dc:creator>
      <dc:date>2018-01-10T20:30:43Z</dc:date>
    </item>
  </channel>
</rss>

