<?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: Getting load to work with if and exists? in Catalog and Lineage</title>
    <link>https://community.qlik.com/t5/Catalog-and-Lineage/Getting-load-to-work-with-if-and-exists/m-p/2447507#M1609</link>
    <description>&lt;P&gt;Use the Alias Statement to map the variations.&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/February2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Alias.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/February2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Alias.htm&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;Alias&amp;nbsp;&lt;SPAN&gt;"Customer number" as&amp;nbsp;"Customer #",&amp;nbsp;"Client No." as&amp;nbsp;"Customer #";&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;More: &lt;A href="https://qlikviewcookbook.com/2018/12/loading-varying-column-names/" target="_blank" rel="noopener"&gt;https://qlikviewcookbook.com/2018/12/loading-varying-column-names/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 19:08:16 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2024-05-01T19:08:16Z</dc:date>
    <item>
      <title>Getting load to work with if and exists?</title>
      <link>https://community.qlik.com/t5/Catalog-and-Lineage/Getting-load-to-work-with-if-and-exists/m-p/2447443#M1607</link>
      <description>&lt;P&gt;Hey folks.&lt;/P&gt;
&lt;P&gt;I have a situation where I need to join a bunch of similar, but not identical, report files into a single.QVD. I've been renaming headers with python before loading but now my boss wants me to get rid of the python step and do it all in Qlik.&lt;/P&gt;
&lt;P&gt;The issue is that it's a bunch of .CSV files with slightly different header names. For example "Customer #" vs "Customer number" vs "Client No." There's no option to get these to come in harmonized because they're from different vendors.&lt;/P&gt;
&lt;P&gt;I was trying to do something like: Load Distinct If(exists('Customer #'), 'Customer #') as CustomerNumber If(exists('Client No.'), 'Client No.') as CustomerNumber&lt;/P&gt;
&lt;P&gt;But I get an error about the headers not being unique even though I'd expect the If() to return nothing when the Exists() condition fails.&lt;/P&gt;
&lt;P&gt;Moving the "as CustomerNumber" inside the If() statement is a syntax error.&lt;/P&gt;
&lt;P&gt;Is there a way to do this without making temporary tables and conctenating? I'm now doing it this way and it's working but it seems inelegant and like it's more steps than should be needed.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 14:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Catalog-and-Lineage/Getting-load-to-work-with-if-and-exists/m-p/2447443#M1607</guid>
      <dc:creator>aayenge2</dc:creator>
      <dc:date>2024-05-01T14:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting load to work with if and exists?</title>
      <link>https://community.qlik.com/t5/Catalog-and-Lineage/Getting-load-to-work-with-if-and-exists/m-p/2447507#M1609</link>
      <description>&lt;P&gt;Use the Alias Statement to map the variations.&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/February2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Alias.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/February2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Alias.htm&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;Alias&amp;nbsp;&lt;SPAN&gt;"Customer number" as&amp;nbsp;"Customer #",&amp;nbsp;"Client No." as&amp;nbsp;"Customer #";&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;More: &lt;A href="https://qlikviewcookbook.com/2018/12/loading-varying-column-names/" target="_blank" rel="noopener"&gt;https://qlikviewcookbook.com/2018/12/loading-varying-column-names/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 19:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Catalog-and-Lineage/Getting-load-to-work-with-if-and-exists/m-p/2447507#M1609</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-05-01T19:08:16Z</dc:date>
    </item>
  </channel>
</rss>

