<?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: Daily extraction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19220#M778436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vPath='.\loop\';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;MakeDate(Year,Month,Day) as DateNew;&lt;/P&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;'20'&amp;amp;right (Date,2) as Year,&lt;/P&gt;&lt;P&gt;if(len(Date)&amp;lt;6,mid( Date,2,2 ),mid( Date,3,2 )) as Month,&lt;/P&gt;&lt;P&gt;if(len(Date)&amp;lt;6,left(Date,1),left(Date,2)) as Day&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\QLIK.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Daily extraction]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extractions:&lt;/P&gt;&lt;P&gt;LOAD Distinct Date , DateNew&lt;/P&gt;&lt;P&gt;Resident Temp1;&lt;/P&gt;&lt;P&gt;Drop table Temp1;&lt;/P&gt;&lt;P&gt;let vNoOfRows= NoOfRows('Extractions');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to $(vNoOfRows)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vDBDate=peek('Date',i,'Extractions');&lt;/P&gt;&lt;P&gt;let vNewDate=text(peek('DateNew',i,'Extractions'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp2:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD Client, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rank, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Products&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\loop\QLIK.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Daily extraction])&lt;/P&gt;&lt;P&gt;where Date=$(vDBDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vQVD= vPath &amp;amp; 'QLIK_'&amp;amp; vDBDate; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Temp2 into [$(vQVD).qvd] (qvd);&lt;/P&gt;&lt;P&gt;drop Table Temp2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Apr 2018 11:00:49 GMT</pubDate>
    <dc:creator>andrei_delta</dc:creator>
    <dc:date>2018-04-15T11:00:49Z</dc:date>
    <item>
      <title>Daily extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19215#M778431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Hi Experts,&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Can any one please help me to extract date wise qvds and to store qvd with QLIK_DD/MM/YYYY Format.&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;I have prepared sample excel file for explaining the requirement.&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;My date field is like DDMMYY Format in database.&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;The attached excel file contains three dates but in the real environment one qvd contains last 6 months data from this qvd need to extract one qvd for one date and need to store the qvd with date extension.&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Please help me to do with &lt;STRONG style="background-position: repeat; color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; text-align: left;"&gt;for loop&lt;/STRONG&gt;. Please find the attached excel file.&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;expected output:&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;1. QLIK_09/04/2018.qvd&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;IMG alt="QLIK_090418.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/199267_QLIK_090418.png" style="border-color: #575757; border-style: none; margin: 12px;" /&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;2. &lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;QLIK_10/04/2018.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;IMG alt="QLIK_100418.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/199274_QLIK_100418.png" style="border-color: #575757; border-style: none; margin: 12px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Thanks in advance&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/Daily-extraction/m-p/19215#M778431</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Daily extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19216#M778432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first you need to get the min and max value of the dates. for example by sorting it and then use peek to get the first(0) and last(-1) value. then do a for min to max &lt;/P&gt;&lt;P&gt;within that for loop resident where date = the for counter. and store into qvd with the counter ar the end of the name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 12:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19216#M778432</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2018-04-11T12:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Daily extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19217#M778433</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;Sadly the format you want for the date is not supported when saving qvd so maybe you can think of a different output like 09_04_2018 and your system date is a bit tricky but i managed to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to put your own paths!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 15:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19217#M778433</guid>
      <dc:creator>andrei_delta</dc:creator>
      <dc:date>2018-04-13T15:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Daily extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19218#M778434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share the script or qliksense qvf file. &lt;/P&gt;&lt;P&gt;I don't have Qlikview license.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2018 10:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19218#M778434</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2018-04-15T10:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Daily extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19219#M778435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this link: &lt;A href="https://community.qlik.com/thread/298214"&gt;How to store individual QVD based on field value&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lawrance A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2018 10:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19219#M778435</guid>
      <dc:creator>lawrance</dc:creator>
      <dc:date>2018-04-15T10:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Daily extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19220#M778436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vPath='.\loop\';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;MakeDate(Year,Month,Day) as DateNew;&lt;/P&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;'20'&amp;amp;right (Date,2) as Year,&lt;/P&gt;&lt;P&gt;if(len(Date)&amp;lt;6,mid( Date,2,2 ),mid( Date,3,2 )) as Month,&lt;/P&gt;&lt;P&gt;if(len(Date)&amp;lt;6,left(Date,1),left(Date,2)) as Day&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\QLIK.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Daily extraction]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extractions:&lt;/P&gt;&lt;P&gt;LOAD Distinct Date , DateNew&lt;/P&gt;&lt;P&gt;Resident Temp1;&lt;/P&gt;&lt;P&gt;Drop table Temp1;&lt;/P&gt;&lt;P&gt;let vNoOfRows= NoOfRows('Extractions');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to $(vNoOfRows)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vDBDate=peek('Date',i,'Extractions');&lt;/P&gt;&lt;P&gt;let vNewDate=text(peek('DateNew',i,'Extractions'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp2:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD Client, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rank, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Products&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\loop\QLIK.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Daily extraction])&lt;/P&gt;&lt;P&gt;where Date=$(vDBDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vQVD= vPath &amp;amp; 'QLIK_'&amp;amp; vDBDate; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Temp2 into [$(vQVD).qvd] (qvd);&lt;/P&gt;&lt;P&gt;drop Table Temp2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2018 11:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-extraction/m-p/19220#M778436</guid>
      <dc:creator>andrei_delta</dc:creator>
      <dc:date>2018-04-15T11:00:49Z</dc:date>
    </item>
  </channel>
</rss>

