<?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: Subtracting dates with aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610821#M735756</link>
    <description>&lt;P&gt;Is that syntax issue? Or can you share what you are getting using 2 different expressions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4" color="#000000"&gt;=(Interval (Today () - date_task, 'd'))-(Round (aggr (avg (interval (today () - data_task, 'd')&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;), city_task, burgh_task, phase_task, my_task))&lt;FONT color="#0000FF"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4" color="#000000"&gt;Please remove red parenthesis and add it in the blue color&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 16:51:59 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2019-08-08T16:51:59Z</dc:date>
    <item>
      <title>Subtracting dates with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610813#M735755</link>
      <description>&lt;P&gt;I have a chart (PivotTable). In it, as dimensions, I display the fake columns "Days1_" - &lt;EM&gt;= (Interval (Today () - date_task, 'd'))&lt;/EM&gt; - and "Media_" - &lt;EM&gt;=(Round (aggr (avg (interval (today () (data (today ())) d ')), city_task, burgh_task, phase_task, my_task)))&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;The values are properly displayed.&lt;/P&gt;&lt;P&gt;But when I create a fake column "Dif_" -&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(Interval (Today () - date_task, 'd'))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(Round (aggr (avg (interval (today () - data_task, 'd'))), city_task, burgh_task, phase_task, my_task))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The result is null. Why?&lt;/P&gt;&lt;P&gt;My ultimate goal is to set background colors (&lt;EM&gt;if days1_&amp;gt; media_1, red; if days1_ &amp;lt;media_, green; if days1_ = media_, yellow&lt;/EM&gt;), but with result null, the test for setting colors doesn't work ...&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610813#M735755</guid>
      <dc:creator>luiz_damascena</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting dates with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610821#M735756</link>
      <description>&lt;P&gt;Is that syntax issue? Or can you share what you are getting using 2 different expressions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4" color="#000000"&gt;=(Interval (Today () - date_task, 'd'))-(Round (aggr (avg (interval (today () - data_task, 'd')&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;), city_task, burgh_task, phase_task, my_task))&lt;FONT color="#0000FF"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4" color="#000000"&gt;Please remove red parenthesis and add it in the blue color&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 16:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610821#M735756</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-08-08T16:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting dates with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610836#M735757</link>
      <description>&lt;P&gt;I wrote wrong - the definition of "Media_" is&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(Round (aggr (avg (interval (today () - data_task, 'd'))), city_task, burgh_task, phase_task, my_task))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 17:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610836#M735757</guid>
      <dc:creator>luiz_damascena</dc:creator>
      <dc:date>2019-08-08T17:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting dates with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610844#M735758</link>
      <description>&lt;P&gt;Thanks, but I believe that I wrote wrong, in the post... in my qvw, the definition is like you wrote, with the parenthesis in the correct position.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 17:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610844#M735758</guid>
      <dc:creator>luiz_damascena</dc:creator>
      <dc:date>2019-08-08T17:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting dates with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610850#M735759</link>
      <description>&lt;P&gt;What is the out put you've got using both expressions?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 17:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610850#M735759</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-08-08T17:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting dates with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610854#M735760</link>
      <description>&lt;P&gt;The output is "-", that is the defined as the &lt;EM&gt;Null Symbol&lt;/EM&gt; in Presentation Tab.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 17:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610854#M735760</guid>
      <dc:creator>luiz_damascena</dc:creator>
      <dc:date>2019-08-08T17:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting dates with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610858#M735761</link>
      <description>&lt;P&gt;Can we have sample application to test ?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 17:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610858#M735761</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-08-08T17:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting dates with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610870#M735762</link>
      <description>&lt;P&gt;Thanks again, but in this case, I don't know how to do that... it´s a big qvw, with a lot of code on script... I don't know how to generate data to mount the test, to send... I'm sorry, and thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why can I see the colums but I can't do a math operation using them? Mind blowing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 17:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1610870#M735762</guid>
      <dc:creator>luiz_damascena</dc:creator>
      <dc:date>2019-08-08T17:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting dates with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1617134#M735763</link>
      <description>&lt;P&gt;Luiz, you can use the File\Reduce Data\Keep Possible in the Desktop client, but be sure you make some selections first to be sure there is some data still left in the data model.&amp;nbsp; If there are any confidential fields as well, use the Settings\Document Properties\Scrambling tab to scramble those...&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 13:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates-with-aggr-function/m-p/1617134#M735763</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-27T13:56:15Z</dc:date>
    </item>
  </channel>
</rss>

