<?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: On Time and In Full in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/On-Time-and-In-Full-in-expression/m-p/1728128#M452135</link>
    <description>&lt;P&gt;&lt;SPAN&gt;can you try below. If not working then would you be able to provide sample?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count(&lt;STRONG&gt;total &amp;lt;[Sales order line]&amp;gt;&lt;/STRONG&gt;{&amp;lt;SO_Key={"=sum(Deliver_Net_Weight_KG)&amp;gt;=MinOrderQuanity&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and&amp;nbsp; sum(Deliver_Net_Weight_KG)&amp;lt;=MaxOrderQuantity"}&amp;gt;*&amp;lt; SO_Key={"=OTIF_Date &amp;gt;= Cust_GI_Date"}&amp;gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SO_Key)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2020 16:17:00 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-07-15T16:17:00Z</dc:date>
    <item>
      <title>On Time and In Full in expression</title>
      <link>https://community.qlik.com/t5/QlikView/On-Time-and-In-Full-in-expression/m-p/1728127#M452134</link>
      <description>&lt;P&gt;I'm developing an On Time and In Full calculation, OTIF Dashboard. Previously i used backend script to develop the calculation but my customer would like to have some kind of what-if analysis therefore i have to do the calculation "on the fly" in frontend expression.&lt;/P&gt;&lt;P&gt;Scenario at below:&lt;/P&gt;&lt;P&gt;OTIF by Sales Order Line: When fulfilled On time + In full, then OTIF is fulfilled.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="98.51398601398601%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="8.636363636363637%" height="69px"&gt;Sales Order&lt;/TD&gt;&lt;TD width="10.111286229298651%" height="69px"&gt;Sales Order Line&lt;/TD&gt;&lt;TD width="41.25235013433771%" height="69px"&gt;On Time&lt;/TD&gt;&lt;TD width="0.8873114463176575%" height="69px"&gt;In Full&lt;/TD&gt;&lt;TD width="39.11268855368234%" height="69px"&gt;OTIF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="8.636363636363637%" height="135px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="10.111286229298651%" height="135px"&gt;Formula&lt;/TD&gt;&lt;TD width="41.25235013433771%" height="135px"&gt;=count({&amp;lt;SO_Key={"=OTIF_Date &amp;gt;= Cust_GI_Date"}&amp;gt;}SO_Key)&lt;/TD&gt;&lt;TD width="0.8873114463176575%" height="135px"&gt;&lt;P&gt;count({&amp;lt;SO_Key={"=sum(Deliver_Net_Weight_KG)&amp;gt;=MinOrderQuanity&amp;nbsp;&lt;BR /&gt;and&amp;nbsp; sum(Deliver_Net_Weight_KG)&amp;lt;=MaxOrderQuantity"}&amp;gt;}&lt;BR /&gt;SO_Key)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="39.11268855368234%" height="135px"&gt;count({&amp;lt;SO_Key={"=sum(Deliver_Net_Weight_KG)&amp;gt;=MinOrderQuanity&amp;nbsp;&lt;BR /&gt;and&amp;nbsp; sum(Deliver_Net_Weight_KG)&amp;lt;=MaxOrderQuantity"}&amp;gt;*&amp;lt; SO_Key={"=OTIF_Date &amp;gt;= Cust_GI_Date"}&amp;gt;}&lt;BR /&gt;SO_Key)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="8.636363636363637%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="10.111286229298651%" height="25px"&gt;Total&lt;/TD&gt;&lt;TD width="41.25235013433771%" height="25px"&gt;3&lt;/TD&gt;&lt;TD width="0.8873114463176575%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="39.11268855368234%" height="25px"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="8.636363636363637%" height="69px"&gt;20012322&lt;/TD&gt;&lt;TD width="10.111286229298651%" height="69px"&gt;10&lt;/TD&gt;&lt;TD width="41.25235013433771%" height="69px"&gt;1&lt;/TD&gt;&lt;TD width="0.8873114463176575%" height="69px"&gt;1&lt;/TD&gt;&lt;TD width="39.11268855368234%" height="69px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="8.636363636363637%" height="26px"&gt;20012322&lt;/TD&gt;&lt;TD width="10.111286229298651%" height="26px"&gt;20&lt;/TD&gt;&lt;TD width="41.25235013433771%" height="26px"&gt;1&lt;/TD&gt;&lt;TD width="0.8873114463176575%" height="26px"&gt;1&lt;/TD&gt;&lt;TD width="39.11268855368234%" height="26px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="8.636363636363637%" height="25px"&gt;20012322&lt;/TD&gt;&lt;TD width="10.111286229298651%" height="25px"&gt;30&lt;/TD&gt;&lt;TD width="41.25235013433771%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="0.8873114463176575%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="39.11268855368234%" height="25px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="8.636363636363637%" height="25px"&gt;20012322&lt;/TD&gt;&lt;TD width="10.111286229298651%" height="25px"&gt;40&lt;/TD&gt;&lt;TD width="41.25235013433771%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="0.8873114463176575%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="39.11268855368234%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above calculation i have no issue but when come to calculate by Sales Order Line.&lt;/P&gt;&lt;P&gt;How to calculate Sales Order? Is when any of the&amp;nbsp;Sales Order Line's OTIF is 0, the entire Sales Order's OTIF will be 0. How to get the below result using frontend expression? I know this message might trouble but I seeking your advice. Thanks&lt;/P&gt;&lt;TABLE border="1" width="1011px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="76px" height="87px"&gt;Sales Order&lt;/TD&gt;&lt;TD width="201px" height="87px"&gt;On Time&lt;/TD&gt;&lt;TD width="364px" height="87px"&gt;In Full&lt;/TD&gt;&lt;TD width="369px" height="87px"&gt;OTIF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="76px" height="78px"&gt;Formula&lt;/TD&gt;&lt;TD width="201px" height="78px"&gt;The on time is zero because one of the Sales order line is zero&lt;/TD&gt;&lt;TD width="364px" height="78px"&gt;The in full is 1 because all the Sales Order Line is met.&lt;/TD&gt;&lt;TD width="369px" height="78px"&gt;Hence, 0.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="76px" height="32px"&gt;Total&lt;/TD&gt;&lt;TD width="201px" height="32px"&gt;0&lt;/TD&gt;&lt;TD width="364px" height="32px"&gt;1&lt;/TD&gt;&lt;TD width="369px" height="32px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="76px" height="85px"&gt;20012322&lt;/TD&gt;&lt;TD width="201px" height="85px"&gt;0&lt;/TD&gt;&lt;TD width="364px" height="85px"&gt;1&lt;/TD&gt;&lt;TD width="369px" height="85px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 16:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/On-Time-and-In-Full-in-expression/m-p/1728127#M452134</guid>
      <dc:creator>kenji_khoo</dc:creator>
      <dc:date>2020-07-15T16:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: On Time and In Full in expression</title>
      <link>https://community.qlik.com/t5/QlikView/On-Time-and-In-Full-in-expression/m-p/1728128#M452135</link>
      <description>&lt;P&gt;&lt;SPAN&gt;can you try below. If not working then would you be able to provide sample?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count(&lt;STRONG&gt;total &amp;lt;[Sales order line]&amp;gt;&lt;/STRONG&gt;{&amp;lt;SO_Key={"=sum(Deliver_Net_Weight_KG)&amp;gt;=MinOrderQuanity&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and&amp;nbsp; sum(Deliver_Net_Weight_KG)&amp;lt;=MaxOrderQuantity"}&amp;gt;*&amp;lt; SO_Key={"=OTIF_Date &amp;gt;= Cust_GI_Date"}&amp;gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SO_Key)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 16:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/On-Time-and-In-Full-in-expression/m-p/1728128#M452135</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-15T16:17:00Z</dc:date>
    </item>
  </channel>
</rss>

