<?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: Estimated completion date expression in front end in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Estimated-completion-date-expression-in-front-end/m-p/1193741#M385377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Oleg.&amp;nbsp; I am trying to avoid calculating the daily pace in the Calendar since I will allow dynamic selections that will change which date these paces become available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, Rangesum(Above( ) ) might be the pieces I was missing in my formulas.&amp;nbsp; I'll give those a read - thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 19:19:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-12T19:19:39Z</dc:date>
    <item>
      <title>Estimated completion date expression in front end</title>
      <link>https://community.qlik.com/t5/QlikView/Estimated-completion-date-expression-in-front-end/m-p/1193739#M385375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Input variable&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Value&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;vNumberOfSteps&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;vStartDate&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/19/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Pace&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Pace Available on Date&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;120&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/17/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;40&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/22/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/27/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want be able to input different values of vNumberOfSteps, and input different vStartDates.&amp;nbsp; Different paces are available at different start dates (chart 2).&amp;nbsp; Unfortunately, the values in chart 2 are derived as expressions in a straight table, because I have filters that can change their values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am looking to calculate, is the estimated end date for 1500 steps, if it starts on 10/19/2016, and the paces don't become available until the specified dates (see calculations below).&amp;nbsp; Any ideas how to calculate this all in the front end?&amp;nbsp; I can create a data island in the backend with all future dates if needed, but I don't want to associate pace or start date data to those dates in the script because I want filters to change them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10/17/2016: 0&lt;/P&gt;&lt;P&gt;10/18/2016: 0&lt;/P&gt;&lt;P&gt;10/19/2016: 120&lt;/P&gt;&lt;P&gt;10/20/2016: 240&lt;/P&gt;&lt;P&gt;10/21/2016: 360&lt;/P&gt;&lt;P&gt;10/22/2016: 520 (360 + 120 + 40)&lt;/P&gt;&lt;P&gt;10/23/2016: 680&lt;/P&gt;&lt;P&gt;10/24/2016: 840&lt;/P&gt;&lt;P&gt;10/25/2016: 1000&lt;/P&gt;&lt;P&gt;10/26/2016: 1160&lt;/P&gt;&lt;P&gt;10/27/2016: 1345 (1160 + 120 + 40 + 25)&lt;/P&gt;&lt;P&gt;10/28/2016: 1530 (Complete because over 1500)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I really care to see is 10/28/2016, it can be in a chart or in a text object, I am trying to avoid reloading the document to get this number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 17:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Estimated-completion-date-expression-in-front-end/m-p/1193739#M385375</guid>
      <dc:creator />
      <dc:date>2016-10-12T17:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Estimated completion date expression in front end</title>
      <link>https://community.qlik.com/t5/QlikView/Estimated-completion-date-expression-in-front-end/m-p/1193740#M385376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd suggest creating a Calendar with a separate row per day and calculate the daily Pace there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, you should be able to use the AGGR() function, in combination with Rangesum() and Above(), to calculate the cumulative balance of steps. Something along the following lines (can't guarantee 100% syntax accuracy):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MIN(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Rangesum( Above(sum( {&amp;lt;Date={"&amp;gt;=$(vStartDate)"}&amp;gt;}&amp;nbsp; DailyPace), 0 9999) &amp;gt;= $(vNumberOfSteps), Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Date)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Learn advanced development techniques for QlikView and Qlik Sense in my book &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=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 18:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Estimated-completion-date-expression-in-front-end/m-p/1193740#M385376</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-12T18:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Estimated completion date expression in front end</title>
      <link>https://community.qlik.com/t5/QlikView/Estimated-completion-date-expression-in-front-end/m-p/1193741#M385377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Oleg.&amp;nbsp; I am trying to avoid calculating the daily pace in the Calendar since I will allow dynamic selections that will change which date these paces become available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, Rangesum(Above( ) ) might be the pieces I was missing in my formulas.&amp;nbsp; I'll give those a read - thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 19:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Estimated-completion-date-expression-in-front-end/m-p/1193741#M385377</guid>
      <dc:creator />
      <dc:date>2016-10-12T19:19:39Z</dc:date>
    </item>
  </channel>
</rss>

