<?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: Creating month end dates till latest month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-month-end-dates-till-latest-month/m-p/1732204#M592441</link>
    <description>&lt;P&gt;Works perfectly, thanks a lot.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 16:55:25 GMT</pubDate>
    <dc:creator>siddharth_kulka</dc:creator>
    <dc:date>2020-07-30T16:55:25Z</dc:date>
    <item>
      <title>Creating month end dates till latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-month-end-dates-till-latest-month/m-p/1731934#M592438</link>
      <description>&lt;P&gt;Hello - Seeking guidance to address a last minute request.&lt;/P&gt;&lt;P&gt;Source Table (A) has 2 fields - Distinct Parent Name and just one Month (Month end) for each parent.&lt;/P&gt;&lt;P&gt;Problem Statement (In Bank-end Script):&lt;/P&gt;&lt;P&gt;Need to create a separate table (Final) in a way such that month end dates are created for every Parent (from table A) from the associated date to the latest (current) month (7/31/2020).&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Parent&lt;/TD&gt;&lt;TD width="50%"&gt;Month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;FB&lt;/TD&gt;&lt;TD width="50%"&gt;4/30/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;APPL&lt;/TD&gt;&lt;TD&gt;6/30/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output:-&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;Parent&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;FB&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;4/30/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;FB&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;5/31/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;FB&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;6/30/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;FB&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;7/31/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;APPL&lt;/TD&gt;&lt;TD&gt;6/30/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;APPL&lt;/TD&gt;&lt;TD&gt;7/31/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be helpful, thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-month-end-dates-till-latest-month/m-p/1731934#M592438</guid>
      <dc:creator>siddharth_kulka</dc:creator>
      <dc:date>2024-11-16T18:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating month end dates till latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-month-end-dates-till-latest-month/m-p/1732035#M592439</link>
      <description>&lt;P&gt;One way you do it would be through the use of a cartesian join and then filter out the data accordingly. So something like the below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tempMonths:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;min(Month) as MinMonth&lt;BR /&gt;FROM&amp;nbsp; ...DataTableSource;&lt;/P&gt;&lt;P&gt;let vMaxdate = num(monthend(today()));&lt;BR /&gt;let vMindate = num(peek('MinMonth',0,'tempMonths'));&lt;/P&gt;&lt;P&gt;TRACE Min Month: $(vMindate);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data:&lt;BR /&gt;LOAD Parent,&lt;BR /&gt;Month&lt;BR /&gt;FROM&amp;nbsp; ...DataTableSource;&lt;/P&gt;&lt;P&gt;JOIN (Data)&lt;/P&gt;&lt;P&gt;Datefield:&lt;BR /&gt;LOAD DISTINCT MonthEnd(Datefield) as MonthEnd&lt;BR /&gt;;&lt;BR /&gt;LOAD date($(vMindate)+IterNo()-1) AS Datefield&lt;BR /&gt;AUTOGENERATE (1)&lt;BR /&gt;WHILE $(vMindate)+IterNo()-1&amp;lt;= $(vMaxdate);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;FinalData:&lt;BR /&gt;LOAD *&lt;BR /&gt;Resident Data&lt;BR /&gt;WHERE MonthEnd&amp;gt;=Month;&lt;/P&gt;&lt;P&gt;Drop Tables Data, tempMonths;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 11:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-month-end-dates-till-latest-month/m-p/1732035#M592439</guid>
      <dc:creator>vivek_gajjar01</dc:creator>
      <dc:date>2020-07-30T11:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating month end dates till latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-month-end-dates-till-latest-month/m-p/1732111#M592440</link>
      <description>&lt;P&gt;Yet to implement and try it out, but the logic seems right so this should work. Will revert back&amp;nbsp; shortly with findings.&lt;/P&gt;&lt;P&gt;In hindsight, doing something similar while creating a master calendar in multiple apps but didn't think of leveraging&amp;nbsp; the same to create month end dates. Thanks for the guidance!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-month-end-dates-till-latest-month/m-p/1732111#M592440</guid>
      <dc:creator>siddharth_kulka</dc:creator>
      <dc:date>2020-07-30T13:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating month end dates till latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-month-end-dates-till-latest-month/m-p/1732204#M592441</link>
      <description>&lt;P&gt;Works perfectly, thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 16:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-month-end-dates-till-latest-month/m-p/1732204#M592441</guid>
      <dc:creator>siddharth_kulka</dc:creator>
      <dc:date>2020-07-30T16:55:25Z</dc:date>
    </item>
  </channel>
</rss>

