<?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: Percentile in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140824#M907302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached it now... I wanted to attach it earlier, but couldn't do it because of very slow internet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2016 12:38:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-21T12:38:48Z</dc:date>
    <item>
      <title>Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140820#M907298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if anyone could help please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a Qlik View file which calculates the Percentile of the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an Excel spreadsheet which shows the Percentile formulas.&amp;nbsp; Basically if you filter on the Reference the Formula calculates what Percentage each rows value is against the overall for the year so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like Qlik View to work out this calculation for me, then I can create some buttons which will allow me to show 5%, 95% then everything in between i.e. 5% to 95%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone can advise me the best way to approach this I would much appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140820#M907298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140821#M907299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&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 Ref, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date#(Month, 'MMMM')) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&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;[Test Data Percentile Result v2.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&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(Ref = Peek('Ref'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Peek('Cum2') &amp;gt; 1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Value = Previous(Value), RangeSum(Peek('Cum')), RangeSum(Peek('Cum2'),Peek('Cum'))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Value = Previous(Value), Peek('Cum'), RangeSum(Peek('Cum'), 1))), 0) as Cum;&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(Ref = Peek('Ref'), If(Value = Previous(Value), RangeSum(Peek('Cum2'), 1), 1), 1) as Cum2&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;Order By Ref, Value, Month;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join (FinalTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Ref,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Max(Cum) as Div&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident FinalTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Ref;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalFinalTable:&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; Floor(Cum/Div, 0.001) as Percentile&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident FinalTable;&lt;/STRONG&gt;&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/128579_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 04:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140821#M907299</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-21T04:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140822#M907300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway you could send me the Qlik View file as I am struggling to replicate it on mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 11:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140822#M907300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-21T11:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140823#M907301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample app attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 12:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140823#M907301</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-21T12:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140824#M907302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached it now... I wanted to attach it earlier, but couldn't do it because of very slow internet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 12:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140824#M907302</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-21T12:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140825#M907303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I'm missing something but I don't appear to have an attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 12:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140825#M907303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-21T12:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140826#M907304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open this link: &lt;A href="https://community.qlik.com/message/1066777"&gt;Re: Percentile&lt;/A&gt; and you should see the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 21:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140826#M907304</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-21T21:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140827#M907305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's great, and has saved me a lot of work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Wendy&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 11:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140827#M907305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-22T11:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140828#M907306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now trying to input the percentile solution into my data rather than the test data I sent to you and I am having some difficulty.&amp;nbsp; The reason being is my value in the test data is made up with the following expression in my Straight chart. This expression gives me the Overall Average Amount (= Value in the Test Data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how I could put this expression into my Script so that I could just call it Overall then it would make my calculation for the solution you provided me with much easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DocType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= {'Invoice'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[L Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DocType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= {'Invoice'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Pi Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DocType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= {'Invoice'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Pa Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DocType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= {'Invoice'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Other Costs]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)))&lt;BR /&gt;-(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DocType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= {'[Credit]'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[L Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DocType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= {'[Credit]'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Pi Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DocType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= {'[Credit]'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Pa Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DocType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= {'[Credit]'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[O Costs]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))))&lt;BR /&gt; /(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 11:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140828#M907306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-01T11:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140829#M907307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to sort the previous expression by putting the following into my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice Table:&lt;/P&gt;&lt;P&gt;[L Amount]+[Pi Amount]+[Pa Amount]+[Other Costs] as Overall&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Credit Table:&lt;/P&gt;&lt;P&gt;[L Amount]+[Pi Amount]+[Pa Amount]+[O Costs] as Overall,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have then used my straight table to divide by the overall Count of Reference to give my Overall Average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am still having some issues with the Percentile table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have joined my Invoice Table to my Credit Table and created a&amp;nbsp; [Doc Type] which is either Invoice or Credit.&amp;nbsp; How do I now take off my credits from my invoices in the script so I can work out the Overall Average (which would be the Value in my original test data).&amp;nbsp; The expression I have used to do this in the straight table is &lt;/P&gt;&lt;P&gt;(sum ({$&amp;lt;DocType= {'InvoiceID'}&amp;gt;}Overall)- sum ({$&amp;lt;DocType= {'[Credit ID]'}&amp;gt;}Overall)) / (Sum (Count))&lt;/P&gt;&lt;P&gt;and this is the correct figure I am looking for. I'm just not sure how I convert this into the script instead of the Value which you have in the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the test data I provided I gave you the months.&amp;nbsp; However in my actual data I am working with actual days which my Master Calendar then converts to the months.&amp;nbsp; The Script that you used in the example does not recognise my Month as the Master Calendar tab is after the Load Script. How do I convert my dates into months so that the script example works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you could give would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 14:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1140829#M907307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-01T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Percentile/m-p/1620881#M907308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what changes has to be done, if i need the percentile of each value regardless of the Ref i.e. A and B.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 07:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentile/m-p/1620881#M907308</guid>
      <dc:creator>abhijith28</dc:creator>
      <dc:date>2019-09-06T07:41:05Z</dc:date>
    </item>
  </channel>
</rss>

