<?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: AVG of Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537666#M553630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What else you are expecting? There is no average date.. However, you could add the avg days to the DayReceptionBill to get the expected DatePaymentBill if this makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 15:25:00 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2013-09-18T15:25:00Z</dc:date>
    <item>
      <title>AVG of Dates</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537662#M553626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I get the AVG between the day the bill come and the day we paid the bill?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make this:&amp;nbsp; =num(avg(day(DatePaymentBill-DateReceptionBill)), '##,##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have a problem, sometimes we paid before the bill come (like a prepayment) and other times we paid after the bill come. So I wanna make 2 text object with this average.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537662#M553626</guid>
      <dc:creator>rodri_morales</dc:creator>
      <dc:date>2013-09-18T14:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: AVG of Dates</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537663#M553627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;avg(Aggr(DatePaymentBill-DateReceptionBill, BillID))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537663#M553627</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-09-18T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: AVG of Dates</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537664#M553628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try these two&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;"&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;"&gt;Pre-paid:&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;"&gt;=num(avg(if(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DatePaymentBill&amp;lt;DateReceptionBill,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; DateReceptionBill -&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DatePaymentBill&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&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;"&gt;Paid afterwards:&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;"&gt;=num(avg(if(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DatePaymentBill&amp;gt;=DateReceptionBill,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; DatePaymentBill-DateReceptionBill )), '##,##')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537664#M553628</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-18T14:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: AVG of Dates</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537665#M553629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do that, but I think it isn't the correct value. AVG(DatePaymentBill-DayReceptionBill) returns me the average in days?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537665#M553629</guid>
      <dc:creator>rodri_morales</dc:creator>
      <dc:date>2013-09-18T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: AVG of Dates</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537666#M553630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What else you are expecting? There is no average date.. However, you could add the avg days to the DayReceptionBill to get the expected DatePaymentBill if this makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 15:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537666#M553630</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-09-18T15:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: AVG of Dates</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537667#M553631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to know if the difference between DatePaymentBill and DateReceptionBill is in days. If not, I have to add the condition day()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this:&lt;/P&gt;&lt;P&gt;Without Prepayment&lt;/P&gt;&lt;P&gt;=num(avg(if(DatePaymentBill&amp;gt;=DayReceptionBill, DatePaymentBill-DateReceptionBill)), '##,##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Prepayment&lt;/P&gt;&lt;P&gt;=num(avg(DatePaymentBill-DateReceptionBill), '##,##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add the function day() to the avg, the values are incorrect, because Without Prepayment &amp;lt; With Prepayment and thi isn't correct. Always AVG with Prepayment must be less than AVG without Prepayment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 15:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-of-Dates/m-p/537667#M553631</guid>
      <dc:creator>rodri_morales</dc:creator>
      <dc:date>2013-09-18T15:28:06Z</dc:date>
    </item>
  </channel>
</rss>

