<?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: Quartile metric calculation using set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608960#M1117955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 0.75,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employee&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Q2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 0.5 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;And&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 0.75,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employee&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Q3 and Q4 same as these with the factors changed.&amp;nbsp; This gives the output your after.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It is also customisable so that if your dimensions changes, you can modify the functions to reflect in the appropriate places.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If you introduce other dimensions particularly if they reduce the lowest level below employee may need to play with the functions a little.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 02:33:58 GMT</pubDate>
    <dc:creator>michael_anthony</dc:creator>
    <dc:date>2014-02-07T02:33:58Z</dc:date>
    <item>
      <title>Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608952#M1117947</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;I need to create a pivot table by grouping the metric (sales) into 4 groups (Quartiles).&lt;/P&gt;&lt;P&gt;Q1 - Sum of all sales where Sales &amp;gt; (Max(Sales)*0.75)&lt;/P&gt;&lt;P&gt;Q2 - Sum of all sales where Sales &amp;gt;= (Max(Sales)*0.5) and Sales &amp;lt; (Max(Sales)*0.75)&lt;/P&gt;&lt;P&gt;Q3 - Sum of all sales where Sales &amp;gt;= (Max(Sales)*0.25) and Sales &amp;lt; (Max(Sales)*0.5)&lt;/P&gt;&lt;P&gt;Q4 - Sum of all sales where Sales &amp;lt; (Max(Sales)*0.25)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g: For NAM and Dir combination Max(Sales) is 15 and Max(Sales)*0.75 is 11.25&lt;/P&gt;&lt;P&gt;Q1= 15+12 =27 &lt;/P&gt;&lt;P&gt;Q2= 10&lt;/P&gt;&lt;P&gt;Q3=0&lt;/P&gt;&lt;P&gt;Q4=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data set&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Region&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Title&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Employee&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;NAM&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;Dir&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;E1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;NAM&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;Dir&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;E2&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;"&gt;NAM&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;Dir&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;E3&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl74" height="20" style="border-top: none;"&gt;NAM&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;"&gt;VP&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;"&gt;E4&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;NAM&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;VP&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;E5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;NAM&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;VP&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;E6&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;"&gt;NAM&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;VP&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;E7&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl74" height="20" style="border-top: none;"&gt;ASIA&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;"&gt;VP&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;"&gt;E8&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;ASIA&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;VP&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;E9&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;"&gt;ASIA&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;VP&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;E10&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="384"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="21" width="64"&gt;Region&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Title&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Q1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Q2&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Q3&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Q4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;NAM&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Dir&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;27&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;NAM&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;VP&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;29&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;ASIA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;VP&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried below expression but does not produce correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1= sum ({$&amp;lt;Sales={'&amp;gt;= $(#=max(Sales)*0.75)'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Q2= sum ({$&amp;lt;Sales={'&amp;lt; $(#=max(Sales)*0.75) &amp;gt;= $(#=max(Sales)*0.5) '}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Q3= sum ({$&amp;lt;Sales={'&amp;lt; $(#=max(Sales)*0.5) &amp;gt;= $(#=max(Sales)*0.25) '}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Q4= sum ({$&amp;lt;Sales={'&amp;lt; $(#=max(Sales)*0.25)'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 04:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608952#M1117947</guid>
      <dc:creator />
      <dc:date>2014-02-05T04:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608953#M1117948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check enclosed file.&lt;/P&gt;&lt;P&gt;My output is slightly different...&lt;/P&gt;&lt;P&gt;Let me know whether it works f&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 07:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608953#M1117948</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-05T07:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608954#M1117949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you can use set analysis for this because the set analysis condition is only calculated once for the whole dataset, not per dimension. This means that Max(Sales) inside a set analysis will get the max (=16) for the whole dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to calculate those max values beforehand in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Teemu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 12:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608954#M1117949</guid>
      <dc:creator>teempi</dc:creator>
      <dc:date>2014-02-05T12:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608955#M1117950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Teemu,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks for replying. Is there any other way to achieve this e.g. aggr(), fractlie()?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 14:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608955#M1117950</guid>
      <dc:creator />
      <dc:date>2014-02-05T14:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608956#M1117951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;appreciate your help. But the xpressions does not appear to work for the reason Teemu has mentioned. I changed the input numbers slightly and reloaded qvw.&amp;nbsp; Check the output. They are wrong.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/52645_screenshot.PNG.png" style="width: 620px; height: 224px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 14:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608956#M1117951</guid>
      <dc:creator />
      <dc:date>2014-02-05T14:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608957#M1117952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may be able to use some sort of If statement with aggr etc. but I'm not sure. And personally I hate If statements because they can be very slow. If the row count is not an issue I would probably calculate those dimension specific max values in the script. It would make the expressions a bit simpler too I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I can't provide you with an example at this time. I'll see if I have time later today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Teemu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 07:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608957#M1117952</guid>
      <dc:creator>teempi</dc:creator>
      <dc:date>2014-02-06T07:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608958#M1117953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Teemu, It is efficient to do it in Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other dirty way is to create Variables, But you will end up with 4 * 5 * 3 variables&lt;/P&gt;&lt;P&gt;Assuming 4 regions, 5 Titles and 3 Quartiles. Use those variables in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is interesting to know if some one solves this. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 17:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608958#M1117953</guid>
      <dc:creator />
      <dc:date>2014-02-06T17:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608959#M1117954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sudheer, Teemu,&lt;/P&gt;&lt;P&gt;Script may not be an option as I have 30 other dimensions that can change the combination. For e.g. Month, Year, Dept, Region etc.&amp;nbsp; User can make selection on any of these dimensions and calculation needs to reflect the selections.&lt;/P&gt;&lt;P&gt;I shared a simplified data set for illustrating the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 18:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608959#M1117954</guid>
      <dc:creator />
      <dc:date>2014-02-06T18:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608960#M1117955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 0.75,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employee&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Q2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 0.5 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;And&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 0.75,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employee&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Q3 and Q4 same as these with the factors changed.&amp;nbsp; This gives the output your after.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It is also customisable so that if your dimensions changes, you can modify the functions to reflect in the appropriate places.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If you introduce other dimensions particularly if they reduce the lowest level below employee may need to play with the functions a little.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 02:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608960#M1117955</guid>
      <dc:creator>michael_anthony</dc:creator>
      <dc:date>2014-02-07T02:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608961#M1117956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bingo!! that works perfectly! &lt;/P&gt;&lt;P&gt;Thanks Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 02:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608961#M1117956</guid>
      <dc:creator />
      <dc:date>2014-02-07T02:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608962#M1117957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a useful addition as well: Decile Analysis in QlikView: &lt;A href="http://www.qlikfix.com/2010/10/08/decile-analysis/" title="http://www.qlikfix.com/2010/10/08/decile-analysis/"&gt;Decile analysis » The Qlik Fix! The Qlik Fix!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(which can be easily changed to quartiles of course &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 11:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608962#M1117957</guid>
      <dc:creator>barryharmsen</dc:creator>
      <dc:date>2014-02-07T11:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608963#M1117958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Barry..thanks for the comment. I regularly read your blogs. I did try to use fractile to solve this requirement after going through your blog on decile analysis. But could not come-up&amp;nbsp; with the right expression. If you could provide the right expression that will be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 14:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608963#M1117958</guid>
      <dc:creator />
      <dc:date>2014-02-07T14:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608964#M1117959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been searching for the solution to a similar problem and could not figure out a way using set analysis since it does not seem to work with aggregates at the intermediate level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barry's solution works perfectly so thanks for that, the only modification I needed to make was to replace the variables with their aggregates since my data is at individual sales level rather than summary level as in his example. So instead of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="text-align: justify; color: #800080; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="text-align: justify; color: #339966; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;Profit &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="text-align: justify; color: #993366; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;fractile&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;TOTAL &lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;Profit&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify; color: #ff6600;"&gt;0.1&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify; color: #ff6600;"&gt;10...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify; color: #ff6600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: justify; color: #000000; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify; color: #ff6600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify; color: #ff6600;"&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="text-align: justify; color: #800080; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;(aggr(&lt;/SPAN&gt;&lt;SPAN style="text-align: justify; color: #339966; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;Profit, customer) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="text-align: justify; color: #993366; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;fractile&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;TOTAL aggr(&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;Profit&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;, customer) &lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify; color: #ff6600;"&gt;0.1&lt;/SPAN&gt;&lt;SPAN style="color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, Arial, sans-serif; font-size: 12.727272033691406px; text-align: justify; color: #ff6600;"&gt;10...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;Also need to point out that the OPs method, while I'm sure it could be useful for analysis, is not splitting the data into quartiles at all. For example If the data is right skewed by one high employee:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;E1 = 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;E2 = 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt; E3 = 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;E4 = 22&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: justify; font-size: 12.727272033691406px; font-family: Helvetica, Arial, sans-serif;"&gt;Then the first three employees would fall into quartile 1 by that definition (22 * 0.25 = 5.5), which is wrong. Using the fractile() method works though.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 09:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608964#M1117959</guid>
      <dc:creator />
      <dc:date>2014-02-20T09:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608965#M1117960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you found it useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 11:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608965#M1117960</guid>
      <dc:creator>barryharmsen</dc:creator>
      <dc:date>2014-02-20T11:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608966#M1117961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fractile appears to be a very useful function. Unfortunately, there is not enough documentation on the same.&amp;nbsp; I have gone through all discussions (listed below) on Fractile function in the forum, but could not understand how it works, what it does.&lt;/P&gt;&lt;P&gt;Can some explain Fractile in simple terms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/67578"&gt;http://community.qlik.com/thread/67578&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/36883" style="font-size: 10pt; line-height: 1.5em;"&gt;http://community.qlik.com/thread/36883&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikcommunity.qliktech.com/thread/107479" title="http://qlikcommunity.qliktech.com/thread/107479"&gt;Use of Fractile() | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 14:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608966#M1117961</guid>
      <dc:creator />
      <dc:date>2014-02-20T14:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608967#M1117962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fractile is essentially QlikView's term for percentiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're not familiar with these, they are typically used to split data into equal sized parts or work out how much of the data lies above / below a certain point. Percentiles lie between 0 and 100 since they are defined in percent, whereas fraciles lie between zero and one, so the 50th percentile and fractile 0.5 are equivalent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the 50th percentile (or 0.5th fracile) is the median and means that 50% of the data lies above and below that point. The 75th percentile (fractile 0.75) is the upper quartile and means that 75% of the data lies below this point and 25% lies above. The 100th percentile is the maximum value and the 0th percentile is the minimum. If you want to split the data into deciles (10 groups) the first group lies between fractile 0 and 0.1, the second group between fractile 0.1 and 0.2, and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use the function, simply enter &lt;EM&gt;&lt;STRONG&gt;fractile([variable], [fractile])&lt;/STRONG&gt;&lt;/EM&gt;, e.g. &lt;EM&gt;&lt;STRONG&gt;fractile(weight, 0.75)&lt;/STRONG&gt;&lt;/EM&gt; would give the upper quartile of the variable &lt;STRONG&gt;&lt;EM&gt;weight&lt;/EM&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest creating a file of 100+ rows of random sample data ranked in descending order to test this on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that there are different definitions for how percentiles work for variables falling on a boundary. I'm not sure how QlikView deals with these as I don't tend to use it for small datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to use the aggr() within the fractile() function if you're data is at a lower level than you want to analyse it on, for example to aggregate sales by employee before working out who are the best performers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 15:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608967#M1117962</guid>
      <dc:creator />
      <dc:date>2014-02-21T15:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Quartile metric calculation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608968#M1117963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Thanks for the detailed explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 15:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quartile-metric-calculation-using-set-analysis/m-p/608968#M1117963</guid>
      <dc:creator />
      <dc:date>2014-02-21T15:56:21Z</dc:date>
    </item>
  </channel>
</rss>

