<?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 multiple objects based on length in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-multiple-objects-based-on-length/m-p/1768684#M718486</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I managed to export multiple objects in excel&amp;nbsp; using the code found in&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Exporting-multiple-objects-to-multiple-Excel-sheets/td-p/1314211" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/Exporting-multiple-objects-to-multiple-Excel-sheets/td-p/1314211&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or in&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Export-Qlikview-objects-to-multiple-Excel-sheet/ta-p/1482334" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Export-Qlikview-objects-to-multiple-Excel-sheet/ta-p/1482334&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Although, now I encounter another problem.....&lt;/P&gt;&lt;P&gt;I want to export the same objects in data type and the problem is that the length of each object varies and changes depending on the selections.&lt;/P&gt;&lt;P&gt;So I'm wondering if there a way to define the object's position in the exported excel depending on the length of the previous/above table??&lt;BR /&gt;i.e. instead of writing e.g. "A1", "A10", "A20", .., " A60"&lt;/P&gt;&lt;P&gt;That is, if the first (1st) exported object has 20 rows, I want it to be placed in "A1" and the next (2nd) in "A22". (leave a row between tables)&lt;BR /&gt;Then if the 2nd has 12 rows, I want the third (3rd) to be placed in "A35" (35 = 22+12+1), etc.&lt;/P&gt;&lt;P&gt;I have seen somewhere the "A"&amp;amp;iCount, where iCount can be a variable containing the lengths?&lt;BR /&gt;I don't know how it can work.&lt;BR /&gt;Can I use something like this to the code I've already found and tested? which is the one described in the attached links.&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 17:03:00 GMT</pubDate>
    <dc:creator>ND1</dc:creator>
    <dc:date>2020-12-15T17:03:00Z</dc:date>
    <item>
      <title>Export multiple objects based on length</title>
      <link>https://community.qlik.com/t5/QlikView/Export-multiple-objects-based-on-length/m-p/1768684#M718486</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I managed to export multiple objects in excel&amp;nbsp; using the code found in&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Exporting-multiple-objects-to-multiple-Excel-sheets/td-p/1314211" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/Exporting-multiple-objects-to-multiple-Excel-sheets/td-p/1314211&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or in&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Export-Qlikview-objects-to-multiple-Excel-sheet/ta-p/1482334" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Export-Qlikview-objects-to-multiple-Excel-sheet/ta-p/1482334&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Although, now I encounter another problem.....&lt;/P&gt;&lt;P&gt;I want to export the same objects in data type and the problem is that the length of each object varies and changes depending on the selections.&lt;/P&gt;&lt;P&gt;So I'm wondering if there a way to define the object's position in the exported excel depending on the length of the previous/above table??&lt;BR /&gt;i.e. instead of writing e.g. "A1", "A10", "A20", .., " A60"&lt;/P&gt;&lt;P&gt;That is, if the first (1st) exported object has 20 rows, I want it to be placed in "A1" and the next (2nd) in "A22". (leave a row between tables)&lt;BR /&gt;Then if the 2nd has 12 rows, I want the third (3rd) to be placed in "A35" (35 = 22+12+1), etc.&lt;/P&gt;&lt;P&gt;I have seen somewhere the "A"&amp;amp;iCount, where iCount can be a variable containing the lengths?&lt;BR /&gt;I don't know how it can work.&lt;BR /&gt;Can I use something like this to the code I've already found and tested? which is the one described in the attached links.&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 17:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-multiple-objects-based-on-length/m-p/1768684#M718486</guid>
      <dc:creator>ND1</dc:creator>
      <dc:date>2020-12-15T17:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple objects based on length</title>
      <link>https://community.qlik.com/t5/QlikView/Export-multiple-objects-based-on-length/m-p/1768969#M718487</link>
      <description>&lt;P&gt;You could count the number of dimension-values within your objects, like:&lt;/P&gt;&lt;P&gt;count(distinct Dim1&amp;amp;Dim2&amp;amp;Dim3)&lt;/P&gt;&lt;P&gt;within a Qlik variable which you queries within the macro. And there you have a macro-variable which iterates this value within your loop + the header of your table + total lines + your distance rows.&lt;/P&gt;&lt;P&gt;Another way would be to check the last row within Excel with UsedRange or similar features. For this take a look on the various vba communities and you will find a lot of examples.&lt;/P&gt;&lt;P&gt;I think the second suggestion would be easier to implement.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 12:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-multiple-objects-based-on-length/m-p/1768969#M718487</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-12-16T12:47:36Z</dc:date>
    </item>
  </channel>
</rss>

