<?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: Modifying fields in LOAD without specifying all of them in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Modifying-fields-in-LOAD-without-specifying-all-of-them/m-p/1422202#M812504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the way which you describe it's not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you could load tables which contain your source-table, field-names and their possible formattings and other transformations and a lot of other informations and creating with them a load-script on the fly - but you will at least transfer a certain part of write-work to another place/tool and more important you would add a lot of complexity. It would be not simplifying things else it would be the opposite ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2017 09:06:30 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-09-27T09:06:30Z</dc:date>
    <item>
      <title>Modifying fields in LOAD without specifying all of them</title>
      <link>https://community.qlik.com/t5/QlikView/Modifying-fields-in-LOAD-without-specifying-all-of-them/m-p/1422200#M812502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm rather new to QlikView, and I was hoping some more experienced users might like to give me a pointer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;BR /&gt;EmployeeID,&lt;BR /&gt;LastName,&lt;BR /&gt;FirstName,&lt;BR /&gt;Date(BirthDate, 'yyyy-MM-dd') as BirthDate,&lt;BR /&gt;Date(HireDate, 'yyyy-MM-dd') as HireDate,&lt;BR /&gt;LastName &amp;amp; ', ' &amp;amp; FirstName as SortName,&lt;BR /&gt;Date(Today()) - HireDate as HireTime; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;BR /&gt;EmployeeID,&lt;BR /&gt;LastName,&lt;BR /&gt;FirstName,&lt;BR /&gt;BirthDate,&lt;BR /&gt;HireDate&lt;BR /&gt;FROM Northwind.dbo.Employees;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code I don't want to do a SELECT * clause, because I believe that would cause more database load than necessary. I can't do a LOAD * because I don't want to load the all selected fields exactly as-is (I want to modify the date fields). I could of course do these date modifications in the SQL clause, but here's my question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some "shorthand" way to write a load statement like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load all fields from select clause as-is&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;// ... EXCEPT for these two fields, which I would like to modify:&lt;BR /&gt;Date(BirthDate, 'yyyy-MM-dd') as BirthDate,&lt;BR /&gt;Date(HireDate, 'yyyy-MM-dd') as HireDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// ... and then add some new fields.&lt;BR /&gt;LastName &amp;amp; ', ' &amp;amp; FirstName as SortName,&lt;BR /&gt;Date(Today()) - HireDate as HireTime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the above pseudo-code makes sense. My aim here is to reduce the amount of code, not having to specify all fields twice just because I need to modify some of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance to anyone who might take pity on a noob.&amp;nbsp;&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifying-fields-in-LOAD-without-specifying-all-of-them/m-p/1422200#M812502</guid>
      <dc:creator>sir_ogrim</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying fields in LOAD without specifying all of them</title>
      <link>https://community.qlik.com/t5/QlikView/Modifying-fields-in-LOAD-without-specifying-all-of-them/m-p/1422201#M812503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;LastName &amp;amp; ', ' &amp;amp; FirstName as SortName, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EmployeeID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LastName,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FirstName,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(BirthDate, 'yyyy-MM-dd') as BirthDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(HireDate, 'yyyy-MM-dd') as HireDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LastName &amp;amp; ', ' &amp;amp; FirstName as SortName,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(Today()) - HireDate as HireTime;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 07:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifying-fields-in-LOAD-without-specifying-all-of-them/m-p/1422201#M812503</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-27T07:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying fields in LOAD without specifying all of them</title>
      <link>https://community.qlik.com/t5/QlikView/Modifying-fields-in-LOAD-without-specifying-all-of-them/m-p/1422202#M812504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the way which you describe it's not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you could load tables which contain your source-table, field-names and their possible formattings and other transformations and a lot of other informations and creating with them a load-script on the fly - but you will at least transfer a certain part of write-work to another place/tool and more important you would add a lot of complexity. It would be not simplifying things else it would be the opposite ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 09:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifying-fields-in-LOAD-without-specifying-all-of-them/m-p/1422202#M812504</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-09-27T09:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying fields in LOAD without specifying all of them</title>
      <link>https://community.qlik.com/t5/QlikView/Modifying-fields-in-LOAD-without-specifying-all-of-them/m-p/1422203#M812505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply! Something like this would have been convenient, but on the other hand if I need to rename most fields (which I realise I will probably be doing a lot), the need for a "shorthand" solution might not be so big after all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 11:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifying-fields-in-LOAD-without-specifying-all-of-them/m-p/1422203#M812505</guid>
      <dc:creator>sir_ogrim</dc:creator>
      <dc:date>2017-09-27T11:22:35Z</dc:date>
    </item>
  </channel>
</rss>

