<?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: Running Median calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943726#M972700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could calculate this with a combination from range- und inter-record-functions like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangeavg(above(Age, 0, rowno(total)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe better with a inside-aggregation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangeavg(above(avg(Age), 0, rowno(total)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also postings like: &lt;A href="https://community.qlik.com/message/686439"&gt;What is the means by rangeavg(above(Sum([Billing Sales Amount_NETWR]),0,3))&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 11:03:40 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-09-14T11:03:40Z</dc:date>
    <item>
      <title>Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943725#M972699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help in calculating Running median in a Line chart. Requirement as below. For a given date, the expression should consider all the Age values till that date and calculate the median. For all the missing dates from min date to max date, previous date Median value should be repeated. Please let me know if you need more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 234px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="85"&gt;Date&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="85"&gt;BUG_ID&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Age&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;29-Jan-15&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;26663&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;4-Feb-15&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;23132&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;4-Feb-15&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;20975&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;24-Feb-15&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;20153&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;54&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;2-Mar-15&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;23091&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;2-Mar-15&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;15582&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;2-Mar-15&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;21035&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculation :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 29-Jan-15 -&amp;gt; Median is 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 4-Feb-15 -&amp;gt; Median (4,8,31) = 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 24-Feb-15 -&amp;gt; Median(4,8,31,54) = 19.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 2-Mar-15 -&amp;gt; Median(4,8,31,54,6,8,23) = 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 206px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="124"&gt;Date&lt;/TD&gt;&lt;TD class="xl66" width="82"&gt;Median Age&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;29-Jan-15&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;30-Jan-15&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;31-Jan-15&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;1-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;2-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;3-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;4-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;5-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;6-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;7-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;8-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;9-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;10-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;11-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;12-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;13-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;14-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;15-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;16-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;17-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;18-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;19-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;20-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;21-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;22-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;23-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;24-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;19.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;25-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;19.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;26-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;19.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;27-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;19.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;28-Feb-15&lt;/TD&gt;&lt;TD align="right"&gt;19.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;1-Mar-15&lt;/TD&gt;&lt;TD align="right"&gt;19.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;2-Mar-15&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 08:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943725#M972699</guid>
      <dc:creator />
      <dc:date>2015-09-14T08:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943726#M972700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could calculate this with a combination from range- und inter-record-functions like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangeavg(above(Age, 0, rowno(total)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe better with a inside-aggregation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangeavg(above(avg(Age), 0, rowno(total)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also postings like: &lt;A href="https://community.qlik.com/message/686439"&gt;What is the means by rangeavg(above(Sum([Billing Sales Amount_NETWR]),0,3))&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943726#M972700</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-14T11:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943727#M972701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would get RangeAvg, is there a function like RangeMedian?? I have been trying this for few hours now, but not able to get the exact result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943727#M972701</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-14T11:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943728#M972703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if this is excactly what you are looking for but by these example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangefractile (0.5, above(sum(x),-1,3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;explained the help it would be the median for the last three sum-results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943728#M972703</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-14T11:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943729#M972705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌ mentioned, I need Median, not Average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943729#M972705</guid>
      <dc:creator />
      <dc:date>2015-09-14T11:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943730#M972708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha you are right &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;, RangeFractile should do the job here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943730#M972708</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-14T11:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943731#M972710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I was working on this for hours, I am going to share it, even though there is a easier way to do it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(Date#(Date, 'D-MMM-YY')) as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; BUG_ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Age&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date, BUG_ID, Age&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;29-Jan-15, 26663, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4-Feb-15, 23132, 8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4-Feb-15, 20975, 31&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;24-Feb-15, 20153, 54&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2-Mar-15, 23091, 6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2-Mar-15, 15582, 8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2-Mar-15, 21035, 23&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load min(Date) as minDate,&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Date) as maxDate&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Temp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join (Table)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date($(varMinDate) + IterNo() - 1) as Date&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Concat(Age, ',') as ConcatAge&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Distinct Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ConcatAge&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(RowNo() = 1, ConcatAge, If(Len(Trim(ConcatAge)) = 0, Peek(ConcatAge), ConcatAge &amp;amp; ',' &amp;amp; Peek(ConcatAge))) as ConcatAge&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Temp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(ConcatAge, ',') as ConcatAge&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Temp1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NewTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Count = 1, SubField(ConcatAge, ',', 1), If(Odd(Count), SubField(ConcatAge, ',', Ceil(Count/2)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Num#(SubField(ConcatAge, ',', (Count/2)), '##') + Num#(SubField(ConcatAge, ',', ((Count/2) + 1)), '##'))/2)) as Median;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Len(KeepChar(ConcatAge, ',')) + 1 as Count;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Concat(ConcatAge, ',', ConcatAge) as ConcatAge&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Temp2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Tables Temp, Temp1, Temp2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98825_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943731#M972710</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-14T11:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943732#M972712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t97:&lt;/P&gt;&lt;P&gt;LOAD date#(xDate,'DD-MMM-YY') as xDate,BUG_ID,Age Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xDate,BUG_ID,Age&lt;/P&gt;&lt;P&gt;29-Jan-15,26663,4&lt;/P&gt;&lt;P&gt;4-Feb-15,23132,8&lt;/P&gt;&lt;P&gt;4-Feb-15,20975,31&lt;/P&gt;&lt;P&gt;24-Feb-15,20153,54&lt;/P&gt;&lt;P&gt;2-Mar-15,23091,6&lt;/P&gt;&lt;P&gt;2-Mar-15,15582,8&lt;/P&gt;&lt;P&gt;2-Mar-15,21035,23&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;t96:&lt;/P&gt;&lt;P&gt;LOAD xDate,Age,if (isnull(peek('x'))=0,Age &amp;amp;','&amp;amp;peek('x'),Age)&amp;nbsp; as x Resident t97 order by xDate asc;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;t95:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; xDate,&amp;nbsp; minstring(x)&amp;nbsp; as x&amp;nbsp;&amp;nbsp; Resident t96&amp;nbsp; Group by xDate Order by xDate Asc,x desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;t94:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; xDate,&amp;nbsp; SubField(x,',')&amp;nbsp; as x&amp;nbsp;&amp;nbsp; Resident t95&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;t93:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; xDate,&amp;nbsp; median(x) as x&amp;nbsp;&amp;nbsp; Resident t94 Group by xDate ;&lt;/P&gt;&lt;P&gt;drop Table t97,t96,t95,t94;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 12:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943732#M972712</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-14T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943733#M972713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;try this,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Median function in the script is not working as required. In front end when you do the selection on date median(Age) is working fine, but this will not be a good solution, so I followed below method&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD *,date(Date#(Date,'DD-MMM-YYYY'),'DD-MMM-YYYY') as DATE Inline [&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Date, BUG_ID, Age&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;29-Jan-15, 26663, 4&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;4-Feb-15, 23132, 8&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;4-Feb-15, 20975, 31&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;24-Feb-15, 20153, 54&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;2-Mar-15, 23091, 6&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;2-Mar-15, 15582, 8&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;2-Mar-15, 21035, 23 ];&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;for i=1 to FieldValueCount('DATE')&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;let vDate = FieldValue('DATE',$(i));&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Median:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD Distinct&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Median(Age) as Median1,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;num(Date#('$(vDate)','DD-MMM-YYYY')) as DATE_NEW&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Resident Data&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;where DATE&amp;lt;= Date#('$(vDate)','DD-MMM-YYYY');&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;NEXT&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;MaxMin:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD max(DATE_NEW) as MaxDate,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;min(DATE_NEW) as MinDate&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Resident Median;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;let vMaxDate = Peek('MaxDate',0,'MaxMin');&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;//let vMinDate = Peek('MinDate',0,'MaxMin');&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Join (Median)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD distinct DATE_NEW + IterNo()-1 as DATE_NEW&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Resident Median&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;While DATE_NEW + IterNo()-1 &amp;lt;= '$(vMaxDate)';&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Final:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD date(DATE_NEW,'DD-MMM-YYYY') as DATE,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if( rowno()=1,Median1,if(IsNull(Median1),Peek('Median'),Median1)) as Median&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Resident Median&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Order by DATE_NEW asc;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;DROP Table Median;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 14:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943733#M972713</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-09-14T14:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943734#M972714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/57428"&gt;Kush141087&lt;/A&gt;‌ ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have simplified the table for the purpose of explanation. Actual table has other fields like Project, Application etc using which user will slice the data. I am afraid that I cannot precalculate the median at script level. This needs to be done in the presentation layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;Marcus_Sommer&lt;/A&gt;‌ suggested didn't work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌, Please let me know the easier way you were mentioning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 05:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943734#M972714</guid>
      <dc:creator />
      <dc:date>2015-09-15T05:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943735#M972715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/202065"&gt;kumar_ilb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be possible to calculate the Median at script level. On presentation layer it will be more complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the sample data with other fields also?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 05:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943735#M972715</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-09-15T05:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943736#M972716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached sample data and expected result set. Let me know if you need more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 07:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943736#M972716</guid>
      <dc:creator />
      <dc:date>2015-09-15T07:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943737#M972717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a front end solution. See if this is useful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98960_Capture.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;STRONG&gt;=If(Count({&amp;lt;Date = &amp;gt;}TOTAL &amp;lt;Date&amp;gt; Date) = RowNo(), RangeFractile(0.50, Above(TOTAL Only({&amp;lt;Date = &amp;gt;} Age), 0, RowNo(TOTAL))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions: &lt;STRONG&gt;Date and BUG_ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Note: Used BUG_ID to create a unique list of Age for each row and then hid the dimension from the presentation tab. If in your application you will have another dimension which makes Age unique for each row, you will probably need to add that to your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the qvw for you to review.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 07:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943737#M972717</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-15T07:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943738#M972718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without selection it is working the way you want, still need to figure it out after selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD PROJECT_ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPLICATION, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSION, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BUD_ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIND_DATE, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSE_DATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSE_DATE - FIND_DATE as Age &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[FD SampleData.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load min(FIND_DATE) as minDate,&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(CLOSE_DATE) as maxDate&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Temp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MasterCalendar: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date($(varMinDate) + IterNo() - 1) as CLOSE_DATE&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;CLOSED_DATE&lt;/STRONG&gt;&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;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;BUD_ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Count({&amp;lt;CLOSE_DATE = &amp;gt;}TOTAL &amp;lt;CLOSE_DATE&amp;gt; CLOSE_DATE) = RowNo(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(RangeFractile(0.50, Above(TOTAL Only({&amp;lt;CLOSE_DATE = &amp;gt;} Age), 0, RowNo(TOTAL)))) = 0, 0.0000000001,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeFractile(0.50, Above(TOTAL Only({&amp;lt;CLOSE_DATE = &amp;gt;} Age), 0, RowNo(TOTAL)))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98961_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 07:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943738#M972718</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-15T07:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943739#M972719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go. Seems to be working the way you want, but I leave it for you to do the final testing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same Script as Above. Dimension remains the same. Only the expression changes:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Count({&amp;lt;CLOSE_DATE = &lt;SPAN style="color: #ff0000;"&gt;, PROJECT_ID =&lt;/SPAN&gt; &amp;gt;}TOTAL &amp;lt;CLOSE_DATE&amp;gt; CLOSE_DATE) = RowNo(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(RangeFractile(0.50, Above(TOTAL Only({&amp;lt;CLOSE_DATE = &amp;gt;} Age), 0, RowNo(TOTAL)))) = 0, 0.0000000001,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeFractile(0.50, Above(TOTAL Only({&amp;lt;CLOSE_DATE = &amp;gt;} Age), 0, RowNo(TOTAL)))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot after Selection:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="98962" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98962_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 08:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943739#M972719</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-15T08:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running Median calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943740#M972720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a new Date table with two columns Date_FD and DateKey. Date_FD contains dates from minimum CLOSE_DATE to maximum. For each Date_FD, DateKey will contain dates from minimum CLOSE_DATE to the Date_FD value. Below is the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In line chart, used Date_FD as dimension and Median(Age) as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14431210689904410 jive_text_macro" jivemacro_uid="_14431210689904410"&gt;
&lt;P&gt;DATA:&lt;/P&gt;
&lt;P&gt;LOAD PROJECT_ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPLICATION,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSION,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BUD_ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIND_DATE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSE_DATE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSE_DATE as DateKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSE_DATE - FIND_DATE as Age&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[FD SampleData.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MAX_MIN_TEMP:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(CLOSE_DATE) as MIN_DATE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(CLOSE_DATE) as MAX_DATE&lt;/P&gt;
&lt;P&gt;Resident DATA;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vMinDate = Num(Peek('MIN_DATE'));&lt;/P&gt;
&lt;P&gt;LET vMaxDate = Num(Peek('MAX_DATE'));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i=$(vMinDate) to $(vMaxDate)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FD_CALENDAR:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($(i)) as Date_FD,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($(vMinDate)+RecNo()-1) as DateKey&lt;/P&gt;
&lt;P&gt;AutoGenerate $(i)-$(vMinDate)+1;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NEXT&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table MAX_MIN_TEMP;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 18:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Median-calculation/m-p/943740#M972720</guid>
      <dc:creator />
      <dc:date>2015-09-24T18:58:17Z</dc:date>
    </item>
  </channel>
</rss>

