<?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 Variations in names on a batch load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211737#M65929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about something like&lt;/P&gt;&lt;P&gt;if(isnull(Sales),[Sales ($)], Sales) as Sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2009 06:03:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-09T06:03:20Z</dc:date>
    <item>
      <title>Variations in names on a batch load</title>
      <link>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211736#M65928</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;Im not sure of the terminology for this type of load but I have hundreds of files in a folder that are all formatted the same with a defined naming function that indicates the week they relate to. I do a load where I replace the file name with a * and it loads all of the files in that folder... possibly a wild card??&lt;/P&gt;&lt;P&gt;e.g. FROM &lt;R&gt; (ansi, txt, delimiter is '\t', embedded labels, msq);&lt;/R&gt;&lt;/P&gt;&lt;P&gt;The problem I have come across is that one of the columns was previously called "Sales" in older reports and it has changed to "Sales ($)" in the last few weeks.&lt;/P&gt;&lt;P&gt;If it was just an internal report I would make sure they were uniform but as they are reports downloaded from an external source I need to find a way around it.&lt;/P&gt;&lt;P&gt;Below is the load, is there a way to tell it to load Sales if the file has Sales as the heading or Sales ($) if thats the heading.&lt;/P&gt;&lt;P&gt;LOAD State,&lt;BR /&gt; [Store] as Location,&lt;BR /&gt; Product,&lt;BR /&gt; Barcode as Barcode#,&lt;BR /&gt; Sales&lt;BR /&gt; FROM &lt;R&gt; (ansi, txt, delimiter is '\t', embedded labels, msq);&lt;/R&gt;&lt;/P&gt;&lt;P&gt;I tried adding a second line under Sales as "Sales ($) as Sales" but that didnt work.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 04:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211736#M65928</guid>
      <dc:creator />
      <dc:date>2009-10-09T04:58:47Z</dc:date>
    </item>
    <item>
      <title>Variations in names on a batch load</title>
      <link>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211737#M65929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about something like&lt;/P&gt;&lt;P&gt;if(isnull(Sales),[Sales ($)], Sales) as Sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 06:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211737#M65929</guid>
      <dc:creator />
      <dc:date>2009-10-09T06:03:20Z</dc:date>
    </item>
    <item>
      <title>Variations in names on a batch load</title>
      <link>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211738#M65930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;dragonauta wrote:if(isnull(Sales),[Sales ($)], Sales) as Sales&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Dragonauta,&lt;/P&gt;&lt;P&gt;When I use this I get an error that Sales ($) doesnt exist when it starts with the reports where its called Sales&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 09:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211738#M65930</guid>
      <dc:creator />
      <dc:date>2009-10-09T09:43:35Z</dc:date>
    </item>
    <item>
      <title>Variations in names on a batch load</title>
      <link>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211739#M65931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... I think that the solution is very simple:&lt;/P&gt;&lt;P&gt;When you choose a XLS file to read with QVW in the script, you need to choose Labels: NONE in the "File Wizard", the name of your columns will be: @1, @2 .. etc and you need to drop the first rows that have the name of the columns, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;@1 as FieldName, &lt;P&gt;@2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;@3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;@4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;@5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;@6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;@7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;FROM&lt;/B&gt; [Llamadas_92380625 Ago.xls] ( biff, no labels, table is [Detalle de Llamadas$], filters (&lt;/P&gt;&lt;P&gt;Remove&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Row, Pos(Top, 1 )) )) ;&lt;/P&gt;&lt;P&gt;So, that way is not matter the name of the columns in your original XLS files ..&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 22:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211739#M65931</guid>
      <dc:creator>GabrielAraya</dc:creator>
      <dc:date>2009-10-09T22:18:51Z</dc:date>
    </item>
    <item>
      <title>Variations in names on a batch load</title>
      <link>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211740#M65932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriel,&lt;/P&gt;&lt;P&gt;Sometimes the simplest solution is the best, thanks for that&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 05:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variations-in-names-on-a-batch-load/m-p/211740#M65932</guid>
      <dc:creator />
      <dc:date>2009-10-12T05:36:25Z</dc:date>
    </item>
  </channel>
</rss>

