<?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: Count the number of records with a specific Fractile value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-the-number-of-records-with-a-specific-Fractile-value/m-p/1287080#M402897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this appears to work perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks so much for your speedy answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fraser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Mar 2017 16:26:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-14T16:26:25Z</dc:date>
    <item>
      <title>Count the number of records with a specific Fractile value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-number-of-records-with-a-specific-Fractile-value/m-p/1287077#M402894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello clever folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having some trouble with a formula to know the exact number of records that have a specific fractile() value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test_data:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;&amp;nbsp; order, tat&lt;/P&gt;&lt;P&gt;&amp;nbsp; A100, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; A101, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; A103, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; A104, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; A105, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp; A106, 5&lt;/P&gt;&lt;P&gt;&amp;nbsp; A107, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; A108, 7&lt;/P&gt;&lt;P&gt;&amp;nbsp; A109, 6&lt;/P&gt;&lt;P&gt;&amp;nbsp; A110, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; A111, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; A112, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp; A113, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i now in a text box have the formula &lt;SPAN style="color: #0000ff;"&gt;ROUND&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;FRACTILE&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;tat&lt;/SPAN&gt;,0.9)) I will get a value of 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to know is how many orders belong to that value.&amp;nbsp; This should be 12 (I can do this in Excel to validate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying things like &lt;SPAN style="color: #0000ff;"&gt;COUNT&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;AGGR&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;ROUND&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;FRACTILE&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;tat&lt;/SPAN&gt;,0.9)),order)), but that is only giving me 13, the total number of records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any one have a good tip for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fraser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-number-of-records-with-a-specific-Fractile-value/m-p/1287077#M402894</guid>
      <dc:creator />
      <dc:date>2017-03-14T15:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of records with a specific Fractile value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-number-of-records-with-a-specific-Fractile-value/m-p/1287078#M402895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on the above sample you expect to see 12? or is the 12 for your actual sample? May be you need this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Round(Fractile(TOTAL tat, 0.9)) &amp;gt;= tat, 1, 0), order))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 16:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-number-of-records-with-a-specific-Fractile-value/m-p/1287078#M402895</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-14T16:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of records with a specific Fractile value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-number-of-records-with-a-specific-Fractile-value/m-p/1287079#M402896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, missed the if statement... try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If(Round(Fractile(TOTAL tat, 0.9)) &amp;gt;= tat, 1, 0), order))&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;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/156265_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 16:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-number-of-records-with-a-specific-Fractile-value/m-p/1287079#M402896</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-14T16:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of records with a specific Fractile value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-number-of-records-with-a-specific-Fractile-value/m-p/1287080#M402897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this appears to work perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks so much for your speedy answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fraser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 16:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-number-of-records-with-a-specific-Fractile-value/m-p/1287080#M402897</guid>
      <dc:creator />
      <dc:date>2017-03-14T16:26:25Z</dc:date>
    </item>
  </channel>
</rss>

