<?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 Need help with RangeSum(Above(... in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-help-with-RangeSum-Above/m-p/2009783#M83510</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;I have data like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MindaugasBacius_0-1669643606719.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94748i8D469EC859EFCC4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MindaugasBacius_0-1669643606719.png" alt="MindaugasBacius_0-1669643606719.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I wish to provide the comparison YoY by month:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MindaugasBacius_1-1669643646857.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94749i2F5D20CF9E2426E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MindaugasBacius_1-1669643646857.png" alt="MindaugasBacius_1-1669643646857.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Yet I wish to show only data that belongs to:&lt;/P&gt;
&lt;P&gt;Current - [2022-01-01 / 2022-11-28]&lt;/P&gt;
&lt;P&gt;Previous - [2021-01-01 / 2021-11-28]&lt;/P&gt;
&lt;P&gt;I cannot reduce the data in the backend need to do this in the frontend.&lt;/P&gt;
&lt;P&gt;How should I accomplish this?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 14:00:16 GMT</pubDate>
    <dc:creator>MindaugasBacius</dc:creator>
    <dc:date>2022-11-28T14:00:16Z</dc:date>
    <item>
      <title>Need help with RangeSum(Above(...</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-RangeSum-Above/m-p/2009783#M83510</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;I have data like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MindaugasBacius_0-1669643606719.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94748i8D469EC859EFCC4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MindaugasBacius_0-1669643606719.png" alt="MindaugasBacius_0-1669643606719.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I wish to provide the comparison YoY by month:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MindaugasBacius_1-1669643646857.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94749i2F5D20CF9E2426E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MindaugasBacius_1-1669643646857.png" alt="MindaugasBacius_1-1669643646857.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Yet I wish to show only data that belongs to:&lt;/P&gt;
&lt;P&gt;Current - [2022-01-01 / 2022-11-28]&lt;/P&gt;
&lt;P&gt;Previous - [2021-01-01 / 2021-11-28]&lt;/P&gt;
&lt;P&gt;I cannot reduce the data in the backend need to do this in the frontend.&lt;/P&gt;
&lt;P&gt;How should I accomplish this?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 14:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-RangeSum-Above/m-p/2009783#M83510</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2022-11-28T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with RangeSum(Above(...</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-RangeSum-Above/m-p/2010078#M83540</link>
      <description>&lt;P&gt;as below&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Current YEar toDate&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;rangesum(above(Sum({&amp;lt;Date={"&amp;gt;=$(=Date(&lt;STRONG&gt;YearStart&lt;/STRONG&gt;(Max(Date)),'YYYY-MM-DD'))&amp;lt;=$(=Date(Today(),'YYYY-MM-DD'))"}&amp;gt;}Sale),0,rowno()))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PRevious Year toDate&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;rangesum(above(Sum({&amp;lt;Date={"&amp;gt;=$(=Date(&lt;STRONG&gt;YearStart&lt;/STRONG&gt;(Max(Date),&lt;STRONG&gt;-1&lt;/STRONG&gt;),'YYYY-MM-DD'))&amp;lt;=$(=Date(&lt;STRONG&gt;addyears&lt;/STRONG&gt;(Today(),&lt;STRONG&gt;-1&lt;/STRONG&gt;),'YYYY-MM-DD'))"}&amp;gt;}Sale),0,rowno()))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;tmp:
LOAD date#(Date,'YYYY-MM-DD') as Date, Sale, CYTD, PYTD, Month INLINE [
    Date, Sale, CYTD, PYTD, Month
    2021-01-01, , 0, 1, 1
    2021-02-01, 1, 0, 1, 2
    2021-03-01, 2, 0, 1, 3
    2021-04-01, 3, 0, 1, 4
    2021-05-02, 4, 0, 1, 5
    2021-06-08, 5, 0, 1, 6
    2021-07-15, 6, 0, 1, 7
    2021-08-10, 7, 0, 1, 8
    2021-09-20, 8, 0, 1, 9
    2021-10-16, 9, 0, 1, 10
    2021-11-23, 1, 0, 1, 11
    2021-12-20, 5, 0, 1, 12
    2022-01-02, 2, 1, 0, 1
    2022-02-03, 2, 1, 0, 2
    2022-03-05, 3, 1, 0, 3
    2022-04-15, 2, 1, 0, 4
    2022-05-02, 2, 1, 0, 5
    2022-06-03, 2, 1, 0, 6
    2022-07-05, 3, 1, 0, 7
    2022-08-15, 2, 1, 0, 8
    2022-09-02, 2, 1, 0, 9
    2022-10-03, 2, 1, 0, 10
    2022-11-05, 3, 1, 0, 11
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinieme12_0-1669694543774.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94809i2D3AEA9009B1F393/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinieme12_0-1669694543774.png" alt="vinieme12_0-1669694543774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 04:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-RangeSum-Above/m-p/2010078#M83540</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-11-29T04:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with RangeSum(Above(...</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-RangeSum-Above/m-p/2010115#M83542</link>
      <description>&lt;P&gt;Hei,&amp;nbsp;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;vinieme12,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;It works well, yet I do not get the logic laying behind it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;Why it's not working while using Set analysis with CYTD, and PYTD?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;How does the ROWNO() effects the formula?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;Thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 05:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-RangeSum-Above/m-p/2010115#M83542</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2022-11-29T05:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with RangeSum(Above(...</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-RangeSum-Above/m-p/2010117#M83543</link>
      <description>&lt;P&gt;&lt;SPAN&gt;PYTD -&amp;nbsp; &amp;nbsp;this flag marks all months of the previous therefore you won't be able to use this to do a YearToDate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you can use the function inYeartodate() to mark dates from previous years but base the dates on today()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;example&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="script_token"&gt;InYearToDate (datefield,addyears(today(),-1),1)&amp;nbsp; &amp;nbsp;as PYTD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rowno() is needed to specify which rows to accumulate&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Missing-Manual-Above-and-Below/ta-p/1481948" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Missing-Manual-Above-and-Below/ta-p/1481948&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 05:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-RangeSum-Above/m-p/2010117#M83543</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-11-29T05:58:18Z</dc:date>
    </item>
  </channel>
</rss>

