<?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 Export by Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285279#M499555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; So, a combination of what you BOTH said seems more appropriate.&amp;nbsp; Part of that has to do with my explanation of the issue, and expected output I'm looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Erich - Your FOR loop looks like it checks for all possible values in a given field, and moves through them until all of the possible field values have been dealt with.&amp;nbsp; This portion is exactly the kind of behavior I was looking to do...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Ralf - You actually had the exact output and concept I was looking for (where Erich was doing more of an immediate export to Word or similar app).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I need to figure out a way to combine the two concepts... I think with this I should be able to collectively put it together.&amp;nbsp; If I come up with an exact step-by-step walkthrough, I will most certainly come back and post it.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just going to take some time, tweaking, and a little more referencing of the scripting language capabilities.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2011 19:27:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-09T19:27:24Z</dc:date>
    <item>
      <title>Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285276#M499552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When dealing with large data structures, it seems like an 'Export' option is really only viable if the dataset is within the limitations of the format it is exporting to.. for example, newer version of Excel only support up to 1.1 million rows, and previous versions were only compatible up to 65k or so (memory ceilings I assume).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, it seems like a great solution would be the ability to auto-export a table to a format automatically in the script itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have a pre-built QVD that I want to divide into 3 separate exports (let's just say for argument's sake that it's by 'DIM1' dimension - or a specific site/location), what would be the method to have QlikView script do such a thing?&amp;nbsp; How do you script a loop to only export the values in the 'current' dimension it is on until it has divded up the table into each respective individual dimension tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 18:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285276#M499552</guid>
      <dc:creator />
      <dc:date>2011-05-09T18:00:57Z</dc:date>
    </item>
    <item>
      <title>Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285277#M499553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;If you check my post at this thread: &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/113679#113679"&gt;http://community.qlik.com/message/113679#113679&lt;/A&gt;&lt;/P&gt;&lt;P&gt; There is a sample application to make selections on a field one by one and export a chart to word. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the For-Next structure you could include a different export method according to your need. &lt;/P&gt;&lt;P&gt;Tell if you need some help to understand or adapt it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 19:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285277#M499553</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-09T19:02:50Z</dc:date>
    </item>
    <item>
      <title>Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285278#M499554</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;I presume that you want to use STORE to a TXT (csv) file in the script. The only way I see is to load each part you want to export to a second table with a filter where clause:&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;FROM xyz.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where dimension = 'DIM1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE temp INTO dim1export.txt (txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// repeat for DIM2 to DIM3, you could also have a loop here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 19:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285278#M499554</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-05-09T19:06:14Z</dc:date>
    </item>
    <item>
      <title>Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285279#M499555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; So, a combination of what you BOTH said seems more appropriate.&amp;nbsp; Part of that has to do with my explanation of the issue, and expected output I'm looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Erich - Your FOR loop looks like it checks for all possible values in a given field, and moves through them until all of the possible field values have been dealt with.&amp;nbsp; This portion is exactly the kind of behavior I was looking to do...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Ralf - You actually had the exact output and concept I was looking for (where Erich was doing more of an immediate export to Word or similar app).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I need to figure out a way to combine the two concepts... I think with this I should be able to collectively put it together.&amp;nbsp; If I come up with an exact step-by-step walkthrough, I will most certainly come back and post it.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just going to take some time, tweaking, and a little more referencing of the scripting language capabilities.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 19:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285279#M499555</guid>
      <dc:creator />
      <dc:date>2011-05-09T19:27:24Z</dc:date>
    </item>
    <item>
      <title>Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285280#M499556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it helped! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to make a loop during script, the syntax will be a bit different. &lt;/P&gt;&lt;P&gt;You can get an example here: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/60269#60269"&gt;http://community.qlik.com/message/60269#60269&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 19:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285280#M499556</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-09T19:33:20Z</dc:date>
    </item>
    <item>
      <title>Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285281#M499557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, I'm actually stuck...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the biggest issue here is that we need to be able to implement the variables in the filenames - in otherwords, as it is pushing through the different possible dimensions (say integers 1-3 are the values possible), it should add that as a portion of the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. : &lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Look at QVD, and for all rows where site_id = 1, save to SITE_INVENTORY_1.CSV&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; (loop assumed) Look at QVD, and for all rows where site_id = 2, save to SITE_INVENTORY_2.CSV&lt;/P&gt;&lt;P&gt;... the syntax that you referenced in the other post Erich didn't seem to apply easily to what I was trying to do because of this small detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 20:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285281#M499557</guid>
      <dc:creator />
      <dc:date>2011-05-09T20:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285282#M499558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, problem. &lt;/P&gt;&lt;P&gt;Please, check attachment. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 20:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285282#M499558</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-09T20:36:08Z</dc:date>
    </item>
    <item>
      <title>Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285283#M499559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I wrote, now with loop and your file and field names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for a=1 to 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; temp:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM xyz.qvd (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where site_id = $(a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; STORE temp INTO SITE_INVENTORY_$(a).csv (txt);&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&amp;nbsp; DROP Table temp;&lt;/P&gt;&lt;P&gt;next;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 20:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285283#M499559</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-05-09T20:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285284#M499560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why does my version of QlikView not believe that "NoConcatenate" should be allowed to go where it is in your example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 20:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285284#M499560</guid>
      <dc:creator />
      <dc:date>2011-05-09T20:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285285#M499561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax checker in QV 10 doesnot recognize some script code and even expression code when you create some complicated set analysis... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 20:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285285#M499561</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-09T20:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285286#M499562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ralf - What about a more dynamic approach?&amp;nbsp; Let's say we've only got 3 sites/stores right now, but that we want the script to check for possible values first before assuming it's just '1 through 3'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are both widening my knowledge by leaps and bounds... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 20:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285286#M499562</guid>
      <dc:creator />
      <dc:date>2011-05-09T20:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285287#M499563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich - Your answer was actually right on the money.. I just ignored the syntax error and let it roll, and it created each file just as it was expected to!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was fantastic, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 20:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285287#M499563</guid>
      <dc:creator />
      <dc:date>2011-05-09T20:56:25Z</dc:date>
    </item>
    <item>
      <title>Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285288#M499564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just made it simple as possible so that's more understandable. It's always easy to complicate things.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw. the NoConcatenate is not needed in this case because the table gets dropped. If needed the right syntax is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempTable:&lt;/P&gt;&lt;P&gt;NoConcatenate load * resident Table &lt;/P&gt;&lt;P&gt;where site_id = $(vTable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 21:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285288#M499564</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-05-09T21:01:37Z</dc:date>
    </item>
    <item>
      <title>Export by Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285289#M499565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha - I see your point now also about it being dropped &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still fresh eyes when it comes to QV, but this community is so fantastic and helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again fellas!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 21:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-by-Dimension/m-p/285289#M499565</guid>
      <dc:creator />
      <dc:date>2011-05-09T21:04:50Z</dc:date>
    </item>
  </channel>
</rss>

