<?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 of an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365160#M135891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, read the help, I can see why nodistinct might have worked.&amp;nbsp; I'll keep trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I can't share my file.&amp;nbsp; If it helps, the relevant data fields are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HomeID: Unique ID for each home in my sample&lt;/P&gt;&lt;P&gt;Month: Monthly timeline from Jan 08 to Dec 11&lt;/P&gt;&lt;P&gt;Year: Year from the above timeline&lt;/P&gt;&lt;P&gt;Effective beds: The number of beds in the home each month (very rarely changes)&lt;/P&gt;&lt;P&gt;Occupied beds: The number of beds occupied by patients in each home each month (changes but never exceeds effective beds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To recap, I'd like a chart of the 75th percentile of % occupation by home over time with an annual timeline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, massively grateful for the help so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2012 17:42:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-22T17:42:10Z</dc:date>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365152#M135883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Qlikview to analyse some data on the performance of a group of care homes over the last 50 months.&amp;nbsp; One of the key metrics I need to calculate and chart over time is the occupancy rate, which is done using the "Occupied beds" and "Effective beds" data fields as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum([Occupied beds]) / Sum([Effective beds])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, so simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do next is chart the 25th and 75th percentiles of occupancy over time.&amp;nbsp; I've been using the following but getting no results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Fractile (Sum([Occupied beds]) / Sum([Effective beds]), 0.75)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I think the issue is caused because the fractile function won't work when the value you want the percentile for is the result of an expression itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of working around this to create the charts I need?&amp;nbsp; I'm pretty new to Qlikview so could be missing something really obvious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 14:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365152#M135883</guid>
      <dc:creator />
      <dc:date>2012-03-22T14:38:11Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365153#M135884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable with your expression and then use the variable inside the fractile function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 14:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365153#M135884</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-03-22T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365154#M135885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip.&amp;nbsp; I thought that might be the answer.&amp;nbsp; I'm currently searching around qlikview trying to remember how to create variables.&amp;nbsp; Could you point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 14:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365154#M135885</guid>
      <dc:creator />
      <dc:date>2012-03-22T14:50:37Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365155#M135886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that Fractile is an aggregate statement and you cannot nest another aggregate statement (sum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fractile (Aggr(Sum([Occupied beds]) / Sum([Effective beds]), HomeID), 0.75)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where HomeID is the dimension on which you want to get the fractiles (change as appropriate for your application)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 15:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365155#M135886</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-03-22T15:47:40Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365156#M135887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, I'm massively grateful for your help and am now almost there I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data is monthly but this is an annual chart.&amp;nbsp; The syntax you suggested seems to work but the results only appear in my chart for the first year of the timeline (2008).&amp;nbsp; Do you have any idea why this may be happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 16:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365156#M135887</guid>
      <dc:creator />
      <dc:date>2012-03-22T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365157#M135888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Fractile (Aggr(Distinct Sum([Occupied beds]) / Sum([Effective beds]), HomeID), 0.75)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Fractile (Aggr(Nodistinct Sum([Occupied beds]) / Sum([Effective beds]), HomeID), 0.75)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 16:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365157#M135888</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-03-22T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365158#M135889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Interesting.&amp;nbsp; Distinct has no impact.&amp;nbsp; Nodistinct gives me the same result across the timeline (I'm pretty sure it should vary by year).&amp;nbsp; Out of interest, what do the distinct and nodistinct commands do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 16:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365158#M135889</guid>
      <dc:creator />
      <dc:date>2012-03-22T16:22:06Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365159#M135890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REad the help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;Listen, did you try adding Year to the aggregating function? Next to HomeID?&lt;/P&gt;&lt;P&gt;Otherwise post your application to we cna work on it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 16:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365159#M135890</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-03-22T16:24:42Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365160#M135891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, read the help, I can see why nodistinct might have worked.&amp;nbsp; I'll keep trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I can't share my file.&amp;nbsp; If it helps, the relevant data fields are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HomeID: Unique ID for each home in my sample&lt;/P&gt;&lt;P&gt;Month: Monthly timeline from Jan 08 to Dec 11&lt;/P&gt;&lt;P&gt;Year: Year from the above timeline&lt;/P&gt;&lt;P&gt;Effective beds: The number of beds in the home each month (very rarely changes)&lt;/P&gt;&lt;P&gt;Occupied beds: The number of beds occupied by patients in each home each month (changes but never exceeds effective beds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To recap, I'd like a chart of the 75th percentile of % occupation by home over time with an annual timeline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, massively grateful for the help so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 17:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365160#M135891</guid>
      <dc:creator />
      <dc:date>2012-03-22T17:42:10Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365161#M135892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Just used the following with success!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Fractile (aggr(nodistinct sum([Occupied beds])/sum([Effective beds]),[Site ref], [Year]),0.75)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 17:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365161#M135892</guid>
      <dc:creator />
      <dc:date>2012-03-22T17:54:08Z</dc:date>
    </item>
    <item>
      <title>Fractile of an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365162#M135893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! So you were aggregating in the wrong dimension. Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 08:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-of-an-expression/m-p/365162#M135893</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-03-23T08:09:12Z</dc:date>
    </item>
  </channel>
</rss>

