<?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 Above Function with Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Above-Function-with-Dates/m-p/947935#M326361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview and am struggling to understand these results :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ReqDate Interval :&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;=avg(aggr(date#(SALDOC_REQDATE,'DD.MM.YYYY')-Above(date#(SALDOC_REQDATE,'DD.MM.YYYY')),SOLDTO,SALDOC_REQDATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=&amp;gt; Results in this example seem fine&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OrderDate Interval :&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;=avg(aggr(date#(SALDOC_DATE,'DD.MM.YYYY')-Above(date#(SALDOC_DATE,'DD.MM.YYYY')),SOLDTO,SALDOC_DATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results here are not correct and noticed that -514 is the interval between first date and last date in range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98875_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help in correcting my expressions are very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would just like to get the average interval between consecutive transactions in calendar days (working days would be great!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 18:06:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-14T18:06:26Z</dc:date>
    <item>
      <title>Above Function with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Above-Function-with-Dates/m-p/947935#M326361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview and am struggling to understand these results :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ReqDate Interval :&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;=avg(aggr(date#(SALDOC_REQDATE,'DD.MM.YYYY')-Above(date#(SALDOC_REQDATE,'DD.MM.YYYY')),SOLDTO,SALDOC_REQDATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=&amp;gt; Results in this example seem fine&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OrderDate Interval :&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;=avg(aggr(date#(SALDOC_DATE,'DD.MM.YYYY')-Above(date#(SALDOC_DATE,'DD.MM.YYYY')),SOLDTO,SALDOC_DATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results here are not correct and noticed that -514 is the interval between first date and last date in range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98875_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help in correcting my expressions are very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would just like to get the average interval between consecutive transactions in calendar days (working days would be great!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 18:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-Function-with-Dates/m-p/947935#M326361</guid>
      <dc:creator />
      <dc:date>2015-09-14T18:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Above Function with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Above-Function-with-Dates/m-p/947936#M326362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that both dates are used as chart dimensions, I think you don't need Advanced Aggregation here. Something like the following should work:&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;=date#(SALDOC_REQDATE,'DD.MM.YYYY') - &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;Above(date#(SALDOC_REQDATE,'DD.MM.YYYY'))&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;This, expression, however, won't produce any totals. If the goal is to get the accurate totals, then the AGGR() is necessary, but then you have to include all of your chart dimensions into the list of your AGGR() dimensions.&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;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In order to get work days only, try using the NetWorkDays() function instead of a simple subtraction.&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;If you are still having problems, please post an example that we could use to build a solution for you.&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;cheers,&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;Oleg Troyansky&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=HEF4KYLLE22XIQH2"&gt;QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 20:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-Function-with-Dates/m-p/947936#M326362</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-09-14T20:26:52Z</dc:date>
    </item>
  </channel>
</rss>

