<?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 Sum orders delay in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-orders-delay/m-p/1197546#M386119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my qlik app I'm trying to calculate the orders delay.&lt;/P&gt;&lt;P&gt;I've many types of order... some of these stays open until they're completely processed and they often are linked to many shipments.&lt;/P&gt;&lt;P&gt;So i made my data model by loading the shipments file with the required delivery date by the client and then i concatenated the residual orders file. When an order isn't processed I assume Ship Date=today().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlik-r.jpg" class="jive-image image-1" height="74" src="https://community.qlik.com/legacyfs/online/139417_qlik-r.jpg" style="height: 74px; width: 791.034px;" width="791" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to sum the order delay when i collapse the pivot (in this case 7+4+1=12)?.&lt;/P&gt;&lt;P&gt;When the real "ship date" is lower then "ship no delay date" I consider a negative delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try this but it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval(sum([Ship Date]-if([Order Date]&amp;gt;=[Ship no Delay Date], [Order Date], &lt;SPAN style="font-size: 13.3333px;"&gt;[Ship no Delay Date])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2016 09:59:02 GMT</pubDate>
    <dc:creator>captain89</dc:creator>
    <dc:date>2016-10-03T09:59:02Z</dc:date>
    <item>
      <title>Sum orders delay</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-orders-delay/m-p/1197546#M386119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my qlik app I'm trying to calculate the orders delay.&lt;/P&gt;&lt;P&gt;I've many types of order... some of these stays open until they're completely processed and they often are linked to many shipments.&lt;/P&gt;&lt;P&gt;So i made my data model by loading the shipments file with the required delivery date by the client and then i concatenated the residual orders file. When an order isn't processed I assume Ship Date=today().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlik-r.jpg" class="jive-image image-1" height="74" src="https://community.qlik.com/legacyfs/online/139417_qlik-r.jpg" style="height: 74px; width: 791.034px;" width="791" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to sum the order delay when i collapse the pivot (in this case 7+4+1=12)?.&lt;/P&gt;&lt;P&gt;When the real "ship date" is lower then "ship no delay date" I consider a negative delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try this but it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval(sum([Ship Date]-if([Order Date]&amp;gt;=[Ship no Delay Date], [Order Date], &lt;SPAN style="font-size: 13.3333px;"&gt;[Ship no Delay Date])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 09:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-orders-delay/m-p/1197546#M386119</guid>
      <dc:creator>captain89</dc:creator>
      <dc:date>2016-10-03T09:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum orders delay</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-orders-delay/m-p/1197547#M386120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this expression working without collapsing? If it is, then may be you just need to aggregate function around to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(&lt;SPAN style="color: #ff0000;"&gt;Sum(Aggr(&lt;/SPAN&gt;Sum([Ship Date]-If([Order Date] &amp;gt;= [Ship no Delay Date], [Order Date], [Ship no Delay Date]))&lt;SPAN style="color: #ff0000;"&gt;, &lt;SPAN style="color: #339966;"&gt;&amp;lt;YourChartDimensionsHere&amp;gt;&lt;/SPAN&gt;))&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to replace this -&amp;gt; &lt;STRONG style=": ; color: #339966; font-size: 13.3333px;"&gt;&amp;lt;YourChartDimensionsHere&amp;gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;with your the dimensions you are using in the chart separated by commas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 17:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-orders-delay/m-p/1197547#M386120</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-03T17:31:40Z</dc:date>
    </item>
  </channel>
</rss>

