<?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 Creating monthly qvds that doesn't exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166159#M379623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have monthly so many monthly qvds like below. All these qvds were created based on the csv files.&lt;/P&gt;&lt;P&gt;EMPLOYEE.2016_01.qvd&lt;BR /&gt;EMPLOYEE.2016_02.qvd&lt;BR /&gt;EMPLOYEE.2016_02.qvd&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;EMPLOYEE.2016_07.qvd&lt;/P&gt;&lt;P&gt;Now we receives the data in Database table and it has field called YR_MNTH(201608). As the data will be from DB table I need to create only those monthly qvd's which doesn't exists already.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can someone help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2016 10:49:09 GMT</pubDate>
    <dc:creator>qlikviewforum</dc:creator>
    <dc:date>2016-09-08T10:49:09Z</dc:date>
    <item>
      <title>Creating monthly qvds that doesn't exists</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166159#M379623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have monthly so many monthly qvds like below. All these qvds were created based on the csv files.&lt;/P&gt;&lt;P&gt;EMPLOYEE.2016_01.qvd&lt;BR /&gt;EMPLOYEE.2016_02.qvd&lt;BR /&gt;EMPLOYEE.2016_02.qvd&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;EMPLOYEE.2016_07.qvd&lt;/P&gt;&lt;P&gt;Now we receives the data in Database table and it has field called YR_MNTH(201608). As the data will be from DB table I need to create only those monthly qvd's which doesn't exists already.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can someone help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 10:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166159#M379623</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2016-09-08T10:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating monthly qvds that doesn't exists</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166160#M379624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To ensure the data-consistency to the database I would create each qvd-slice new. For this you could use a logic like here: &lt;A href="https://community.qlik.com/docs/DOC-7591"&gt;Year Wise Qvd creation from Source Data&lt;/A&gt;. You need only to change the year to your YearMonth. If really want to add the missing slices you could use a quite similar logic and skip the loading or maybe the storing of the qvd - maybe something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if filesize(QVDFilenameVariable) &amp;gt; 0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do nothing&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; store QVDFilenameVariable into QVDFilenameVariable.qvd (qvd);&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 11:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166160#M379624</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-09-08T11:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating monthly qvds that doesn't exists</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166161#M379625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rikab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the incremental load approach here.&lt;/P&gt;&lt;P&gt;First you need to find the max date from data which is already loaded in qvw file.&lt;/P&gt;&lt;P&gt;Afterward you have to load only those records from database whose date &amp;gt;max(date in qvw).&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;max(YR_MNTH)&amp;nbsp; as MaxDate from existing_data_set;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vmaxdate= &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num(Peek&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN class="il"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('MaxDate', 0, 'Temp')); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;from table&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;Date(YR_MNTH) &amp;gt; vmaxdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chetan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 11:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166161#M379625</guid>
      <dc:creator>chetansehgal</dc:creator>
      <dc:date>2016-09-08T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating monthly qvds that doesn't exists</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166162#M379626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marcus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other alternative guys please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 13:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166162#M379626</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2016-09-08T13:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating monthly qvds that doesn't exists</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166163#M379627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but when we data for two months then this wont workout right? Can you please suggest someother method.&lt;/P&gt;&lt;P&gt;I thought of below one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Find all the distinct months loaded so far based on the existing QVD's&lt;BR /&gt;2. Find out distinct months that need to be created qvd based on the data available in database using where not exists. May be comma seperated dates(2016_08,2016_09).&lt;BR /&gt;3. Use a loop to create only those qvd's that doesn't exists. I this case it will generate only 2016_08 and 2016_09 which doesn't exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got the idea but struggling to start with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 06:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-monthly-qvds-that-doesn-t-exists/m-p/1166163#M379627</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2016-09-12T06:07:32Z</dc:date>
    </item>
  </channel>
</rss>

