<?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 Point in Time Reporting (Allocated memory exceeded or high values) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423073#M812416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying do a comparison from the values of sales from the select period (can be year and month) vs previous month or year. When nothing selected should calculate the max year and max month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created this master calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;minmaxdates:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;min([Data]) as minDate,&lt;/P&gt;&lt;P&gt;max([Data]) as maxDate&lt;/P&gt;&lt;P&gt;Resident [Main Data];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = Num(Peek('minDate',0,'minmaxdates'));&lt;/P&gt;&lt;P&gt;LET vMaxDate = Num(Peek('maxDate',0,'minmaxdates'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;DROP TABLE minmaxdates;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;DateRanges:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(vMinDate) + IterNo()-1 as dateNum,&lt;/P&gt;&lt;P&gt;Date($(vMinDate) + IterNo()-1) as TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate 1 While $(vMinDate) + IterNo()-1&amp;lt;=$(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[Master Calendar]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;AutoNumber(Period, 'PeriodID') as [PeriodID],&lt;/P&gt;&lt;P&gt;AutoNumber(Year &amp;amp; Quarter, 'QuarterID') as [QuarterID];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;TempDate&amp;nbsp;&amp;nbsp; as [Data],&lt;/P&gt;&lt;P&gt;Day(TempDate)&amp;nbsp;&amp;nbsp; as Day,&lt;/P&gt;&lt;P&gt;Week(TempDate)&amp;nbsp;&amp;nbsp; as Week,&lt;/P&gt;&lt;P&gt;Month(TempDate)&amp;nbsp;&amp;nbsp; as Month,&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month(TempDate)/3) as Quarter,&lt;/P&gt;&lt;P&gt;Year(TempDate)&amp;nbsp;&amp;nbsp; as Year,&lt;/P&gt;&lt;P&gt;Year (TempDate)*100 + Month(TempDate) as Period &lt;/P&gt;&lt;P&gt;Resident DateRanges Order by TempDate asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE DateRanges;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i create a set of variables. In this particular example i have: &lt;/P&gt;&lt;P&gt;vSetMTD is defined by &lt;/P&gt;&lt;P&gt;PeriodID = {"&amp;lt;=$(=Max(PeriodID))"}, &lt;SPAN style="font-size: 10pt;"&gt;Year = , &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Quarter = , &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Period = , &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Month =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;vSetPreviousMonth is defined by&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;PeriodID={$(=Max(PeriodID)-1)}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Year= ,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Quarter = ,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Period = ,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Month =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to display my KPI i do (gauge chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({$&amp;lt;$(vSetMTD)&amp;gt; } [Valor]) &lt;SPAN style="font-size: 10pt;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sum({$&amp;lt;$(vSetPreviousMonth)&amp;gt; } [Valor)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;- 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And this give me the memory problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank's in advance &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>brunopaulo</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Point in Time Reporting (Allocated memory exceeded or high values)</title>
      <link>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423073#M812416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying do a comparison from the values of sales from the select period (can be year and month) vs previous month or year. When nothing selected should calculate the max year and max month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created this master calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;minmaxdates:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;min([Data]) as minDate,&lt;/P&gt;&lt;P&gt;max([Data]) as maxDate&lt;/P&gt;&lt;P&gt;Resident [Main Data];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = Num(Peek('minDate',0,'minmaxdates'));&lt;/P&gt;&lt;P&gt;LET vMaxDate = Num(Peek('maxDate',0,'minmaxdates'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;DROP TABLE minmaxdates;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;DateRanges:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(vMinDate) + IterNo()-1 as dateNum,&lt;/P&gt;&lt;P&gt;Date($(vMinDate) + IterNo()-1) as TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate 1 While $(vMinDate) + IterNo()-1&amp;lt;=$(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[Master Calendar]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;AutoNumber(Period, 'PeriodID') as [PeriodID],&lt;/P&gt;&lt;P&gt;AutoNumber(Year &amp;amp; Quarter, 'QuarterID') as [QuarterID];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;TempDate&amp;nbsp;&amp;nbsp; as [Data],&lt;/P&gt;&lt;P&gt;Day(TempDate)&amp;nbsp;&amp;nbsp; as Day,&lt;/P&gt;&lt;P&gt;Week(TempDate)&amp;nbsp;&amp;nbsp; as Week,&lt;/P&gt;&lt;P&gt;Month(TempDate)&amp;nbsp;&amp;nbsp; as Month,&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month(TempDate)/3) as Quarter,&lt;/P&gt;&lt;P&gt;Year(TempDate)&amp;nbsp;&amp;nbsp; as Year,&lt;/P&gt;&lt;P&gt;Year (TempDate)*100 + Month(TempDate) as Period &lt;/P&gt;&lt;P&gt;Resident DateRanges Order by TempDate asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE DateRanges;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i create a set of variables. In this particular example i have: &lt;/P&gt;&lt;P&gt;vSetMTD is defined by &lt;/P&gt;&lt;P&gt;PeriodID = {"&amp;lt;=$(=Max(PeriodID))"}, &lt;SPAN style="font-size: 10pt;"&gt;Year = , &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Quarter = , &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Period = , &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Month =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;vSetPreviousMonth is defined by&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;PeriodID={$(=Max(PeriodID)-1)}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Year= ,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Quarter = ,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Period = ,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Month =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to display my KPI i do (gauge chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({$&amp;lt;$(vSetMTD)&amp;gt; } [Valor]) &lt;SPAN style="font-size: 10pt;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sum({$&amp;lt;$(vSetPreviousMonth)&amp;gt; } [Valor)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;- 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And this give me the memory problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank's in advance &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423073#M812416</guid>
      <dc:creator>brunopaulo</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Point in Time Reporting (Allocated memory exceeded or high values)</title>
      <link>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423074#M812417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 11:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423074#M812417</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-27T11:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Point in Time Reporting (Allocated memory exceeded or high values)</title>
      <link>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423075#M812418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the trouble, meanwhile i solved it. Some variables have syntax problems&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 11:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423075#M812418</guid>
      <dc:creator>brunopaulo</dc:creator>
      <dc:date>2017-09-27T11:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Point in Time Reporting (Allocated memory exceeded or high values)</title>
      <link>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423076#M812419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is great &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; can you share what you had to fix in order to get it working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 12:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423076#M812419</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-27T12:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Point in Time Reporting (Allocated memory exceeded or high values)</title>
      <link>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423077#M812420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, sorry for delay, the script is the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSetMTD&lt;/P&gt;&lt;P&gt;PeriodID = {$(=Max(PeriodID))},&lt;/P&gt;&lt;P&gt;Year = ,&lt;/P&gt;&lt;P&gt;Quarter = ,&lt;/P&gt;&lt;P&gt;Period = ,&lt;/P&gt;&lt;P&gt;Month = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vSetPreviousMonth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PeriodID = {$(=Max(PeriodID) - 1)},&lt;/P&gt;&lt;P&gt;Year = ,&lt;/P&gt;&lt;P&gt;Quarter = ,&lt;/P&gt;&lt;P&gt;Period = ,&lt;/P&gt;&lt;P&gt;Month = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure but i think the problem was here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone try this and give u problem please contact me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 23:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-in-Time-Reporting-Allocated-memory-exceeded-or-high-values/m-p/1423077#M812420</guid>
      <dc:creator>brunopaulo</dc:creator>
      <dc:date>2017-09-27T23:37:09Z</dc:date>
    </item>
  </channel>
</rss>

