<?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: Equally Distribute a Measure Across a Defined Number of Months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Equally-Distribute-a-Measure-Across-a-Defined-Number-of-Months/m-p/1680989#M51815</link>
    <description>&lt;P&gt;You can calculate months between dates with this expression&lt;/P&gt;&lt;P&gt;((year(enddate)*12)+month(enddate)) - (((year([startdate])*12)+month([startdate]))) as NoOfMonths&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 16:33:15 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-03-02T16:33:15Z</dc:date>
    <item>
      <title>Equally Distribute a Measure Across a Defined Number of Months</title>
      <link>https://community.qlik.com/t5/App-Development/Equally-Distribute-a-Measure-Across-a-Defined-Number-of-Months/m-p/1680986#M51814</link>
      <description>&lt;P&gt;My data has:&lt;/P&gt;&lt;P&gt;ProjectID&lt;/P&gt;&lt;P&gt;Start Date&lt;/P&gt;&lt;P&gt;End Date&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;I'd like to distribute the amount equally across the number of months between the Start Date and the End Date.&lt;/P&gt;&lt;P&gt;I think the way to do this is to create a row in the load script per ProjectID, per month (between the dates) and divide the amount by the number of months and assign to each row.&amp;nbsp; But, I am not entirely sure how to do this.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Equally-Distribute-a-Measure-Across-a-Defined-Number-of-Months/m-p/1680986#M51814</guid>
      <dc:creator>jdean1012</dc:creator>
      <dc:date>2021-12-20T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Equally Distribute a Measure Across a Defined Number of Months</title>
      <link>https://community.qlik.com/t5/App-Development/Equally-Distribute-a-Measure-Across-a-Defined-Number-of-Months/m-p/1680989#M51815</link>
      <description>&lt;P&gt;You can calculate months between dates with this expression&lt;/P&gt;&lt;P&gt;((year(enddate)*12)+month(enddate)) - (((year([startdate])*12)+month([startdate]))) as NoOfMonths&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Equally-Distribute-a-Measure-Across-a-Defined-Number-of-Months/m-p/1680989#M51815</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-02T16:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Equally Distribute a Measure Across a Defined Number of Months</title>
      <link>https://community.qlik.com/t5/App-Development/Equally-Distribute-a-Measure-Across-a-Defined-Number-of-Months/m-p/1681336#M51839</link>
      <description>&lt;P&gt;Thanks Vegar!&amp;nbsp; Determining the number of months between the two dates really isn't my problem.&amp;nbsp; I need to be able to distribute the Amount equally across the months, which I assume would involve creating distinct rows per ProjectID/Month.&lt;/P&gt;&lt;P&gt;The desired visual, for example, would be something line a line graph with months on the x-axis and the distributed amount as the measure.&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 14:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Equally-Distribute-a-Measure-Across-a-Defined-Number-of-Months/m-p/1681336#M51839</guid>
      <dc:creator>jdean1012</dc:creator>
      <dc:date>2020-03-03T14:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Equally Distribute a Measure Across a Defined Number of Months</title>
      <link>https://community.qlik.com/t5/App-Development/Equally-Distribute-a-Measure-Across-a-Defined-Number-of-Months/m-p/1681508#M51852</link>
      <description>&lt;P&gt;This seems to work:&lt;/P&gt;&lt;P&gt;[Table2]:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load&lt;BR /&gt;[&lt;SPAN&gt;ProjectID&lt;/SPAN&gt;],&lt;BR /&gt;Date(MonthStart([Start Date], IterNo() - 1)) as [Month]&lt;BR /&gt;While&lt;BR /&gt;MonthStart([Start Date], IterNo() - 1) &amp;lt;= [End Date];&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;[ProjectID],&lt;BR /&gt;Date(MonthStart([Start Date])) as [Start Date],&lt;BR /&gt;Date(MonthStart([End Date])) as [End Date]&lt;BR /&gt;Resident [Table1];&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 22:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Equally-Distribute-a-Measure-Across-a-Defined-Number-of-Months/m-p/1681508#M51852</guid>
      <dc:creator>jdean1012</dc:creator>
      <dc:date>2020-03-03T22:45:05Z</dc:date>
    </item>
  </channel>
</rss>

