<?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: Dúvida de expressão com datas in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/D%C3%BAvida-de-express%C3%A3o-com-datas/m-p/1873654#M72065</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If my understanding is correct, you have 2 fields (&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data entrada NF&lt;/STRONG&gt;&lt;/SPAN&gt; and &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data de solicitacao&lt;/STRONG&gt;&lt;/SPAN&gt;). Then you want to achieve the following:&lt;/P&gt;

&lt;OL&gt;
 &lt;LI&gt;If&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data de solicitacao&lt;/STRONG&gt;&lt;/SPAN&gt; is equal to&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data entrada NF&lt;/STRONG&gt;&lt;/SPAN&gt; or less for&amp;nbsp;&lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;3 days&lt;/STRONG&gt;&lt;/SPAN&gt;, then it is going to be &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;GREEN&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;If&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data de solicitacao&lt;/STRONG&gt;&lt;/SPAN&gt; is less than&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data entrada NF&lt;/STRONG&gt;&lt;/SPAN&gt; for more than &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;3 days&lt;/STRONG&gt;&lt;/SPAN&gt;, then it is going to be &lt;SPAN style="color:#f1c40f"&gt;&lt;STRONG&gt;YELLOW&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;If &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data de solicitacao&lt;/STRONG&gt;&lt;/SPAN&gt; is more than&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data entrada NF&lt;/STRONG&gt;&lt;/SPAN&gt;, then it is going to be &lt;SPAN style="color:#c0392b"&gt;&lt;STRONG&gt;RED&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Perhaps you can try using the following expression:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;if &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(&lt;BR /&gt;
&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &amp;gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;,&amp;nbsp;&lt;BR /&gt;
&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Red&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(),&lt;BR /&gt;
&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(&lt;BR /&gt;
&amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &amp;lt;= &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &amp;gt;= &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; - 3, 'MM/DD/YYYY'),&amp;nbsp;&lt;BR /&gt;
&amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Green&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(),&amp;nbsp;&lt;BR /&gt;
&amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Yellow&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;()&lt;BR /&gt;
&amp;nbsp; ),&lt;BR /&gt;
)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Here is my outcome:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="SCREENSHOT" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/c4c712ee-e5b3-4380-b529-eebd2a457d64.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color:#7f8c8d"&gt;I have added another column to calculate the differences of the dates with the expression:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF] &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;- &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;. If the difference is a &lt;/SPAN&gt;&lt;SPAN style="color:#c0392b"&gt;negative number&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;, then&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&amp;nbsp;[Data de solicitacao]&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt; is grater than&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;[Data entrada NF]&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;, so the color should be &lt;/SPAN&gt;&lt;SPAN style="color:#c0392b"&gt;RED&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;. If the difference is a&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt; positive number&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt; 1, 2 or 3, then the color should be &lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;GREEN&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;. Otherwise if the&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt; positive number &lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;is grater than 3, then the color should be &lt;/SPAN&gt;&lt;SPAN style="color:#f1c40f"&gt;YELLOW&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;As you can see:&lt;/P&gt;

&lt;OL&gt;
 &lt;LI&gt;For the first row:&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt; is grater than&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt; by 8 days, so the color is &lt;SPAN style="color:#c0392b"&gt;&lt;STRONG&gt;RED&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;For the second row:&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt; is less than&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;by 1 day, so the color is &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;GREEN&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;For the fourth row:&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt; is less than &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt; by 10 days, so the color is &lt;SPAN style="color:#f1c40f"&gt;&lt;STRONG&gt;YELLOW&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN style="font-size:11pt"&gt;&lt;SPAN style="font-family:Calibri,sans-serif"&gt;I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 08:37:13 GMT</pubDate>
    <dc:creator>Andrei_Cusnir</dc:creator>
    <dc:date>2021-12-21T08:37:13Z</dc:date>
    <item>
      <title>Dúvida de expressão com datas</title>
      <link>https://community.qlik.com/t5/App-Development/D%C3%BAvida-de-express%C3%A3o-com-datas/m-p/1873539#M72055</link>
      <description>&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Boa noite galera, tudo bem?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Estou com uma dúvida e gostaria de pedir a ajuda de vocês.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Preciso desenvolver uma função que altere o fundo da tabela com os seguintes requisitos&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Se a comparação da 'Data de solicitação' com a 'Data de entrada da NF' for igual ou menor a 3 dias = cor verde&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Se a comparação da 'Data de solicitação' com a 'Data de entrada da NF' for maior que 3 dias = cor amarela&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Se a comparação da 'Data de solicitação' for maior que a ' &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Data de entrada da NF' = cor vermelha&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="342dssf_1-1640038557362.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68975i946F7726AADA3186/image-size/medium?v=v2&amp;amp;px=400" role="button" title="342dssf_1-1640038557362.png" alt="342dssf_1-1640038557362.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Estou tentando a seguinte função mas as cores não estão corretas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF (Data entrada NF &amp;lt;= Data de solicitacao -3 , 'green', &lt;BR /&gt;IF (Data entrada NF &amp;gt;= Data de solicitacao +3, 'yellow',&lt;BR /&gt;IF (Data de solicitacao &amp;gt; Data entrada NF, 'red')))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 22:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/D%C3%BAvida-de-express%C3%A3o-com-datas/m-p/1873539#M72055</guid>
      <dc:creator>342dssf</dc:creator>
      <dc:date>2021-12-20T22:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dúvida de expressão com datas</title>
      <link>https://community.qlik.com/t5/App-Development/D%C3%BAvida-de-express%C3%A3o-com-datas/m-p/1873654#M72065</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If my understanding is correct, you have 2 fields (&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data entrada NF&lt;/STRONG&gt;&lt;/SPAN&gt; and &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data de solicitacao&lt;/STRONG&gt;&lt;/SPAN&gt;). Then you want to achieve the following:&lt;/P&gt;

