<?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: Table Structuring in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279650#M86471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edil, I once did something similar to that; I had folder in which I had 3 excel files, each one contains the client, and its sales (sthing like this)&lt;/P&gt;&lt;P&gt;But each file have a name of a country : Tunisia.xls, Algeria.xls and so on; so every file was specific to a country;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did, is creating a new country field based on the name of the excel file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here how it goes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vDir='D:\Formation\Flags examples\FlagConcat';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;test:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD '' as SalesMan, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as Pays&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vF=;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for each vF in filelist (vDir &amp;amp; '\*.xls' )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; let name= SubField('$(vF)', '\',5) ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; let vName= '$(name)' ; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate(test)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;LOAD SalesMan, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField('$(vName)','.' ,1) as Pays&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;D&gt;&lt;/D&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Feuil1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;next vF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pays:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD SalesMan, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pays&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident test&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where Sales&amp;lt;&amp;gt;Null();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; DROP Table test;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2017 11:34:39 GMT</pubDate>
    <dc:creator>OmarBenSalem</dc:creator>
    <dc:date>2017-02-28T11:34:39Z</dc:date>
    <item>
      <title>Table Structuring</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279647#M86468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a set of Excel files (one file for each country or one country-per-sheet in some cases) with sales data by year, month, item name etc., but without a country field.&lt;/P&gt;&lt;P&gt;I want to connect to all these files and create visualizations including all of them.&lt;/P&gt;&lt;P&gt;Do I have to create a separate field called Country and write country name there or is there other way I can use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 10:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279647#M86468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-28T10:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structuring</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279648#M86469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to create a Country field but you didn't do it manually. With file-functions like filebasename() you could read the filename from currently loaded file and with additional string-functions like subfield(), mid() and so on you could separate the Country value if there are further prefix/suffix within the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the sheet-names could be read but for this you will need to load xls per ODBC like in this example: &lt;A href="https://community.qlik.com/docs/DOC-7860"&gt;Loading Multiple Excel Sheets Dynamically along with file name and sheet name&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279648#M86469</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-02-28T11:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structuring</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279649#M86470</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 the country name is part of the filename &lt;/P&gt;&lt;P&gt;than you can use filename() in your script to add it as a new field in the table.&lt;/P&gt;&lt;P&gt;if the country name in in sheet level &lt;/P&gt;&lt;P&gt;you'll need to with the method that load excel via odbc connection &lt;/P&gt;&lt;P&gt;than every sheet is a table &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279649#M86470</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2017-02-28T11:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structuring</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279650#M86471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edil, I once did something similar to that; I had folder in which I had 3 excel files, each one contains the client, and its sales (sthing like this)&lt;/P&gt;&lt;P&gt;But each file have a name of a country : Tunisia.xls, Algeria.xls and so on; so every file was specific to a country;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did, is creating a new country field based on the name of the excel file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here how it goes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vDir='D:\Formation\Flags examples\FlagConcat';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;test:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD '' as SalesMan, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as Pays&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vF=;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for each vF in filelist (vDir &amp;amp; '\*.xls' )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; let name= SubField('$(vF)', '\',5) ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; let vName= '$(name)' ; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate(test)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;LOAD SalesMan, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField('$(vName)','.' ,1) as Pays&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;D&gt;&lt;/D&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Feuil1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;next vF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pays:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD SalesMan, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pays&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident test&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where Sales&amp;lt;&amp;gt;Null();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; DROP Table test;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279650#M86471</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2017-02-28T11:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structuring</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279651#M86472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi E´dil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have an example (like an screenshot) of your issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;´beck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 12:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279651#M86472</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2017-02-28T12:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structuring</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279652#M86473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at this: &lt;A href="https://www.youtube.com/watch?v=CqvINEVAr8w" title="https://www.youtube.com/watch?v=CqvINEVAr8w"&gt;https://www.youtube.com/watch?v=CqvINEVAr8w&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope that resolves your issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;beck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 12:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279652#M86473</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2017-02-28T12:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structuring</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279653#M86474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone,&lt;/P&gt;&lt;P&gt;With all this headache I think I will just stick to adding a country field to the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 20:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Table-Structuring/m-p/1279653#M86474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-28T20:26:13Z</dc:date>
    </item>
  </channel>
</rss>

