<?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: Store one table into multiple files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-one-table-into-multiple-files/m-p/1690247#M593803</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;assuming your table is called Data&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could write a script like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;///loading the data&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From source ;&lt;/P&gt;&lt;P&gt;//////loading distinct values of customers&amp;nbsp;&lt;/P&gt;&lt;P&gt;customers:&lt;/P&gt;&lt;P&gt;load distinct Customer&amp;nbsp;&lt;/P&gt;&lt;P&gt;resident Data;&lt;/P&gt;&lt;P&gt;///looping through customers and saving a csv for each customer&amp;nbsp;&lt;/P&gt;&lt;P&gt;for i = 0 to noofrows('customers')-1&lt;/P&gt;&lt;P&gt;let vCustomer = peek('Customer',$(i),'customers');&lt;/P&gt;&lt;P&gt;customerTable:&lt;/P&gt;&lt;P&gt;noconcatenate Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;where Customer = '$(vCustomer)';&lt;/P&gt;&lt;P&gt;store customerTable into [lib://customerFiles(admin)/customerTable_$(vCustomer).csv](txt);&lt;/P&gt;&lt;P&gt;drop table&amp;nbsp;customerTable;&lt;/P&gt;&lt;P&gt;next&amp;nbsp;&lt;/P&gt;&lt;P&gt;drop table customers;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2020 11:55:13 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2020-04-02T11:55:13Z</dc:date>
    <item>
      <title>Store one table into multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/Store-one-table-into-multiple-files/m-p/1690209#M593802</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a table split by Customers which store into a CSV format ready to send out.&lt;/P&gt;&lt;P&gt;Is there a way that i dynamically can split this table into multiple CSVs based on the customer column.&lt;/P&gt;&lt;P&gt;For example i could manually Load into individual tables with a where clause, store then drop etc, but I want this to be a dynamic process if possible&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-one-table-into-multiple-files/m-p/1690209#M593802</guid>
      <dc:creator>jono19872002</dc:creator>
      <dc:date>2024-11-16T00:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Store one table into multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/Store-one-table-into-multiple-files/m-p/1690247#M593803</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;assuming your table is called Data&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could write a script like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;///loading the data&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From source ;&lt;/P&gt;&lt;P&gt;//////loading distinct values of customers&amp;nbsp;&lt;/P&gt;&lt;P&gt;customers:&lt;/P&gt;&lt;P&gt;load distinct Customer&amp;nbsp;&lt;/P&gt;&lt;P&gt;resident Data;&lt;/P&gt;&lt;P&gt;///looping through customers and saving a csv for each customer&amp;nbsp;&lt;/P&gt;&lt;P&gt;for i = 0 to noofrows('customers')-1&lt;/P&gt;&lt;P&gt;let vCustomer = peek('Customer',$(i),'customers');&lt;/P&gt;&lt;P&gt;customerTable:&lt;/P&gt;&lt;P&gt;noconcatenate Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;where Customer = '$(vCustomer)';&lt;/P&gt;&lt;P&gt;store customerTable into [lib://customerFiles(admin)/customerTable_$(vCustomer).csv](txt);&lt;/P&gt;&lt;P&gt;drop table&amp;nbsp;customerTable;&lt;/P&gt;&lt;P&gt;next&amp;nbsp;&lt;/P&gt;&lt;P&gt;drop table customers;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 11:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-one-table-into-multiple-files/m-p/1690247#M593803</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2020-04-02T11:55:13Z</dc:date>
    </item>
  </channel>
</rss>

