<?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: Create a for loop to sort the months and get the middle/median value (URGENT) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-for-loop-to-sort-the-months-and-get-the-middle-median/m-p/1952073#M78489</link>
    <description>&lt;P&gt;Hello Marco,&lt;/P&gt;
&lt;P&gt;I am trying to achieve from script. If you can help with chart expressions is also great.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 01:35:10 GMT</pubDate>
    <dc:creator>sandp707</dc:creator>
    <dc:date>2022-07-06T01:35:10Z</dc:date>
    <item>
      <title>Create a for loop to sort the months and get the middle/median value (URGENT)</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-for-loop-to-sort-the-months-and-get-the-middle-median/m-p/1951958#M78474</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;Could someone please help with a script as this is very urgent.&lt;/P&gt;
&lt;P&gt;I want to create a &lt;STRONG&gt;for loop&lt;/STRONG&gt; to sort on basis of 3 Months and get the middle values from measure.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Data granularity - Under market there are products, and we can same product name under multiple markets&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandp707_1-1657040410432.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83375iE3C25260BBA0E81F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandp707_1-1657040410432.png" alt="sandp707_1-1657040410432.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Column E -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the sample data screenshot, here I want to create a for loop with a counter which will sort the Count (column D) for every 3 months (column A) and bring the middle/median of the Count column and place it in Column E (highlighted).&lt;/P&gt;
&lt;P&gt;Column F -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This column is difference between the median derived from above for loop and the current month&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column G -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is again the median from Column F (difference) and this should also be from a for loop.&lt;/P&gt;
&lt;P&gt;I want this using for loop as because the number of months to derive the median can be 3,4,5... as per the client request.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sandeep&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 17:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-for-loop-to-sort-the-months-and-get-the-middle-median/m-p/1951958#M78474</guid>
      <dc:creator>sandp707</dc:creator>
      <dc:date>2022-07-05T17:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a for loop to sort the months and get the middle/median value (URGENT)</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-for-loop-to-sort-the-months-and-get-the-middle-median/m-p/1952046#M78484</link>
      <description>&lt;P&gt;are you looking for a script solution or a chart expression?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 22:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-for-loop-to-sort-the-months-and-get-the-middle-median/m-p/1952046#M78484</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-07-05T22:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create a for loop to sort the months and get the middle/median value (URGENT)</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-for-loop-to-sort-the-months-and-get-the-middle-median/m-p/1952073#M78489</link>
      <description>&lt;P&gt;Hello Marco,&lt;/P&gt;
&lt;P&gt;I am trying to achieve from script. If you can help with chart expressions is also great.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 01:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-for-loop-to-sort-the-months-and-get-the-middle-median/m-p/1952073#M78489</guid>
      <dc:creator>sandp707</dc:creator>
      <dc:date>2022-07-06T01:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a for loop to sort the months and get the middle/median value (URGENT)</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-for-loop-to-sort-the-months-and-get-the-middle-median/m-p/1952614#M78543</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I need to see the median of the previous 3 records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BE884A66-D7C2-4CBD-854E-BDBA12E46F37.jpeg" style="width: 750px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83489i4057D68BD4728622/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BE884A66-D7C2-4CBD-854E-BDBA12E46F37.jpeg" alt="BE884A66-D7C2-4CBD-854E-BDBA12E46F37.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; Where, prev 3dlvry = median of previous 3 records&amp;nbsp;&lt;/P&gt;
&lt;P&gt;actual deviation = difference between current count and the median of prev 3dlvry&lt;/P&gt;
&lt;P&gt;typical deviation = total median of actual deviation&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 03:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-for-loop-to-sort-the-months-and-get-the-middle-median/m-p/1952614#M78543</guid>
      <dc:creator>sandp707</dc:creator>
      <dc:date>2022-07-07T03:26:16Z</dc:date>
    </item>
  </channel>
</rss>

