<?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 Storing data into 4 different folders of 4 different clients which are coming from same QVD in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Storing-data-into-4-different-folders-of-4-different-clients/m-p/2429014#M96408</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Hope you are doing well!&lt;/P&gt;
&lt;P&gt;I have a QVD which consists of multiple clients data(Ex: 4 clients). Here my requirement is to store this QVD into multiple folders based on client name.&lt;/P&gt;
&lt;P&gt;For Example: Client 1 data I have to store into Folder 1&amp;nbsp; and&amp;nbsp;Client 2 data I have to store into Folder 2 and so on....&lt;/P&gt;
&lt;P&gt;But I have to achieve this with single reload&lt;/P&gt;
&lt;P&gt;, May be through loops we may achieve this.&lt;/P&gt;
&lt;P&gt;Can any one suggest a way to achieve this?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Many Thanks in Advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Mar 2024 17:05:01 GMT</pubDate>
    <dc:creator>SP_Qlik</dc:creator>
    <dc:date>2024-03-09T17:05:01Z</dc:date>
    <item>
      <title>Storing data into 4 different folders of 4 different clients which are coming from same QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-data-into-4-different-folders-of-4-different-clients/m-p/2429014#M96408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Hope you are doing well!&lt;/P&gt;
&lt;P&gt;I have a QVD which consists of multiple clients data(Ex: 4 clients). Here my requirement is to store this QVD into multiple folders based on client name.&lt;/P&gt;
&lt;P&gt;For Example: Client 1 data I have to store into Folder 1&amp;nbsp; and&amp;nbsp;Client 2 data I have to store into Folder 2 and so on....&lt;/P&gt;
&lt;P&gt;But I have to achieve this with single reload&lt;/P&gt;
&lt;P&gt;, May be through loops we may achieve this.&lt;/P&gt;
&lt;P&gt;Can any one suggest a way to achieve this?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Many Thanks in Advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 17:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-data-into-4-different-folders-of-4-different-clients/m-p/2429014#M96408</guid>
      <dc:creator>SP_Qlik</dc:creator>
      <dc:date>2024-03-09T17:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Storing data into 4 different folders of 4 different clients which are coming from same QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-data-into-4-different-folders-of-4-different-clients/m-p/2429017#M96409</link>
      <description>&lt;P&gt;With just four clients you could just repeat yourself four times. Something like this:&lt;/P&gt;
&lt;P&gt;client1: load * from [qvdfile] (qvd) where CLIENT=1;&lt;/P&gt;
&lt;P&gt;store client1 into [qlient1.qvd] (qvd);&lt;/P&gt;
&lt;P&gt;drop table client1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do the same for each client. If you’ve got many clients you could first load distinct client from [qvdfile] into a table, and after that you do a for-loop that iterates over that table, extract the client (e.g. with peek() function) into a variable and use the value to load the correct client data from your qvd and store it where you want it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 18:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-data-into-4-different-folders-of-4-different-clients/m-p/2429017#M96409</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2024-03-09T18:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Storing data into 4 different folders of 4 different clients which are coming from same QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-data-into-4-different-folders-of-4-different-clients/m-p/2429157#M96418</link>
      <description>&lt;P&gt;Sample script below&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Replace ClientField to be exact field name that has the Client values&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;KeepClients:
Load * inline [
ClientList
C1
C2
C3
C4
];



for each clnt in fieldvaluelist('ClientList')

  Set vTableName = $(clnt) ;

  KeepClnt:
  Load '$(clnt)' as ClientField
  AutoGenerate 1;

  $(vTableName):
  Load * 
  From MainQvd.qvd(qvd)
  Where Exists(ClientField);
  
  Store $(vTableName)  into [lib://Somefolder/$(vTableName).qvd](qvd);
  Drop table $(vTableName);
  Drop table KeepClnt;
  
next clnt;

Drop table KeepClients;

exit Script;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 06:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-data-into-4-different-folders-of-4-different-clients/m-p/2429157#M96418</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2024-03-11T06:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Storing data into 4 different folders of 4 different clients which are coming from same QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-data-into-4-different-folders-of-4-different-clients/m-p/2431133#M96598</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you so much for your post as its resolved my issue with little bit changes in script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You,&lt;/P&gt;
&lt;P&gt;SP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 07:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-data-into-4-different-folders-of-4-different-clients/m-p/2431133#M96598</guid>
      <dc:creator>SP_Qlik</dc:creator>
      <dc:date>2024-03-15T07:50:32Z</dc:date>
    </item>
  </channel>
</rss>

