<?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: MEDIAN CALCULATION in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722701#M723149</link>
    <description>&lt;P&gt;There's no problem. Ask me your questions.&lt;/P&gt;&lt;P&gt;attached with no error, however I didn't understand your new need&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 18:26:41 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-06-26T18:26:41Z</dc:date>
    <item>
      <title>MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722299#M723142</link>
      <description>&lt;P&gt;Hi Dear all,&lt;/P&gt;&lt;P&gt;I need to calculate median (middle value) of the given data set under two Branches (MY00 &amp;amp; KW00). The aggr function given there wont get me the correct value. Kindly advise me what changes to be done in to the formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neville&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722299#M723142</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722389#M723143</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/15833"&gt;@nevilledhamsiri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you share the expected output (value) ?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 21:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722389#M723143</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-25T21:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722408#M723144</link>
      <description>&lt;P&gt;Dear Taoufiq,&lt;/P&gt;&lt;P&gt;I have attached a sample. Please look in to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neville&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 02:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722408#M723144</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-06-26T02:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722520#M723145</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/15833"&gt;@nevilledhamsiri&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;One solution on script :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:
LOAD * INLINE [
    F1, F2
    MY00,  1 
    MY00,  2 
    MY00,  11 
    MY00,  16 
    MY00,  25 
    MY00,  25 
    MY00,  28 
    MY00,  35 
    MY00,  71 
    MY00,  73 
    MY00,  77 
    MY00,  83 
    MY00,  93 
    MY00,  118 
    MY00,  144 
    MY00,  148 
    MY00,  165 
    MY00,  245 
    MY00,  288 
    MY00,  325 
    MY00,  338 
    MY00,  741 
    MY00,  815 
    MY00,  1 485 
    MY00,  2 275 
    MY00,  3 145 
    MY00,  3 656 
    MY00,  11 215 
    MY00,  35 325 
    MY00,  68 688 
    MY00,  129 959 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    MY00, 
    KW00, "1,00"
    KW00, "2,00"
    KW00, "7,00"
    KW00, "8,00"
    KW00, "16,00"
    KW00, "26,00"
    KW00, "27,00"
    KW00, "35,00"
    KW00, "37,00"
    KW00, "75,00"
    KW00, "81,00"
    KW00, "98,00"
    KW00, "112,00"
    KW00, "113,00"
    KW00, "121,00"
    KW00, "135,00"
    KW00, "185,00"
    KW00, "224,00"
    KW00, "225,00"
    KW00, "253,00"
    KW00, "265,00"
    KW00, "268,00"
    KW00, "334,00"
    KW00, "524,00"
    KW00, "561,00"
    KW00, "733,00"
    KW00, "765,00"
    KW00, "925,00"
    KW00, "935,00"
    KW00, "1 135,00"
    KW00, "1 247,00"
    KW00, "1 744,00"
    KW00, "2 719,00"
    KW00, "2 758,25"
    KW00, "3 925,00"
    KW00, "4 978,00"
    KW00, "5 788,00"
    KW00, "12 475,76"
    KW00, "13 227,00"
    KW00, "23 385,00"
    KW00, "28 833,00"
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
    KW00, 
];


left join 

load F1,median(F2) as median resident Data group by F1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 514px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36329i073CCB8492D225C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and on UI, juste I use Median() !&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 10:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722520#M723145</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-26T10:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722671#M723146</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Taoufiq,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm bit confused as to how the data loading is done. Load inline feature was used as you suggested which causes some errors. I have attached the file with your script modification &amp;amp; please see the error. Also wish to have clarifications on these issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should the Normal data loading of the file is necessary?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it only inline feature to be run as you noted?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How the zero values be renamed with just blank?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With our script modification, is there way of getting the desired out put with the help of&amp;nbsp; aggr function as I'm not that good in script writing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much for your kind help &amp;amp; guidance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Neville&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: I'm using a personnel edition which doesn't help me to view the qvd file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 16:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722671#M723146</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-06-26T16:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722683#M723147</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/15833"&gt;@nevilledhamsiri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the error in the script comes from omitting to add &lt;STRONG&gt;Data:&lt;/STRONG&gt; at the beginning.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;otherwise no need for inline&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;otherwise nulls can be ignored by &lt;STRONG&gt;where len(trim(Field))&amp;gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yes we can use aggr also&lt;/P&gt;&lt;P&gt;can you send the expected output from the new file&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 17:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722683#M723147</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-26T17:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722700#M723148</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Taoufiq,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you don't mind could you please copy your entire script on a note pad (both&amp;nbsp; source data &amp;amp; inline date) along with the formula applied to get the middle value as I am still getting an error. The file I loaded with&amp;nbsp; original source data &amp;amp; the inline data below it is attached. Hope I'm not troubling you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Neville&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 18:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722700#M723148</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-06-26T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722701#M723149</link>
      <description>&lt;P&gt;There's no problem. Ask me your questions.&lt;/P&gt;&lt;P&gt;attached with no error, however I didn't understand your new need&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 18:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722701#M723149</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-26T18:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722704#M723150</link>
      <description>&lt;P&gt;Cannot open your qvd as I work on personnel edition, can you please copy your entire working&amp;nbsp; in the body of the reply&lt;/P&gt;&lt;P&gt;Thnaks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 18:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722704#M723150</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-06-26T18:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722706#M723151</link>
      <description>&lt;P&gt;I didn't change anything in your file&lt;/P&gt;&lt;P&gt;I just changed &lt;STRONG&gt;data:&lt;/STRONG&gt; to &lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 18:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722706#M723151</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-26T18:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722715#M723152</link>
      <description>&lt;P&gt;Now the script error was gone &amp;amp; I can see the created new fields such as F1 &amp;amp; Median, but to populate the value for Median, what next to be done?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 19:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722715#M723152</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-06-26T19:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722724#M723153</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Friend&lt;/P&gt;&lt;P&gt;Most of the issues I had seems to have resolved. To populate the value for median, expression to be made for Paid amount. Now the median for both Branches are visible as per the file attached.Many many thanks for helping again &amp;amp; again. Also if possible,let me know how the median is computed with out adding inline data. In other words, can we do this in the original data itself. Also please let me know the possible aggr function to get this results&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 19:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722724#M723153</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-06-26T19:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722805#M723154</link>
      <description>&lt;P&gt;If possible please let me have the Aggr() function for the same calculation. I have almost got what needed from your guidance. Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neville&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 14:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722805#M723154</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-06-27T14:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722838#M723155</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36419iE850FC89DD3EF65D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;as you can see Neville its just aggr(Median(F2),F1)&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 22:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722838#M723155</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-27T22:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIAN CALCULATION</title>
      <link>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722891#M723156</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nevile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 13:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MEDIAN-CALCULATION/m-p/1722891#M723156</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-06-28T13:43:40Z</dc:date>
    </item>
  </channel>
</rss>

