<?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: Create Multiple QVDs from the YearMonth field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116371#M91097</link>
    <description>&lt;P&gt;You can use Where Exist&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;another_table:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; date&lt;/P&gt;
&lt;P&gt;Where exist(dateFont, date)&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;SQL SELECT date From anotherTable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 08:20:31 GMT</pubDate>
    <dc:creator>Aurelien_Martinez</dc:creator>
    <dc:date>2023-09-13T08:20:31Z</dc:date>
    <item>
      <title>Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116006#M91058</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to create separate Qvds from the Year/Month field.I'm doing this due to the size of the information to use in qliksense later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução"&gt;&lt;SPAN class="Y2IQFc"&gt;OLEDB CONNECT TO xxxxx

SET QVD Directory = '$(QVD path.txt)';

OriginalTable:
SQL SELECTION*
FROM table1 WHERE CAST(dataFont) &amp;gt;= '2023-05-01'; //

**this "dataFont" field is configured to bring year-month-day and time**

Grouped Table:
TO LOAD
*,
Month(Timestamp(dataFont)) AS Month,
Year(timestamp(dataFont)) AS Year
RESIDENTOriginalTable;

FOR Each YearMonth IN FieldValueList('Year' &amp;amp; Month)
LET tablex = 'tabelax_' &amp;amp; YearMonth &amp;amp; '.qvd';
STORE Grouped Table
INTO '$(QVD Directory)$(tabelax)';

NEXT

DISCONNECT;

//DROP TABLEOriginalTable;
//DROP TABLEGroupedTable;

 

 

When generating the qvd, it only brings the accumulated result for the year. I need you to bring the accumulated Years and Months accumulated.

Can anyone help?&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2023 12:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116006#M91058</guid>
      <dc:creator>adrianavila</dc:creator>
      <dc:date>2023-09-12T12:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116016#M91059</link>
      <description>&lt;P&gt;It doesn't look like your loop is actually loading any values - all it does is store the same data into a bunch of differently-named QVDs. You would need to load the relevant data within the loop and then store that.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 12:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116016#M91059</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-09-12T12:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116034#M91062</link>
      <description>&lt;DIV&gt;I have tried several options to generate a loop, but all the attempts I have made have been insufficient.&lt;/DIV&gt;
&lt;DIV&gt;Could you help me how to do the looping?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 13:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116034#M91062</guid>
      <dc:creator>adrianavila</dc:creator>
      <dc:date>2023-09-12T13:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116043#M91063</link>
      <description>&lt;P&gt;The issue isn't (necessarily) with the loop structure - it's that you're not loading anything inside the loop. Even if your loop is correct (something I'm not sure about), you'd get the same result.&lt;/P&gt;
&lt;P&gt;You would typically want to do something like:&lt;/P&gt;
&lt;P&gt;For some values of N&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;NoConcatenate Load * From SomeSource where SomeField = N;&lt;/P&gt;
&lt;P&gt;Store * From Table1 Into FileN;&lt;/P&gt;
&lt;P&gt;Drop Table Table1;&lt;/P&gt;
&lt;P&gt;Loop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your version doesn't load anything, which means you're always storing the full original table.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 13:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116043#M91063</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-09-12T13:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116072#M91069</link>
      <description>&lt;P&gt;right,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but i need to do a looping to generate qvd for every year/month. but idk how to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 13:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116072#M91069</guid>
      <dc:creator>adrianavila</dc:creator>
      <dc:date>2023-09-12T13:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116075#M91070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução"&gt;&lt;SPAN class="Y2IQFc"&gt;Grouped_Table:
LOAD
*,
Month(Timestamp(dataFont)) AS Month,
Year(timestamp(dataFont)) AS Year,&lt;BR /&gt;(Year(timestamp(dataFont))*100) + (Month(Timestamp(dataFont))*1) as YearMonth
RESIDENT OriginalTable;

