<?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 Problem sum(), if(), fractile() and set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-sum-if-fractile-and-set/m-p/242056#M92435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on a straight table with two dimension (one is called &lt;STRONG&gt;diagnose&lt;/STRONG&gt; and one &lt;STRONG&gt;urgency&lt;/STRONG&gt;). I calculated the fractile 0,75 of days of &lt;STRONG&gt;length of stay (LOFS)&lt;/STRONG&gt; for those two dimensions. This works. Now here's the problem. I would like to have the average of length of stay above the fractile of 0.75 and below the fractile 0,75. I tried&lt;/P&gt;&lt;P&gt;sum(if( &lt;STRONG&gt;LOFS&lt;/STRONG&gt;&amp;gt; fractile( total &lt;B&gt;LOFS&lt;/B&gt;, 0.75),&lt;B&gt;LOFS&lt;/B&gt;,0))&lt;/P&gt;&lt;P&gt;This formula is not working because now i'm just counting the LOFS that are above the &lt;B&gt;total&lt;/B&gt; fractile. I want the LOFS that are longer than the &lt;B&gt;fractile for each diagnose and urgency.&lt;/B&gt; I tried to use &amp;lt; diagnose, urgency&amp;gt; and without total, but nothing seems to work! &lt;B&gt;&lt;/B&gt;The underlying data is one line for each patient with in one column their diagnose, one column with urgency and in one column LOFS .&lt;/P&gt;&lt;P&gt;If somebody could help me, I would be very grateful!&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2011 12:37:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-09T12:37:19Z</dc:date>
    <item>
      <title>Problem sum(), if(), fractile() and set</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-sum-if-fractile-and-set/m-p/242056#M92435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on a straight table with two dimension (one is called &lt;STRONG&gt;diagnose&lt;/STRONG&gt; and one &lt;STRONG&gt;urgency&lt;/STRONG&gt;). I calculated the fractile 0,75 of days of &lt;STRONG&gt;length of stay (LOFS)&lt;/STRONG&gt; for those two dimensions. This works. Now here's the problem. I would like to have the average of length of stay above the fractile of 0.75 and below the fractile 0,75. I tried&lt;/P&gt;&lt;P&gt;sum(if( &lt;STRONG&gt;LOFS&lt;/STRONG&gt;&amp;gt; fractile( total &lt;B&gt;LOFS&lt;/B&gt;, 0.75),&lt;B&gt;LOFS&lt;/B&gt;,0))&lt;/P&gt;&lt;P&gt;This formula is not working because now i'm just counting the LOFS that are above the &lt;B&gt;total&lt;/B&gt; fractile. I want the LOFS that are longer than the &lt;B&gt;fractile for each diagnose and urgency.&lt;/B&gt; I tried to use &amp;lt; diagnose, urgency&amp;gt; and without total, but nothing seems to work! &lt;B&gt;&lt;/B&gt;The underlying data is one line for each patient with in one column their diagnose, one column with urgency and in one column LOFS .&lt;/P&gt;&lt;P&gt;If somebody could help me, I would be very grateful!&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 12:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-sum-if-fractile-and-set/m-p/242056#M92435</guid>
      <dc:creator />
      <dc:date>2011-03-09T12:37:19Z</dc:date>
    </item>
  </channel>
</rss>

