<?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 Median Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Median-Calculation/m-p/623433#M1108146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I had a simple rquirement, but not getting the solution. May be missing something..&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;There is 3 fields in one table.(Fields: Firm_Name, Time_Period, Hours). I want to calculate the Median of the Hours and correponding Firm_Name.&lt;/P&gt;&lt;P&gt;Dimension : Time_Period&lt;/P&gt;&lt;P&gt;Expressions: Median, Firm_Name( corresponding to the Median value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Functionality&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;If the count is Odd number then there is no issue.--- Median(Hours)&lt;/P&gt;&lt;P&gt;If the count is Even then, the median value doesn't match to any existing Hours value. So I am not able to display the Firm_Name. So I want to&amp;nbsp; dispaly the middle 2 values and its correposnding Firm_Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex&lt;/STRONG&gt;: 6,9,2,5,10,7 (After sorting... 2,5,6,7,9,10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here I want to display the values 6 &amp;amp; 7 and its coresponding Firm_Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 08:19:19 GMT</pubDate>
    <dc:creator>PradeepReddy</dc:creator>
    <dc:date>2014-03-26T08:19:19Z</dc:date>
    <item>
      <title>Median Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Median-Calculation/m-p/623433#M1108146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I had a simple rquirement, but not getting the solution. May be missing something..&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;There is 3 fields in one table.(Fields: Firm_Name, Time_Period, Hours). I want to calculate the Median of the Hours and correponding Firm_Name.&lt;/P&gt;&lt;P&gt;Dimension : Time_Period&lt;/P&gt;&lt;P&gt;Expressions: Median, Firm_Name( corresponding to the Median value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Functionality&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;If the count is Odd number then there is no issue.--- Median(Hours)&lt;/P&gt;&lt;P&gt;If the count is Even then, the median value doesn't match to any existing Hours value. So I am not able to display the Firm_Name. So I want to&amp;nbsp; dispaly the middle 2 values and its correposnding Firm_Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex&lt;/STRONG&gt;: 6,9,2,5,10,7 (After sorting... 2,5,6,7,9,10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here I want to display the values 6 &amp;amp; 7 and its coresponding Firm_Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Median-Calculation/m-p/623433#M1108146</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2014-03-26T08:19:19Z</dc:date>
    </item>
  </channel>
</rss>