FOR Each YearMonth IN FieldValueList('YearMonth')
_tmp:&lt;BR /&gt;noconcatenate&lt;BR /&gt;Load&lt;BR /&gt;  *&lt;BR /&gt;resident Grouped_Table&lt;BR /&gt;where&lt;BR /&gt;  YearMonth=$(YearMonth)&lt;BR /&gt;;&lt;BR /&gt;
STORE _tmp INTO '$(QVD Directory)table_$(YearMonth).qvd';&lt;BR /&gt;drop table _tmp;

NEXT YearMonth&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2023 13:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116075#M91070</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2023-09-12T13:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116107#M91072</link>
      <description>&lt;P&gt;Hi, ty for answer.&lt;/P&gt;
&lt;P&gt;This script worked, but only saved a year/month.&lt;/P&gt;
&lt;P&gt;there's something can we do?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 14:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116107#M91072</guid>
      <dc:creator>adrianavila</dc:creator>
      <dc:date>2023-09-12T14:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116111#M91073</link>
      <description>&lt;P&gt;For example, for june 2023 you want a QVD with all data between january and june? Or just june?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 14:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116111#M91073</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2023-09-12T14:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116156#M91076</link>
      <description>&lt;P&gt;forget it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;its works. I forgot "next YEARMONTH".&lt;/P&gt;
&lt;P&gt;xD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ty for help me!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 15:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116156#M91076</guid>
      <dc:creator>adrianavila</dc:creator>
      <dc:date>2023-09-12T15:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116187#M91079</link>
      <description>&lt;DIV id="tw-container" data-cp="1" data-dbrt="10000" data-ddp="true" data-drd="1700" data-is-rde="false" data-is-ver="false" data-nnttsvi="1" data-sbsl=".*" data-sm="1" data-ssbp="false" data-sugg-time="500" data-sugg-url="https://clients1.google.com/complete/search" data-uilc="pt-BR" data-vil=",af,af-ZA,am,am-ET,ar-EG,ar-AE,ar-KW,ar-QA,ar,ar-IL,ar-JO,ar-LB,ar-PS,az,az-AZ,bg,bg-BG,bn,bn-BD,bn-IN,ca,ca-es,cs,cs-CZ,de,de-DE,de-CH,de-AT,de-LI,en,en-US,en-CA,en-AU,en-NZ,en-GB,en-IN,en-KE,en-TZ,en-NG,en-GH,en-PH,en-ZA,es,es-ES,es-AR,es-UY,es-419,es-BO,es-CL,es-CR,es-CO,es-DO,es-EC,es-GT,es-HN,es-NI,es-PA,es-PE,es-PR,es-PY,es-SV,es-VE,es-MX,es-US,eu,eu-ES,fi,fi-FI,fr,fr-FR,fr-CH,fr-BE,gl,gl-ES,gu,gu-IN,he,he-IL,iw,iw-IL,hu,hu-HU,hy,hy-AM,id,id-ID,is,is-IS,it,it-IT,it-CH,ja,ja-JP,jv,jv-ID,ka,ka-GE,km,km-KH,kn,kn-IN,ko,ko-KR,la,lo,lo-LA,lv,lv-LV,ml,ml-IN,mr,mr-IN,ms,ms-MY,nl,nl-NL,nb,nb-NO,ne,ne-NP,pl,pl-PL,pt,pt-BR,pt-PT,ro,ro-RO,ru,ru-RU,si-LK,sk,sk-SK,sr,sr-RS,su,su-ID,sv,sv-SE,sw,sw-TZ,sw-KE,ta,ta-IN,ta-SG,ta-LK,ta-MY,te,te-IN,tr,tr-TR,ur,ur-PK,ur-IN,yue,yue-HK,yue-Hant-HK,zh-HK,zh,zh-CN,zh-cmn,zh-cmn-CN,zh-Hans,zh-Hans-CN,zh-cmn-Hans,zh-cmn-Hans-CN,cmn-CN,cmn-Hans,cmn-Hans-CN,zh-TW,zh-Hant-TW,cmn-TW,cmn-Hant-TW,zh-cmn-TW,zh-cmn-Hant-TW,zu,zu-ZA"&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV id="tw-ob" class="tw-src-ltr"&gt;
