<?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 Divide the number into equal periods in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Divide-the-number-into-equal-periods/m-p/1705391#M54078</link>
    <description>&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;is there a way to do this in Qlik?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="C51EE68D-E36E-453B-90C9-6C630618DEAE.png" style="width: 487px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34385iA8ECC9C2CF1AA453/image-size/medium?v=v2&amp;amp;px=400" role="button" title="C51EE68D-E36E-453B-90C9-6C630618DEAE.png" alt="C51EE68D-E36E-453B-90C9-6C630618DEAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In words, I want to divide the amount into 3 equal parts and assign periods based on the Quarters. So for example, the 3rd last row is divided into 3 equal parts and assigned period 10,11,12.&amp;nbsp;&lt;BR /&gt;Q1: 1,2,3&lt;/P&gt;&lt;P&gt;Q2: 4,5,6&lt;/P&gt;&lt;P&gt;Q3: 7,8,9&lt;/P&gt;&lt;P&gt;Q4: 10,11,12&lt;/P&gt;&lt;P&gt;please let me know if you have any questions.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;waleed&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:19:27 GMT</pubDate>
    <dc:creator>waleeed_mahmood</dc:creator>
    <dc:date>2024-11-16T02:19:27Z</dc:date>
    <item>
      <title>Divide the number into equal periods</title>
      <link>https://community.qlik.com/t5/App-Development/Divide-the-number-into-equal-periods/m-p/1705391#M54078</link>
      <description>&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;is there a way to do this in Qlik?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="C51EE68D-E36E-453B-90C9-6C630618DEAE.png" style="width: 487px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34385iA8ECC9C2CF1AA453/image-size/medium?v=v2&amp;amp;px=400" role="button" title="C51EE68D-E36E-453B-90C9-6C630618DEAE.png" alt="C51EE68D-E36E-453B-90C9-6C630618DEAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In words, I want to divide the amount into 3 equal parts and assign periods based on the Quarters. So for example, the 3rd last row is divided into 3 equal parts and assigned period 10,11,12.&amp;nbsp;&lt;BR /&gt;Q1: 1,2,3&lt;/P&gt;&lt;P&gt;Q2: 4,5,6&lt;/P&gt;&lt;P&gt;Q3: 7,8,9&lt;/P&gt;&lt;P&gt;Q4: 10,11,12&lt;/P&gt;&lt;P&gt;please let me know if you have any questions.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;waleed&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Divide-the-number-into-equal-periods/m-p/1705391#M54078</guid>
      <dc:creator>waleeed_mahmood</dc:creator>
      <dc:date>2024-11-16T02:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Divide the number into equal periods</title>
      <link>https://community.qlik.com/t5/App-Development/Divide-the-number-into-equal-periods/m-p/1705403#M54082</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/92034"&gt;@waleeed_mahmood&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;several option, for example :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:
LOAD * INLINE [
    BU, KPI, Amount, Qtr
    a, s, 120, 1
    z, d, 150, 1
    e, f, 140, 3
    r, c, 160, 4
    t, r, 1500, 4
];
left join 
load * inline [
Period,Qtr
1,1
2,1
3,1
4,2
5,2
6,2
7,3
8,3
9,3
10,4
11,4
12,4
];

output:

load *, Num(Amount/3,'# ##0,0') as New_Amount resident Data;

drop table Data;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input table :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 392px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34389iC6F9FBBD1B5727CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;output table :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 450px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34388i4216183C323A1DA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 23:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Divide-the-number-into-equal-periods/m-p/1705403#M54082</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-05-26T23:08:49Z</dc:date>
    </item>
  </channel>
</rss>

