<?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: How to combine two fields into one, in the load script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526544#M689316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First I try, then I'd be sure.&lt;/P&gt;&lt;P&gt;I always prefer my face turns &lt;STRONG style="text-decoration: underline;"&gt;red&lt;/STRONG&gt; before than &lt;STRONG style="text-decoration: underline;"&gt;green&lt;/STRONG&gt; after.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CB.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 21:55:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-11-14T21:55:04Z</dc:date>
    <item>
      <title>How to combine two fields into one, in the load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526541#M689313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our sales data we have the STATE_FIPS code and the COUNTY_FIPS code as independent fields, but I need one field created that combines these two fields with a hyphen.&amp;nbsp; I've tried various things like STATE_FIPS &amp;amp; '-' &amp;amp; COUNTY_FIPS to show 10-029 for example, but can't get it to work.&amp;nbsp; The other thing that may be going on is QV could be seeing each of these independent fields as numbers rather than text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 17:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526541#M689313</guid>
      <dc:creator />
      <dc:date>2013-11-14T17:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields into one, in the load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526542#M689314</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;You may try: text(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;STATE_FIPS&lt;/SPAN&gt;)&amp;amp;'-'&amp;amp;text(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNTY_FIPS&lt;/SPAN&gt;) as NewField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 18:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526542#M689314</guid>
      <dc:creator />
      <dc:date>2013-11-14T18:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields into one, in the load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526543#M689315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 19:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526543#M689315</guid>
      <dc:creator />
      <dc:date>2013-11-14T19:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields into one, in the load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526544#M689316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First I try, then I'd be sure.&lt;/P&gt;&lt;P&gt;I always prefer my face turns &lt;STRONG style="text-decoration: underline;"&gt;red&lt;/STRONG&gt; before than &lt;STRONG style="text-decoration: underline;"&gt;green&lt;/STRONG&gt; after.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CB.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 21:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526544#M689316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-14T21:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields into one, in the load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526545#M689317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gerrit.&amp;nbsp; I tried this before too and just now again, and receive an error message that 'TEXT' is not a recognized built-in function name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 23:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526545#M689317</guid>
      <dc:creator />
      <dc:date>2013-11-26T23:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields into one, in the load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526546#M689318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing this in SQL statement?&amp;nbsp; Your initial attempt&lt;/P&gt;&lt;P&gt;STATE_FIPS &amp;amp; '-' &amp;amp; COUNTY_FIPS&lt;/P&gt;&lt;P&gt;is for QV script, no for SQL.&amp;nbsp; In SQL, you can do this:&lt;/P&gt;&lt;P&gt;STATE_FIPS &lt;STRONG&gt;+&lt;/STRONG&gt; '-' &lt;STRONG&gt;+&lt;/STRONG&gt; COUNTY_FIPS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 00:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526546#M689318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-27T00:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields into one, in the load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526547#M689319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Thank you so much!&amp;nbsp; Forgive me, but I am trying to learn all of this on my own and do not know SQL either, so I am learning that too.&amp;nbsp; I was in Edit Script, but I guess loading a table from our data warehouse is using the SQL and loading from as Excel file is using the QV script.&amp;nbsp; So, I had the SQL at the start of the load for this table and so I used your second option above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt; SELECT "ORDER_NO",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMPANY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ST_FIPS",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CTY_FIPS",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"ST_FIPS"+'-'+"CTY_FIPS" as FIPS,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "RECORD_TYPE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOURCE&lt;/P&gt;&lt;P&gt;FROM "IFSDW_PROD".dbo."Dw_FACT_DISTRIBUTOR_SALES";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And IT WORKED!!&amp;nbsp; Thanks again as I had been trying everything I could find or think of trying!&amp;nbsp; Hopefully, this helps others as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 15:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526547#M689319</guid>
      <dc:creator />
      <dc:date>2013-11-27T15:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields into one, in the load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526548#M689320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some additional info...&lt;/P&gt;&lt;P&gt;SQL statements use SQL syntax, they don't understand QV syntax.&amp;nbsp; The suggestion from &lt;A href="https://community.qlik.com/qlik-users/49350"&gt;Gerrit Zanen&lt;/A&gt; and your response were helpful to identify the problem.&lt;/P&gt;&lt;P&gt;If you want to use QV functionality, you still can do it using preceding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ORDER_NO",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; COMPANY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ST_FIPS",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CTY_FIPS",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"ST_FIPS"&amp;amp;'-'&amp;amp;"CTY_FIPS" as FIPS,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "RECORD_TYPE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOURCE;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ORDER_NO",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMPANY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ST_FIPS",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CTY_FIPS",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "RECORD_TYPE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOURCE&lt;/P&gt;&lt;P&gt;FROM "IFSDW_PROD".dbo."Dw_FACT_DISTRIBUTOR_SALES";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case it is not necessary, but often you may need other QV functions that don't have analogs in SQL, and preceding load may be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; Loading from the databases, use SQL syntax.&amp;nbsp; Loading from excel and other files, resident load, preceding load - QV syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 15:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526548#M689320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-27T15:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields into one, in the load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526549#M689321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Thanks for this too.&amp;nbsp; I agree that this will come in handy as you mention.&lt;/P&gt;&lt;P&gt;It seems like there's a lot of power in the script, but I am finding that it is one of the hardest things to figure out and learn with QlikView - even trying to use the actual QV reference manual.&amp;nbsp; The power the script has seems to make it more technical, but I'm getting there!&lt;/P&gt;&lt;P&gt;Awesome input!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 15:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-fields-into-one-in-the-load-script/m-p/526549#M689321</guid>
      <dc:creator />
      <dc:date>2013-11-27T15:32:00Z</dc:date>
    </item>
  </channel>
</rss>

