<?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: Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1161206#M906112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks , I tried it again and it appears to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the issue I had was that SALES table had no values due to an incorrect filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Jul 2016 11:54:11 GMT</pubDate>
    <dc:creator>shamitshah</dc:creator>
    <dc:date>2016-07-02T11:54:11Z</dc:date>
    <item>
      <title>Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1161203#M906109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having an issue with the script below to create a temp calendar. Strangely, it used to work but now it is coming with an error message.Not sure how to resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(SaleDate) as MinDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(SaleDate) as MaxDate&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident SALES;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let vMinDate = Num(Peek('MinDate', 0, 'Temp'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let vMaxDate = Num(Peek('MaxDate', 0, 'Temp'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;TempCalendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt; $(vMinDate) + Iterno()-1 As Num,&amp;nbsp; &lt;/P&gt;&lt;P&gt; Date($(vMinDate) + IterNo() - 1) as TempDate&amp;nbsp; &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;DROP Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129892_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&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/Calendar/m-p/1161203#M906109</guid>
      <dc:creator>shamitshah</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1161204#M906110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCalendar: &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(vMinDate) + RowNo() - 1 AS Num, &lt;/P&gt;&lt;P&gt;Date($(vMinDate) + RowNo() - 1) AS TempDate&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1 &lt;/P&gt;&lt;P&gt;WHILE $(vMinDate)+IterNo()-1&amp;lt;= $(vMaxDate); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 06:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1161204#M906110</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-07-02T06:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1161205#M906111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALES:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;SaleDate&lt;/P&gt;&lt;P&gt;10/01/2016&lt;/P&gt;&lt;P&gt;30/03/2016&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp: &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(SaleDate) as MinDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(SaleDate) as MaxDate &lt;/P&gt;&lt;P&gt;Resident SALES; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMinDate = Num(Peek('MinDate', 0, 'Temp')); &lt;/P&gt;&lt;P&gt;Let vMaxDate = Num(Peek('MaxDate', 0, 'Temp')); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCalendar: &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;$(vMinDate) + Iterno()-1 As Num, &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;DROP Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 06:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1161205#M906111</guid>
      <dc:creator>sorrakis01</dc:creator>
      <dc:date>2016-07-02T06:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1161206#M906112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks , I tried it again and it appears to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the issue I had was that SALES table had no values due to an incorrect filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 11:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1161206#M906112</guid>
      <dc:creator>shamitshah</dc:creator>
      <dc:date>2016-07-02T11:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543198#M1334654</link>
      <description>&lt;P&gt;Having this some issue and I've been trying for last 2 hours and I'm not able to find a solution. It's clear that the problem is due to the no evaluation of the variables, but I see that the values get properly stored in the temp table, but then for some reason these 2 lines don't retrieve me the desired values:&lt;/P&gt;&lt;P&gt;LET vMinDate = Num(Peek('MinDate', 0, 'TempCalendar'));&lt;BR /&gt;LET vMaxDate = Num(Peek('MaxDate', 0, 'TempCalendar'));&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andrespa_0-1771346235133.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186954i42F9C5C551357A60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andrespa_0-1771346235133.png" alt="andrespa_0-1771346235133.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any idea what could be happening? It has to be maybe with the date format?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 16:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543198#M1334654</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2026-02-17T16:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543278#M1334656</link>
      <description>&lt;P&gt;It's properly related to the comma as decimal delimiter which is valid within a table because it's there just a formatting but the variable takes this value directly and this is then no valid number by calling the variable.&lt;/P&gt;&lt;P&gt;If you don't need the time-part then you could cut it with floor() and if the information is wanted the num() could be adjusted, maybe like: num(Value, '.', '') or a replace() is used.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 15:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543278#M1334656</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-02-18T15:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543342#M1334657</link>
      <description>&lt;P&gt;Hi Marcus,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel the solution goes in this direction. But even with the floor() function for some reason the number doesn't get evaluated in the variable:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andrespa_1-1771494379240.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186994iCA0967627BFAB481/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andrespa_1-1771494379240.png" alt="andrespa_1-1771494379240.png" /&gt;&lt;/span&gt;&lt;/P&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="andrespa_0-1771494358760.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186993i5C2E8E71EDBE3B05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andrespa_0-1771494358760.png" alt="andrespa_0-1771494358760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andrespa_2-1771494396788.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186995i937A77AF33AACA0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andrespa_2-1771494396788.png" alt="andrespa_2-1771494396788.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>Thu, 19 Feb 2026 09:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543342#M1334657</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2026-02-19T09:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543343#M1334658</link>
      <description>&lt;P&gt;You are calling the wrong fields within the peek() because you have a qualify-statement before the TempCalendar and therefore the fields are:&amp;nbsp;TempCalendar.MinDate &amp;amp;&amp;nbsp;TempCalendar.MaxDate.&lt;/P&gt;&lt;P&gt;You may adjust the call or probably better removing the qualify. I suggest to avoid it in general because it's causing usually much more trouble and efforts as it's be useful.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2026 09:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543343#M1334658</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-02-19T09:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543353#M1334659</link>
      <description>&lt;P&gt;Hi Marcus, true. I've forgot about the qualify. However, after removing it and double check the names, it's still not working:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andrespa_1-1771495728251.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186997i57496513AB2CD188/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andrespa_1-1771495728251.png" alt="andrespa_1-1771495728251.png" /&gt;&lt;/span&gt;&lt;/P&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="andrespa_0-1771495702812.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186996i392FD8E5A06BEBEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andrespa_0-1771495702812.png" alt="andrespa_0-1771495702812.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andrespa_2-1771495745606.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186998iE90D033506F4CCE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andrespa_2-1771495745606.png" alt="andrespa_2-1771495745606.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>Thu, 19 Feb 2026 10:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543353#M1334659</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2026-02-19T10:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543354#M1334660</link>
      <description>&lt;P&gt;Try the variable-assignment without the num() - floor() and min/max in the load are removing each formatting from the values and therefore the num() isn't necessary.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2026 10:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543354#M1334660</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-02-19T10:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543359#M1334661</link>
      <description>&lt;P&gt;This is driving me crazy, it's seems a really basic stuff but I'm not able to understand what's going on. Still not evaluating the variable:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andrespa_0-1771497491345.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187000i29DA2ECA70FA9C09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andrespa_0-1771497491345.png" alt="andrespa_0-1771497491345.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2026 10:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543359#M1334661</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2026-02-19T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543361#M1334662</link>
      <description>&lt;P&gt;What's the way to view the variable-content? Maybe there is something wrong. What about with this:&lt;/P&gt;&lt;P&gt;trace min = $(vMinDate) &amp;amp; max = $(vMaxDate);&lt;/P&gt;&lt;P&gt;directly after the assignment?&lt;/P&gt;&lt;P&gt;Further take a look if there are more places where such logic are applied maybe overwriting the previous results. Helpful may also be to query the temp-table again, like:&lt;/P&gt;&lt;P&gt;check: load *, rowno() as RowNo resident TempCalendar;&lt;/P&gt;&lt;P&gt;Does it fail or showing more as one record or is in other ways unexpected?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2026 11:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543361#M1334662</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-02-19T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543362#M1334663</link>
      <description>&lt;P&gt;Solved. It was indeed an incorrect way of showing the variables on the trace. The actual solution was the floor().&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Marcus, you've helped me a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2026 12:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/2543362#M1334663</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2026-02-19T12:29:23Z</dc:date>
    </item>
  </channel>
</rss>

