<?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 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/1883253#M72720</link>
    <description>&lt;P&gt;Can you please show the what you tried in the first place?&lt;BR /&gt;In case you used nested if conditions, in most cases it is very important which statement comes first:&lt;BR /&gt;When you test "if date &amp;lt; yesterday" first, it will will be true for any date before yesterday.&lt;BR /&gt;if you want to test for "date &amp;lt; last week" this has to be tested before "date &amp;lt; yesterday"&lt;/P&gt;
&lt;P&gt;hope, this hint helps. if not, please paste the script which is not working so we can fix it.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 10:01:14 GMT</pubDate>
    <dc:creator>chris_djih</dc:creator>
    <dc:date>2022-01-20T10:01:14Z</dc:date>
    <item>
      <title>Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/1883014#M72700</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the table below.&lt;/P&gt;
&lt;P&gt;Publish Time is directly coming from the script as&amp;nbsp;AppPublishTime&lt;/P&gt;
&lt;P&gt;Expression for Checked Time&amp;nbsp; =timestamp(max(total&amp;lt;PublishedAppName&amp;gt;createdDateTime))&lt;/P&gt;
&lt;P&gt;Now,&amp;nbsp; I have an background color expression on Checked Time field.&amp;nbsp; &amp;nbsp;=if(timestamp(max(total&amp;lt;PublishedAppName&amp;gt;createdDateTime)) &amp;lt; [AppPublishTime]-1 ,yellow ())&lt;/P&gt;
&lt;P&gt;If Checked time is less than AppPublishtime -1 then highlight as yellow which works great.&lt;/P&gt;
&lt;P&gt;What I additionally want is&lt;/P&gt;
&lt;P&gt;Highlight as Orange if&amp;nbsp;&amp;nbsp;Checked time is less than AppPublishtime -5&lt;/P&gt;
&lt;P&gt;Highlight as Red if Checked time has - (dash)&lt;/P&gt;
&lt;P&gt;Highlight as green if date of checked time and date of Publish time are same&lt;/P&gt;
&lt;P&gt;I tried using various expression but other than the expression for yellow condition, nothing else seems to be working.&lt;/P&gt;
&lt;P&gt;Please let me know if there is an good way of incorporating the above conditions into background color for the Checked Time field. Thanks very much!!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jpjust_0-1642619638170.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70560iA690072D2D617F51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jpjust_0-1642619638170.png" alt="jpjust_0-1642619638170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 19:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/1883014#M72700</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2022-01-19T19:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/1883253#M72720</link>
      <description>&lt;P&gt;Can you please show the what you tried in the first place?&lt;BR /&gt;In case you used nested if conditions, in most cases it is very important which statement comes first:&lt;BR /&gt;When you test "if date &amp;lt; yesterday" first, it will will be true for any date before yesterday.&lt;BR /&gt;if you want to test for "date &amp;lt; last week" this has to be tested before "date &amp;lt; yesterday"&lt;/P&gt;
&lt;P&gt;hope, this hint helps. if not, please paste the script which is not working so we can fix it.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 10:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/1883253#M72720</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-01-20T10:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/1883383#M72743</link>
      <description>&lt;P&gt;Thanks, that hint worked.&lt;/P&gt;
&lt;P&gt;Now the issue is, the last IF statement don't work&lt;/P&gt;
&lt;P&gt;=if(timestamp(max(total&amp;lt;PublishedAppName&amp;gt;createdDateTime)) &amp;lt; [AppPublishTime]-5 ,rgb(255,0,0), if(timestamp(max(total&amp;lt;PublishedAppName&amp;gt;createdDateTime)) &amp;lt; [AppPublishTime]-1 ,yellow(),if(date(max(total&amp;lt;PublishedAppName&amp;gt;createdDateTime)) &amp;lt; date([AppPublishTime]) ,green(),IF(timestamp(max(total&amp;lt;PublishedAppName&amp;gt;createdDateTime)) ='-',red())) ))&lt;/P&gt;
&lt;P&gt;For the last IF statement, I tried using If(ISNULL, IF(LEN, but nothing works.&lt;/P&gt;
&lt;P&gt;Here is my output from the above nested IF expression.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jpjust_0-1642686726403.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70613iE3D60968B82A5E49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jpjust_0-1642686726403.png" alt="jpjust_0-1642686726403.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 13:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/1883383#M72743</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2022-01-20T13:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/1883419#M72748</link>
      <description>&lt;P&gt;This is more or less intendet. Null values will always show as gray.&lt;BR /&gt;Only solution is you generate a custom "null vlaue" in the script, for example&amp;nbsp; Analyszed Time "unkown" when ever there is no data for this field. &lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 14:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/1883419#M72748</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-01-20T14:49:59Z</dc:date>
    </item>
  </channel>
</rss>