&lt;DIV class="oSioSc"&gt;
&lt;DIV id="tw-target"&gt;
&lt;DIV id="kAz1tf" class="g9WsWb"&gt;
&lt;DIV id="tw-target-text-container" class="tw-ta-container F0azHf tw-nfl" tabindex="0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="tw-images"&gt;
&lt;DIV id="tw-container" data-cp="1" data-dbrt="10000" data-ddp="true" data-drd="1700" data-is-rde="false" data-is-ver="false" data-nnttsvi="1" data-sbsl=".*" data-sm="1" data-ssbp="false" data-sugg-time="500" data-sugg-url="https://clients1.google.com/complete/search" data-uilc="pt-BR" data-vil=",af,af-ZA,am,am-ET,ar-EG,ar-AE,ar-KW,ar-QA,ar,ar-IL,ar-JO,ar-LB,ar-PS,az,az-AZ,bg,bg-BG,bn,bn-BD,bn-IN,ca,ca-es,cs,cs-CZ,de,de-DE,de-CH,de-AT,de-LI,en,en-US,en-CA,en-AU,en-NZ,en-GB,en-IN,en-KE,en-TZ,en-NG,en-GH,en-PH,en-ZA,es,es-ES,es-AR,es-UY,es-419,es-BO,es-CL,es-CR,es-CO,es-DO,es-EC,es-GT,es-HN,es-NI,es-PA,es-PE,es-PR,es-PY,es-SV,es-VE,es-MX,es-US,eu,eu-ES,fi,fi-FI,fr,fr-FR,fr-CH,fr-BE,gl,gl-ES,gu,gu-IN,he,he-IL,iw,iw-IL,hu,hu-HU,hy,hy-AM,id,id-ID,is,is-IS,it,it-IT,it-CH,ja,ja-JP,jv,jv-ID,ka,ka-GE,km,km-KH,kn,kn-IN,ko,ko-KR,la,lo,lo-LA,lv,lv-LV,ml,ml-IN,mr,mr-IN,ms,ms-MY,nl,nl-NL,nb,nb-NO,ne,ne-NP,pl,pl-PL,pt,pt-BR,pt-PT,ro,ro-RO,ru,ru-RU,si-LK,sk,sk-SK,sr,sr-RS,su,su-ID,sv,sv-SE,sw,sw-TZ,sw-KE,ta,ta-IN,ta-SG,ta-LK,ta-MY,te,te-IN,tr,tr-TR,ur,ur-PK,ur-IN,yue,yue-HK,yue-Hant-HK,zh-HK,zh,zh-CN,zh-cmn,zh-cmn-CN,zh-Hans,zh-Hans-CN,zh-cmn-Hans,zh-cmn-Hans-CN,cmn-CN,cmn-Hans,cmn-Hans-CN,zh-TW,zh-Hant-TW,cmn-TW,cmn-Hant-TW,zh-cmn-TW,zh-cmn-Hant-TW,zu,zu-ZA"&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV id="tw-images"&gt;How can I use the date field of the "grouped table" to filter another table and export the qvd of this new table according to the date field as well?&lt;/DIV&gt;
&lt;DIV class="dURPtb"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="KFFQ0c xKf9F"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 17:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116187#M91079</guid>
      <dc:creator>adrianavila</dc:creator>
      <dc:date>2023-09-12T17:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple QVDs from the YearMonth field</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116371#M91097</link>
      <description>&lt;P&gt;You can use Where Exist&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;another_table:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; date&lt;/P&gt;
&lt;P&gt;Where exist(dateFont, date)&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;SQL SELECT date From anotherTable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 08:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Multiple-QVDs-from-the-YearMonth-field/m-p/2116371#M91097</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2023-09-13T08:20:31Z</dc:date>
    </item>
  </channel>
</rss>