&lt;OL&gt;
 &lt;LI&gt;If&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data de solicitacao&lt;/STRONG&gt;&lt;/SPAN&gt; is equal to&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data entrada NF&lt;/STRONG&gt;&lt;/SPAN&gt; or less for&amp;nbsp;&lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;3 days&lt;/STRONG&gt;&lt;/SPAN&gt;, then it is going to be &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;GREEN&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;If&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data de solicitacao&lt;/STRONG&gt;&lt;/SPAN&gt; is less than&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data entrada NF&lt;/STRONG&gt;&lt;/SPAN&gt; for more than &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;3 days&lt;/STRONG&gt;&lt;/SPAN&gt;, then it is going to be &lt;SPAN style="color:#f1c40f"&gt;&lt;STRONG&gt;YELLOW&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;If &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data de solicitacao&lt;/STRONG&gt;&lt;/SPAN&gt; is more than&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Data entrada NF&lt;/STRONG&gt;&lt;/SPAN&gt;, then it is going to be &lt;SPAN style="color:#c0392b"&gt;&lt;STRONG&gt;RED&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Perhaps you can try using the following expression:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;if &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(&lt;BR /&gt;
&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &amp;gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;,&amp;nbsp;&lt;BR /&gt;
&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Red&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(),&lt;BR /&gt;
&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(&lt;BR /&gt;
&amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &amp;lt;= &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &amp;gt;= &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; - 3, 'MM/DD/YYYY'),&amp;nbsp;&lt;BR /&gt;
&amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Green&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(),&amp;nbsp;&lt;BR /&gt;
&amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Yellow&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;()&lt;BR /&gt;
&amp;nbsp; ),&lt;BR /&gt;
)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Here is my outcome:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="SCREENSHOT" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/c4c712ee-e5b3-4380-b529-eebd2a457d64.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color:#7f8c8d"&gt;I have added another column to calculate the differences of the dates with the expression:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF] &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;- &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;. If the difference is a &lt;/SPAN&gt;&lt;SPAN style="color:#c0392b"&gt;negative number&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;, then&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&amp;nbsp;[Data de solicitacao]&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt; is grater than&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;[Data entrada NF]&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;, so the color should be &lt;/SPAN&gt;&lt;SPAN style="color:#c0392b"&gt;RED&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;. If the difference is a&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt; positive number&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt; 1, 2 or 3, then the color should be &lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;GREEN&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;. Otherwise if the&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt; positive number &lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;is grater than 3, then the color should be &lt;/SPAN&gt;&lt;SPAN style="color:#f1c40f"&gt;YELLOW&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;As you can see:&lt;/P&gt;

&lt;OL&gt;
 &lt;LI&gt;For the first row:&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt; is grater than&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt; by 8 days, so the color is &lt;SPAN style="color:#c0392b"&gt;&lt;STRONG&gt;RED&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;For the second row:&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt; is less than&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;by 1 day, so the color is &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;GREEN&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;For the fourth row:&amp;nbsp;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data de solicitacao]&lt;/STRONG&gt;&lt;/SPAN&gt; is less than &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;[Data entrada NF]&lt;/STRONG&gt;&lt;/SPAN&gt; by 10 days, so the color is &lt;SPAN style="color:#f1c40f"&gt;&lt;STRONG&gt;YELLOW&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN style="font-size:11pt"&gt;&lt;SPAN style="font-family:Calibri,sans-serif"&gt;I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 08:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/D%C3%BAvida-de-express%C3%A3o-com-datas/m-p/1873654#M72065</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2021-12-21T08:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dúvida de expressão com datas</title>
      <link>https://community.qlik.com/t5/App-Development/D%C3%BAvida-de-express%C3%A3o-com-datas/m-p/1874334#M72110</link>
      <description>&lt;P&gt;Muito obrigado meu amigo, resolveu meu problema.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/D%C3%BAvida-de-express%C3%A3o-com-datas/m-p/1874334#M72110</guid>
      <dc:creator>342dssf</dc:creator>
      <dc:date>2021-12-22T15:54:11Z</dc:date>
    </item>
  </channel>
</rss>

