<?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 QlikSense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685680#M52228</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;I have another scenario :&lt;/P&gt;&lt;P&gt;t1:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;Year,Region,Impact&lt;BR /&gt;2018,India,Low&lt;BR /&gt;2018,SriLanka,Low&lt;BR /&gt;2018,Australia,Significant&lt;BR /&gt;2018,Japan,Low&lt;BR /&gt;2019,India,Low&lt;BR /&gt;2019,SriLanka,Low&lt;BR /&gt;2019,SriLanka,Significant&lt;BR /&gt;2019,India,Medium&lt;BR /&gt;2019,Australia,Low&lt;BR /&gt;2019,India,Significant&lt;BR /&gt;2019,UK,Significant&lt;BR /&gt;2019,UK,Low&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Here we need to consider the same year and also Impact equal to Significant&lt;/P&gt;&lt;P&gt;For example in 2018 it will be,&lt;BR /&gt;India = 0&lt;BR /&gt;Sri Lanka = 0&lt;BR /&gt;Australia - 1&lt;BR /&gt;Japan - 0&lt;/P&gt;&lt;P&gt;Median will be zero&lt;/P&gt;&lt;P&gt;In 2019,&lt;BR /&gt;India - 1 (Impact is equal to Significant in one case)&lt;BR /&gt;SriLanka - 1 (Impact is equal to Significant in one case)&lt;BR /&gt;Australia - 0 (Impact is equal to Significant in zero case)&lt;BR /&gt;UK - 1 (Impact is equal to Significant in one case)&lt;/P&gt;&lt;P&gt;Median for 0,1,1,1 which is 1&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2020 12:12:57 GMT</pubDate>
    <dc:creator>arvindjha2050</dc:creator>
    <dc:date>2020-03-18T12:12:57Z</dc:date>
    <item>
      <title>Median QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685329#M52202</link>
      <description>&lt;P&gt;&amp;nbsp;Hello all,&lt;/P&gt;&lt;P&gt;Below is sample code :&lt;/P&gt;&lt;P&gt;Test :&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;Year,Region,Values&lt;BR /&gt;2018,India,10&lt;BR /&gt;2018,SriLanka,20&lt;BR /&gt;2018,Australia,32&lt;BR /&gt;2019,India,12&lt;BR /&gt;2019,SriLanka,15&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I create a line chart :&lt;/P&gt;&lt;P&gt;Dimension :Year&lt;/P&gt;&lt;P&gt;Measure : Median(Values)&lt;/P&gt;&lt;P&gt;Output is : Year 2018 - 20 ;Year&amp;nbsp; 2019 - 13.5&lt;/P&gt;&lt;P&gt;But i want output like this :&lt;/P&gt;&lt;P&gt;Output is : Year 2018 - 20 ;Year&amp;nbsp; 2019 - 12&lt;/P&gt;&lt;P&gt;The logic should be even though for 2019 we don't have value for Australia we want to consider that in median calculation with zero assigned to it , so after sorting it should be Median of values : 0,12,15 which should be equal to 12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685329#M52202</guid>
      <dc:creator>arvindjha2050</dc:creator>
      <dc:date>2021-12-22T15:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Median QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685355#M52206</link>
      <description>&lt;P&gt;You have to populate your sparsely populated data correctly for that to work.&lt;/P&gt;&lt;P&gt;A sample code to wards that would be like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;t1:
Load * Inline
[
Year,Region,Values
2018,India,10
2018,SriLanka,20
2018,Australia,32
2019,India,12
2019,SriLanka,15
];

t2:
Load Distinct Region Resident t1;
Join (t2)
Load Distinct Year Resident t1;

Left Join (t2)
load * Resident t1;

Drop Table t1;

NULLASVALUE Values;
Set NullValue='0';
NoConcatenate
t3:
Load * Resident t2;
Drop	Table t2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 354px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30167i7D665467C8268525/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 238px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30168iE59D9437B9A032A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 13:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685355#M52206</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-03-17T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Median QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685398#M52213</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Can we do the same based on count of distinct values of Country?&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;t1:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;Year,Region,Values&lt;BR /&gt;2018,India,10&lt;BR /&gt;2018,SriLanka,20&lt;BR /&gt;2018,Australia,32&lt;BR /&gt;2019,India,10&lt;BR /&gt;2019,SriLanka,15&lt;BR /&gt;2019,SriLanka,20&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here for 2019 , count for India is 1 , SriLanka is 2 and Australia is zero, hence median of 0, 1 and 2 which will be 1.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 14:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685398#M52213</guid>
      <dc:creator>arvindjha2050</dc:creator>
      <dc:date>2020-03-17T14:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Median QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685559#M52224</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;Median(Aggr(Count(Region), Year, Region))&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 07:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685559#M52224</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-03-18T07:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Median QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685680#M52228</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;I have another scenario :&lt;/P&gt;&lt;P&gt;t1:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;Year,Region,Impact&lt;BR /&gt;2018,India,Low&lt;BR /&gt;2018,SriLanka,Low&lt;BR /&gt;2018,Australia,Significant&lt;BR /&gt;2018,Japan,Low&lt;BR /&gt;2019,India,Low&lt;BR /&gt;2019,SriLanka,Low&lt;BR /&gt;2019,SriLanka,Significant&lt;BR /&gt;2019,India,Medium&lt;BR /&gt;2019,Australia,Low&lt;BR /&gt;2019,India,Significant&lt;BR /&gt;2019,UK,Significant&lt;BR /&gt;2019,UK,Low&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Here we need to consider the same year and also Impact equal to Significant&lt;/P&gt;&lt;P&gt;For example in 2018 it will be,&lt;BR /&gt;India = 0&lt;BR /&gt;Sri Lanka = 0&lt;BR /&gt;Australia - 1&lt;BR /&gt;Japan - 0&lt;/P&gt;&lt;P&gt;Median will be zero&lt;/P&gt;&lt;P&gt;In 2019,&lt;BR /&gt;India - 1 (Impact is equal to Significant in one case)&lt;BR /&gt;SriLanka - 1 (Impact is equal to Significant in one case)&lt;BR /&gt;Australia - 0 (Impact is equal to Significant in zero case)&lt;BR /&gt;UK - 1 (Impact is equal to Significant in one case)&lt;/P&gt;&lt;P&gt;Median for 0,1,1,1 which is 1&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 12:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Median-QlikSense/m-p/1685680#M52228</guid>
      <dc:creator>arvindjha2050</dc:creator>
      <dc:date>2020-03-18T12:12:57Z</dc:date>
    </item>
  </channel>
</rss>

