<?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 Date for new calendar year not displaying in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-for-new-calendar-year-not-displaying/m-p/1771540#M59710</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Qlikview report is not displaying the new calendar year in the report&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//LET vCalendarYearStart = Year(Today())-2;//&lt;BR /&gt;LET vCalendarYearStart = 2016;&lt;BR /&gt;SET vDaysInWeekFileName = 'DaysInWeeks_1.1.xlsx';&lt;/P&gt;&lt;P&gt;DaysInWeeks:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;date(WeekStart) as BudgetWeekStartDate,&lt;BR /&gt;date(date(WeekStart) + DaysInWeek -1) as BudgetWeekEndDate,&lt;BR /&gt;RowNo() as [Budget Week Number]&lt;BR /&gt;FROM&lt;BR /&gt;[$(vG.ImportPath)\$(vDaysInWeekFileName)]&lt;BR /&gt;(ooxml, embedded labels, table is DaysInWeeks) where not IsNull(WeekStart);&lt;/P&gt;&lt;P&gt;dim_CalendarTable:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;%Date_Key,&lt;BR /&gt;Date(Date) as Date,&lt;/P&gt;&lt;P&gt;DATE(MonthStart(Date)) as [MonthStart],&lt;BR /&gt;WeekDay(Date) as [Week Day Name],&lt;BR /&gt;If(month(weekend(Date))= month(Date),div(day(WeekEnd(Date)),7),div(day(Weekend(Date,-1)),7)+1)+1&lt;BR /&gt;as WeekNumber,&lt;BR /&gt;[Month Year Name],&lt;BR /&gt;Month,&lt;BR /&gt;[Week of Year],&lt;BR /&gt;[Month of Year],&lt;BR /&gt;[Month of Year Order],&lt;BR /&gt;[Year]&lt;BR /&gt;Resident dim_Calendar where [Year] &amp;gt;= $(vCalendarYearStart) and floor(Date) &amp;lt;&amp;gt; 2;&lt;BR /&gt;drop Table dim_Calendar;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left join(dim_CalendarTable)&lt;BR /&gt;LOAD&lt;BR /&gt;Month,&lt;BR /&gt;WeekNumber,&lt;BR /&gt;count(Date) as [Days In Week (For Month)]&lt;BR /&gt;Resident dim_CalendarTable group by&lt;BR /&gt;Month,&lt;BR /&gt;WeekNumber;&lt;BR /&gt;drop Fields WeekNumber;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left JOIN (dim_CalendarTable)&lt;BR /&gt;IntervalMatch (Date)&lt;BR /&gt;Load Distinct&lt;BR /&gt;BudgetWeekStartDate,&lt;BR /&gt;BudgetWeekEndDate&lt;BR /&gt;Resident DaysInWeeks;&lt;/P&gt;&lt;P&gt;left join(dim_CalendarTable)&lt;BR /&gt;LOAD&lt;BR /&gt;Distinct&lt;BR /&gt;BudgetWeekStartDate,&lt;BR /&gt;[Budget Week Number]&lt;BR /&gt;Resident DaysInWeeks;&lt;BR /&gt;drop Table DaysInWeeks;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Calendar KPI's&lt;BR /&gt;KPI:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;KPI Number, KPI Name&lt;BR /&gt;1, Today&lt;BR /&gt;2, WTD&lt;BR /&gt;3, MTD&lt;BR /&gt;4, QTD&lt;BR /&gt;5, YTD&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;join(KPI)&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Key KPI&lt;BR /&gt;Sales&lt;BR /&gt;Tonnes&lt;BR /&gt;Rate&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Join (KPI)&lt;BR /&gt;Load Distinct [Year]&lt;BR /&gt;Resident dim_CalendarTable;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CalObjects_minmaxdates:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;Distinct&lt;BR /&gt;min([Date]) AS Min_SaleDate,&lt;BR /&gt;max([Date]) AS Max_SaleDate&lt;BR /&gt;Resident dim_CalendarTable;&lt;/P&gt;&lt;P&gt;LET vMinDateCalObject = date(Peek('Min_SaleDate',0,'CalObjects_minmaxdates'));&lt;BR /&gt;LET vMaxDateCalObject = date(Peek('Max_SaleDate',0,'CalObjects_minmaxdates'));&lt;/P&gt;&lt;P&gt;drop Table CalObjects_minmaxdates;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am quite new to this .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;RC&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:39:24 GMT</pubDate>
    <dc:creator>chavanrutika</dc:creator>
    <dc:date>2024-11-16T17:39:24Z</dc:date>
    <item>
      <title>Date for new calendar year not displaying</title>
      <link>https://community.qlik.com/t5/App-Development/Date-for-new-calendar-year-not-displaying/m-p/1771540#M59710</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Qlikview report is not displaying the new calendar year in the report&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//LET vCalendarYearStart = Year(Today())-2;//&lt;BR /&gt;LET vCalendarYearStart = 2016;&lt;BR /&gt;SET vDaysInWeekFileName = 'DaysInWeeks_1.1.xlsx';&lt;/P&gt;&lt;P&gt;DaysInWeeks:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;date(WeekStart) as BudgetWeekStartDate,&lt;BR /&gt;date(date(WeekStart) + DaysInWeek -1) as BudgetWeekEndDate,&lt;BR /&gt;RowNo() as [Budget Week Number]&lt;BR /&gt;FROM&lt;BR /&gt;[$(vG.ImportPath)\$(vDaysInWeekFileName)]&lt;BR /&gt;(ooxml, embedded labels, table is DaysInWeeks) where not IsNull(WeekStart);&lt;/P&gt;&lt;P&gt;dim_CalendarTable:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;%Date_Key,&lt;BR /&gt;Date(Date) as Date,&lt;/P&gt;&lt;P&gt;DATE(MonthStart(Date)) as [MonthStart],&lt;BR /&gt;WeekDay(Date) as [Week Day Name],&lt;BR /&gt;If(month(weekend(Date))= month(Date),div(day(WeekEnd(Date)),7),div(day(Weekend(Date,-1)),7)+1)+1&lt;BR /&gt;as WeekNumber,&lt;BR /&gt;[Month Year Name],&lt;BR /&gt;Month,&lt;BR /&gt;[Week of Year],&lt;BR /&gt;[Month of Year],&lt;BR /&gt;[Month of Year Order],&lt;BR /&gt;[Year]&lt;BR /&gt;Resident dim_Calendar where [Year] &amp;gt;= $(vCalendarYearStart) and floor(Date) &amp;lt;&amp;gt; 2;&lt;BR /&gt;drop Table dim_Calendar;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left join(dim_CalendarTable)&lt;BR /&gt;LOAD&lt;BR /&gt;Month,&lt;BR /&gt;WeekNumber,&lt;BR /&gt;count(Date) as [Days In Week (For Month)]&lt;BR /&gt;Resident dim_CalendarTable group by&lt;BR /&gt;Month,&lt;BR /&gt;WeekNumber;&lt;BR /&gt;drop Fields WeekNumber;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left JOIN (dim_CalendarTable)&lt;BR /&gt;IntervalMatch (Date)&lt;BR /&gt;Load Distinct&lt;BR /&gt;BudgetWeekStartDate,&lt;BR /&gt;BudgetWeekEndDate&lt;BR /&gt;Resident DaysInWeeks;&lt;/P&gt;&lt;P&gt;left join(dim_CalendarTable)&lt;BR /&gt;LOAD&lt;BR /&gt;Distinct&lt;BR /&gt;BudgetWeekStartDate,&lt;BR /&gt;[Budget Week Number]&lt;BR /&gt;Resident DaysInWeeks;&lt;BR /&gt;drop Table DaysInWeeks;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Calendar KPI's&lt;BR /&gt;KPI:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;KPI Number, KPI Name&lt;BR /&gt;1, Today&lt;BR /&gt;2, WTD&lt;BR /&gt;3, MTD&lt;BR /&gt;4, QTD&lt;BR /&gt;5, YTD&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;join(KPI)&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Key KPI&lt;BR /&gt;Sales&lt;BR /&gt;Tonnes&lt;BR /&gt;Rate&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Join (KPI)&lt;BR /&gt;Load Distinct [Year]&lt;BR /&gt;Resident dim_CalendarTable;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CalObjects_minmaxdates:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;Distinct&lt;BR /&gt;min([Date]) AS Min_SaleDate,&lt;BR /&gt;max([Date]) AS Max_SaleDate&lt;BR /&gt;Resident dim_CalendarTable;&lt;/P&gt;&lt;P&gt;LET vMinDateCalObject = date(Peek('Min_SaleDate',0,'CalObjects_minmaxdates'));&lt;BR /&gt;LET vMaxDateCalObject = date(Peek('Max_SaleDate',0,'CalObjects_minmaxdates'));&lt;/P&gt;&lt;P&gt;drop Table CalObjects_minmaxdates;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am quite new to this .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;RC&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-for-new-calendar-year-not-displaying/m-p/1771540#M59710</guid>
      <dc:creator>chavanrutika</dc:creator>
      <dc:date>2024-11-16T17:39:24Z</dc:date>
    </item>
  </channel>
</rss>

