<?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: Excel Sheets in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263944#M398361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [Bookings.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;_Sales);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Mar 2017 09:07:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-23T09:07:15Z</dc:date>
    <item>
      <title>Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263939#M398356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with this scenario, the attached excel file has 2 sheets with the same columns . the sheet names are&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;city1_Sales&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp;&amp;nbsp; city2_Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to read the content of both sheets in the same load script . How can this be achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 08:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263939#M398356</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-03-23T08:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263940#M398357</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;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;a&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 2&lt;BR /&gt; &lt;BR /&gt; Data:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [Bookings.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; city&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(a)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;_Sales);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;a&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 08:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263940#M398357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-23T08:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263941#M398358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deran,&lt;/P&gt;&lt;P&gt;thanks for your reply . The only constant here is _Sales. some sheets could be City22_Sales&amp;nbsp;&amp;nbsp; or town1_Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 08:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263941#M398358</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-03-23T08:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263942#M398359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Deran! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/check.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 08:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263942#M398359</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-03-23T08:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263943#M398360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the loop and variable and try  *_Sales on the file name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 08:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263943#M398360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-23T08:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263944#M398361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [Bookings.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;_Sales);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 09:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263944#M398361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-23T09:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263945#M398362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think the wildcard will work for sheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/402738"&gt;Best way to read excel sheet with many tab ?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 09:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263945#M398362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-23T09:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263946#M398363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Deran is right the wildcard won't work for sheets..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 09:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263946#M398363</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-03-23T09:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263947#M398364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Didier,&lt;BR /&gt;There are several ways to do what you want. However it is also depending on how you would like to use/merge the data. &lt;BR /&gt;If you just want to have the contents of both sheets in one table and nothing aggregated, you will need to differentiate between the values from City 1 and 2.&lt;SPAN style="font-size: 10pt;"&gt;This can be done using a concatenate load &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;statement that will append the values from the second city sheet (&lt;STRONG&gt;City2_Sales&lt;/STRONG&gt;) to the values of the first city sheet (&lt;STRONG&gt;city1_Sales&lt;/STRONG&gt;). &lt;BR /&gt;A key value should be generated to avoid the Sales_ID fields from the cities to be linked/mixed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have created an example that loads both data sets into one table and adds the key field. Just put it in the same folder as the excel sheet and reload the data. Then modify some data or add some data to the sheets and reload again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding more cities with data now consists of copying the concatenate load part in the script and modifying the City id in two places + the name of the sheet to load data from. See the code snippet below, with the id's that must be changed in blue.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;concatenate load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt; '&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;0002&lt;/STRONG&gt;&lt;/SPAN&gt;' &amp;amp; '|' &amp;amp; Text(Sales_ID) AS CitySales_ID, //concatenate city number with sales_ID per city&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sale_Date, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sale_Volume, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sale_Customer, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;0002&lt;/STRONG&gt;&lt;/SPAN&gt;' AS City_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;[.\Bookings.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;(ooxml, embedded labels, table is &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;city2_Sales&lt;/STRONG&gt;&lt;/SPAN&gt;, filters(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;ColXtr(1, RowCnd(CellValue, 1, StrCnd(null, not)), 0),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080;"&gt;Remove(Row, RowCnd(CellValue, 1, StrCnd(null)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could even modify the load script to iterate through the sheets if you make a separate sheet (&lt;STRONG&gt;City_list&lt;/STRONG&gt;) a list of sheet names with City number in the Excel workbook and load that first. Retrieve the names one by one from the list and put them in a variable. Create a For .. Next loop to loop through the values and concatenate load all cities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun Qlik-ing around!&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 10:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263947#M398364</guid>
      <dc:creator>flaurntiu</dc:creator>
      <dc:date>2017-03-23T10:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263948#M398365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Ferry&amp;nbsp; this is the concept I will adopt. You saved my day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 10:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263948#M398365</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-03-23T10:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheets in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263949#M398366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Didier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created sample application as per your requirement. Please refer the same in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;P.S.: I have created excel macro to populate the sheet names in first sheet. Once your add new sheet to the report then run the macro to get the latest sheet names.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 10:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheets-in-load-script/m-p/1263949#M398366</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-03-23T10:37:35Z</dc:date>
    </item>
  </channel>
</rss>

