<?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/1631004#M732747</link>
    <description>&lt;P&gt;You are creating a calendar by considering the max date in your fact table and this will limit till what day the calendar will be generated.&lt;/P&gt;&lt;P&gt;Check what date&amp;nbsp;&lt;STRONG&gt;Max(RechBuchDat)&amp;nbsp;&lt;/STRONG&gt;is returning and alter code likewise to create master calendar as per your requirement.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2019 11:55:11 GMT</pubDate>
    <dc:creator>miskinmaz</dc:creator>
    <dc:date>2019-10-03T11:55:11Z</dc:date>
    <item>
      <title>Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1630986#M732746</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a big problem with my calender. For our company i added the fiscal year in my calendar.&lt;/P&gt;&lt;P&gt;When i now choose Fiscal Year 2020 i can only see the revenue for the months July, August and September but there is no June and i dont know why. There is something wrong in my code. Our Fiscal Year starts on 01.06!&lt;/P&gt;&lt;P&gt;When i choose&amp;nbsp; Fiscal Year 2019 i can see the months from June to May and it seems it will work but im not sure.&lt;/P&gt;&lt;P&gt;Can you&amp;nbsp; help me please?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;There is the code for my calendar:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempMinMax:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Min(RechBuchDat) as MinDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Max(RechBuchDat) as MaxDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RESIDENT Umsatz;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Variablen für MinMax Datum&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SET vFiscalYearStartMonth = 6; // Number of Month Will be Here for Quarter Start&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LET vMinDate = Peek('MinDate', 0, 'TempMinMax');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LET vMaxDate = Peek('MaxDate', 0, 'TempMinMax');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LET vToday = $(vMaxDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;DROP TABLE TempMinMax;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Datensätze zwischen min und max generieren&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempCal:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;date($(vMinDate) + RowNo() -1) AS TempDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;AutoGenerate $(vMaxDate) - (vMinDate) +1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Hauptkalender&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Hauptkalender:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TempDate AS RechBuchDat,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Week(TempDate) AS Woche,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Year(TempDate) AS Jahr,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Dual(Month(TempDate),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Mod(Month(TempDate) - $(vFiscalYearStartMonth), 12)+1) AS FiscalMonth,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;YearName(TempDate, 0, $(vFiscalYearStartMonth)) AS FiscalYear,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Year(AddMonths(TempDate,$(vFiscalYearStartMonth))) as [Fiscal Year], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Month(TempDate) AS Monat,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Day(TempDate) AS Tag,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WeekDay(TempDate) AS Wochentag,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Q' &amp;amp; ceil(month(TempDate) / 3 ) AS Quartal,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;InYearToDate(TempDate, $(vToday), 0) * -1 AS JahrAktuell,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;InYearToDate(TempDate, $(vToday), -1) * -1 AS JahrVorher&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT TempCal&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ORDER BY TempDate ASC;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP TABLE TempCal;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1630986#M732746</guid>
      <dc:creator>rolandg1881</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/1631004#M732747</link>
      <description>&lt;P&gt;You are creating a calendar by considering the max date in your fact table and this will limit till what day the calendar will be generated.&lt;/P&gt;&lt;P&gt;Check what date&amp;nbsp;&lt;STRONG&gt;Max(RechBuchDat)&amp;nbsp;&lt;/STRONG&gt;is returning and alter code likewise to create master calendar as per your requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 11:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1631004#M732747</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2019-10-03T11:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1631033#M732748</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thank you for the answer! I tried something:&amp;nbsp;&lt;STRONG&gt;Max(RechBuchDat) + 365&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But i think it was a bad idea it does not work.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;roland&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1631033#M732748</guid>
      <dc:creator>rolandg1881</dc:creator>
      <dc:date>2019-10-03T12:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1631051#M732749</link>
      <description>&lt;P&gt;The best way will be :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(addyears(date(RechBuchDat),1)&lt;SPAN&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1631051#M732749</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2019-10-03T12:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1631053#M732750</link>
      <description>&lt;P&gt;It looks like there's a gap in your code between FiscalYear and [Fiscal Year].&lt;/P&gt;&lt;P&gt;FiscalYear looks to be correct.&lt;/P&gt;&lt;P&gt;[Fiscal Year] is not correct. You are adding six months to your date and extracting the year from that. June + 6 months = December, so you're still in the same year as you were before. You would need to add +1 month since you're moving in the opposite direction here.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1631053#M732750</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2019-10-03T12:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1631055#M732751</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thank you! In witch row i have to add +1 ?&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1631055#M732751</guid>
      <dc:creator>rolandg1881</dc:creator>
      <dc:date>2019-10-03T12:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1633684#M732752</link>
      <description>&lt;P&gt;Roland, the following Design Blog post may be of some help on this one I think:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Fiscal-Year/ba-p/1472103" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Fiscal-Year/ba-p/1472103&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 13:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1633684#M732752</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-10T13:37:31Z</dc:date>
    </item>
  </channel>
</rss>

