<?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 Fractile function - Not displaying correct results in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fractile-function-Not-displaying-correct-results-in-table/m-p/534551#M482725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13750987818706774" jivemacro_uid="_13750987818706774"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Avg({&amp;lt;[Service Active]={'Y'},[Vendor Type]-={'Test Vendor'}&amp;gt;} [Rate])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Avg({&amp;lt;[Service Active]={'Y'},[Vendor Type]-={'Test Vendor'},[Rate] ={"&amp;lt;=$(=fractile([Rate],.5))"} &amp;gt;} [Rate])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;I have a very basic table set up which displays the average rate of a range of services based on certain field names. The expression to calculate this is the first line of code and works fine.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;I want to do something similar for a subset of the data, i.e. all services whose rates are in the lower half of the range. I have a used the fractile function to do this and it generates the correct results on an individual basis. This is the second line of code. However with no filters set the full table generates the same results as the first which is incorrect. It also seems to exclude many results for which there is actual data and doesn’t apply the exclusions correctly (Service Active and Vendor Type).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Is the second expression set up incorrectly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 13:31:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-29T13:31:52Z</dc:date>
    <item>
      <title>Fractile function - Not displaying correct results in table</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-function-Not-displaying-correct-results-in-table/m-p/534551#M482725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13750987818706774" jivemacro_uid="_13750987818706774"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Avg({&amp;lt;[Service Active]={'Y'},[Vendor Type]-={'Test Vendor'}&amp;gt;} [Rate])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Avg({&amp;lt;[Service Active]={'Y'},[Vendor Type]-={'Test Vendor'},[Rate] ={"&amp;lt;=$(=fractile([Rate],.5))"} &amp;gt;} [Rate])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;I have a very basic table set up which displays the average rate of a range of services based on certain field names. The expression to calculate this is the first line of code and works fine.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;I want to do something similar for a subset of the data, i.e. all services whose rates are in the lower half of the range. I have a used the fractile function to do this and it generates the correct results on an individual basis. This is the second line of code. However with no filters set the full table generates the same results as the first which is incorrect. It also seems to exclude many results for which there is actual data and doesn’t apply the exclusions correctly (Service Active and Vendor Type).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Is the second expression set up incorrectly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 13:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-function-Not-displaying-correct-results-in-table/m-p/534551#M482725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-29T13:31:52Z</dc:date>
    </item>
  </channel>
</rss>

