<?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: Any Similar function in qlikview as percent_rank in SQL ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1572690#M741972</link>
    <description>Hey Hi ,&lt;BR /&gt;&lt;BR /&gt;Thank you for the prompt reply.&lt;BR /&gt;is there any way we can do it in expression .&lt;BR /&gt;&lt;BR /&gt;i have to implement something like the below logic which is in sql into Qlikview Expression:&lt;BR /&gt;(PERCENT_RANK() over(partition by year,Flag,Value order by Dim_Value asc))</description>
    <pubDate>Wed, 24 Apr 2019 12:18:27 GMT</pubDate>
    <dc:creator>aniketsr</dc:creator>
    <dc:date>2019-04-24T12:18:27Z</dc:date>
    <item>
      <title>Any Similar function in qlikview as percent_rank in SQL ?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1571659#M741970</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Similar function in qlikview as percent_rank in SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1571659#M741970</guid>
      <dc:creator>aniketsr</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Any Similar function in qlikview as percent_rank in SQL ?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1571663#M741971</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Try this:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Temp:
LOAD * INLINE [
Customer, Sales
A, 170
B, 110
C, 120
];

Sales_sum:

LOAD sum(Sales) as Sum_Sales

RESIDENT Temp;

LET vSales_Sum = PEEK('Sum_Sales',0,'Sales_sum');

Drop table Sales_sum;

Data:
LOAD Customer,
&amp;nbsp; Sales,
&amp;nbsp; AutoNumber(Sales/$(vSales_Sum)) as Rank,
Num(Sales/$(vSales_Sum), '#,##0.00%') as %Sales_Rank
Resident Temp

Order By Sales&amp;nbsp;desc;

Drop table Temp;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Apr 2019 10:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1571663#M741971</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2019-04-22T10:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Any Similar function in qlikview as percent_rank in SQL ?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1572690#M741972</link>
      <description>Hey Hi ,&lt;BR /&gt;&lt;BR /&gt;Thank you for the prompt reply.&lt;BR /&gt;is there any way we can do it in expression .&lt;BR /&gt;&lt;BR /&gt;i have to implement something like the below logic which is in sql into Qlikview Expression:&lt;BR /&gt;(PERCENT_RANK() over(partition by year,Flag,Value order by Dim_Value asc))</description>
      <pubDate>Wed, 24 Apr 2019 12:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1572690#M741972</guid>
      <dc:creator>aniketsr</dc:creator>
      <dc:date>2019-04-24T12:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Any Similar function in qlikview as percent_rank in SQL ?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1573028#M741973</link>
      <description>&lt;P&gt;can u send a sample data and your'e output required out of it.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;SPAN&gt;(PERCENT_RANK() over(partition by year,Flag,Value order by Dim_Value asc))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Above can be written-ed&amp;nbsp;something like this.&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-main"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-21 lia-quilt-column-right lia-quilt-column-main-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;DIV&gt;&lt;FONT color="#99CC00"&gt;Load Key column,&amp;nbsp; Rank% as&amp;nbsp; Over Resident Table_Name Group by&amp;nbsp;&lt;SPAN&gt;year,Flag,Value order by&amp;nbsp;Dim_Value asc;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-footer"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Apr 2019 05:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1573028#M741973</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2019-04-25T05:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Any Similar function in qlikview as percent_rank in SQL ?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1576927#M741974</link>
      <description>&lt;P&gt;Attached is the QVD with desired output :&lt;/P&gt;&lt;P&gt;We have the percentile value coming from database using :&lt;BR /&gt;(PERCENT_RANK() over(partition by ID order by Value asc))&lt;/P&gt;&lt;P&gt;We have to calculate percentile in expression. but as of now the percentile is calculated in database.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 12:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1576927#M741974</guid>
      <dc:creator>aniketsr</dc:creator>
      <dc:date>2019-05-06T12:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Any Similar function in qlikview as percent_rank in SQL ?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1576935#M741975</link>
      <description>&lt;P&gt;May be something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(10/(Count(TOTAL ID)-1)) * (Rank(-Sum(Value))-1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 717px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11488i32C0B0AE8182207A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 13:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1576935#M741975</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-06T13:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Any Similar function in qlikview as percent_rank in SQL ?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1578193#M741976</link>
      <description>Hi Sunny ,&lt;BR /&gt;&lt;BR /&gt;Thanks for your guidance i would like to understand the significance of -Sum(Value) (why did you negate it ) and then again -1 while calculating rank .&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Aniket</description>
      <pubDate>Thu, 09 May 2019 06:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1578193#M741976</guid>
      <dc:creator>aniketsr</dc:creator>
      <dc:date>2019-05-09T06:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Any Similar function in qlikview as percent_rank in SQL ?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1578352#M741977</link>
      <description>&lt;P&gt;It is used inside the Rank() function.... Rank assigns 1 to the biggest number... and I was trying to get 1 for the lowest number... in order to do that you can multiply your number with -1&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 10:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-Similar-function-in-qlikview-as-percent-rank-in-SQL/m-p/1578352#M741977</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-09T10:38:35Z</dc:date>
    </item>
  </channel>
</rss>

