<?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: Count Expression with Condition to Calculate On Time To Promise (Date Received - Promise Date &amp;amp;l in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1628841#M446305</link>
    <description>&lt;P&gt;Whats the issue you are getting with the below expression ?&amp;nbsp; Do attach a sample file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;= count( {&amp;lt; [PO Number]= { "=[PO Receipt Date] - [PO Promise Date] &amp;lt; 0" }&amp;nbsp; &amp;gt;}&amp;nbsp; &amp;nbsp;[PO Number] ) / count([PO Number])&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 03:56:05 GMT</pubDate>
    <dc:creator>qliksus</dc:creator>
    <dc:date>2019-09-27T03:56:05Z</dc:date>
    <item>
      <title>Count Expression with Condition to Calculate On Time To Promise (Date Received - Promise Date &lt; 0)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1624374#M445999</link>
      <description>&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;I can't seem to find a good answer to the below.&amp;nbsp; Here is the result that I'm looking for in a Pivot Chart:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/19314iD96BB53CE382F246/image-size/medium?v=1.0&amp;amp;px=-1" border="0" width="613" height="69" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/P&gt;&lt;P&gt;The dimensions I've added to my pivot chart are&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Supplier Name (Row)&lt;/LI&gt;&lt;LI&gt;PO Receipt Month (Column)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In my head here is how the calculation looks (which isn't working of course ad that's why I am here):&lt;/P&gt;&lt;P&gt;= count([PO Receipt Date] - [PO Promise Date] &amp;lt; 0) / count([PO Number])&lt;/P&gt;&lt;P&gt;What I'm looking to calculate right now is basically the following (# of lines received on time / total # of lines received).&lt;/P&gt;&lt;P&gt;Here's the breakdown&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To get the total # of lines received: I want the count of the total # of lines received that had a negative value for ([PO receipt date] - [PO Promise Date]).&lt;/LI&gt;&lt;LI&gt;I then want to get a count of total # of lines.&amp;nbsp; Right now I'm just using the PO Number which is counting exactly how many total lines were received in that month.&lt;/LI&gt;&lt;LI&gt;I do want to make sure that the Receipt Month will restrict and only show lines that are received however. I am assuming that this will do this as part of the dimension.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope this makes sense.&amp;nbsp; Looking at this to build a supplier scorecard in one of our apps.&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 19:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1624374#M445999</guid>
      <dc:creator>bradedgar</dc:creator>
      <dc:date>2019-09-16T19:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count Expression with Condition to Calculate On Time To Promise (Date Received - Promise Date &amp;l</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1624410#M446001</link>
      <description>The best way to do this is to do the calculation as you load the data, create a new field [PO Delta] by subtracting the fields as they are loaded. Then it is easy to count how many are &amp;lt; 0 in your expression.&lt;BR /&gt;Count({&amp;lt;[PO Delta]={"&amp;lt;0"}&amp;gt;}[PO Number])/count([PO Number])</description>
      <pubDate>Mon, 16 Sep 2019 23:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1624410#M446001</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-09-16T23:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count Expression with Condition to Calculate On Time To Promise (Date Received - Promise Date &amp;l</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1624417#M446005</link>
      <description>&lt;P&gt;Thanks Lisa.&lt;/P&gt;&lt;P&gt;I thought about doing the same but the app is built by our BI team on a qlikview server and I don’t have access to the load(runs in batch every 12 hours) . I had thought about doing that way as well.&lt;/P&gt;&lt;P&gt;Any other thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;brad&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 01:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1624417#M446005</guid>
      <dc:creator>bradedgar</dc:creator>
      <dc:date>2019-09-17T01:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count Expression with Condition to Calculate On Time To Promise (Date Received - Promise Date &amp;a</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1628803#M446299</link>
      <description>&lt;P&gt;Brad, you may want to consider attaching your QVW or an example one, as I think folks may need more details related to the data model etc. in order to potentially come up with other ideas here.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 20:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1628803#M446299</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-26T20:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count Expression with Condition to Calculate On Time To Promise (Date Received - Promise Date &amp;l</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1628841#M446305</link>
      <description>&lt;P&gt;Whats the issue you are getting with the below expression ?&amp;nbsp; Do attach a sample file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;= count( {&amp;lt; [PO Number]= { "=[PO Receipt Date] - [PO Promise Date] &amp;lt; 0" }&amp;nbsp; &amp;gt;}&amp;nbsp; &amp;nbsp;[PO Number] ) / count([PO Number])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 03:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Expression-with-Condition-to-Calculate-On-Time-To-Promise/m-p/1628841#M446305</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2019-09-27T03:56:05Z</dc:date>
    </item>
  </channel>
</rss>

