<?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: Create an expression for calculating On Time In Full in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452643#M1166731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... the AND expression I had in mind was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND(GRquantity=OrderQuantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2012 12:19:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-28T12:19:52Z</dc:date>
    <item>
      <title>Create an expression for calculating On Time In Full</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452642#M1166730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have done my first simple QW report to measure Delivery Performance for my Suppliers. As a first attempt I did a simple if expression that compared &lt;SPAN style="color: #333333;"&gt;confirmed&lt;/SPAN&gt; date with Good receit date. This works fine and looks as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ConfirmedDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GRdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt;0, 0, 1) as DP,&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically this will mean that all early deliveries will be measured as on time. I would now like to alter that expression so that it provides an On Time measure with no tolerance for early deliveries. My attempt was as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ConfirmedDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GRdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt;0, 0, 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ConfirmedDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GRdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt;0, 0, 1)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have obviously done something stupid... Could you give me advice on how to correct or maybe give me an alternative solution?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;As an extension to this I would also like to add an expression that also take into account the quantity delivered. I would like to do it with an expression containing AND as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 12:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452642#M1166730</guid>
      <dc:creator />
      <dc:date>2012-09-28T12:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expression for calculating On Time In Full</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452643#M1166731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... the AND expression I had in mind was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND(GRquantity=OrderQuantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 12:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452643#M1166731</guid>
      <dc:creator />
      <dc:date>2012-09-28T12:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expression for calculating On Time In Full</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452644#M1166732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With&amp;nbsp; no fault tolerence you can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: If ((ConfirmedDate-GRdate)=0, 1) as DP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2: If ((ConfirmedDate-GRdate)=0 AND (GRquantity - OrderQuantity=0), 1) as DP,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 13:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452644#M1166732</guid>
      <dc:creator>michael123</dc:creator>
      <dc:date>2012-09-28T13:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expression for calculating On Time In Full</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452645#M1166733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;Thank you. What if I wanted a tolerance, say +/- 1 day in the expression. Is there a function where I could use the absolute value, like in Excel: Abs(...)? Any other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 14:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452645#M1166733</guid>
      <dc:creator />
      <dc:date>2012-09-28T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expression for calculating On Time In Full</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452646#M1166734</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;This will pass the deliveries in the tolerances defined by variables vDateTolerance and vQuantityTolerance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If((Fabs(ConfirmedDate-GRdate) &amp;lt;= vDateTolerance)&lt;/P&gt;&lt;P&gt;And (Fabs(GRquantity - OrderQuantity) &amp;lt;= vQuantityTolerance), 1, 0) As DP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 14:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-expression-for-calculating-On-Time-In-Full/m-p/452646#M1166734</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-09-28T14:12:09Z</dc:date>
    </item>
  </channel>
</rss>

