<?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 Creating a new field by concatenating two field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-new-field-by-concatenating-two-field/m-p/219879#M714663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=HDW;Data Source=dvdb7;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=WCORR896ZB9;Use Encryption for Data=False;Tag with column collation when possible=False]; SQL SELECT "ADMIT_ARRIVE_DATE" as Admit_Date, "DISCHARGE_DISPOSITION_DATE" as Disch_Date, FacilityId, "INSURANCE_ID", "PA_ACCOUNT_STATUS_ID" as STATUS, "PATIENT_ACCOUNT_NUMBER" as ACCT_NUM, "PATIENT_SERVICE_ID", "PATIENT_STATUS_ID", "TOTAL_ADJUSTMENTS" as AdjustmentTotal, "TOTAL_CHARGES" as Charges, "TOTAL_INTEREST", "TOTAL_PAYMENTS" as Receipts, "TOTAL_WRITEOFFS", "VISIT_ID" as VISIT, &lt;STRONG&gt;FAC_INS =concat(FacilityId,"INSURANCE_ID")&lt;/STRONG&gt; FROM HDW.dbo."Aff_VISIT";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is my select statement to being field from my SQL server. I need to create a distinct field by combining the FacilityID and the Insurance_ID. I different facilities that use the same code for different insurance names. My final QV will analyze each distinct insurance plan's performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this script, I get an syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can correct this so the field is available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jul 2010 20:08:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-10T20:08:06Z</dc:date>
    <item>
      <title>Creating a new field by concatenating two field</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-field-by-concatenating-two-field/m-p/219879#M714663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=HDW;Data Source=dvdb7;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=WCORR896ZB9;Use Encryption for Data=False;Tag with column collation when possible=False]; SQL SELECT "ADMIT_ARRIVE_DATE" as Admit_Date, "DISCHARGE_DISPOSITION_DATE" as Disch_Date, FacilityId, "INSURANCE_ID", "PA_ACCOUNT_STATUS_ID" as STATUS, "PATIENT_ACCOUNT_NUMBER" as ACCT_NUM, "PATIENT_SERVICE_ID", "PATIENT_STATUS_ID", "TOTAL_ADJUSTMENTS" as AdjustmentTotal, "TOTAL_CHARGES" as Charges, "TOTAL_INTEREST", "TOTAL_PAYMENTS" as Receipts, "TOTAL_WRITEOFFS", "VISIT_ID" as VISIT, &lt;STRONG&gt;FAC_INS =concat(FacilityId,"INSURANCE_ID")&lt;/STRONG&gt; FROM HDW.dbo."Aff_VISIT";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is my select statement to being field from my SQL server. I need to create a distinct field by combining the FacilityID and the Insurance_ID. I different facilities that use the same code for different insurance names. My final QV will analyze each distinct insurance plan's performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this script, I get an syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can correct this so the field is available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jul 2010 20:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-field-by-concatenating-two-field/m-p/219879#M714663</guid>
      <dc:creator />
      <dc:date>2010-07-10T20:08:06Z</dc:date>
    </item>
    <item>
      <title>Creating a new field by concatenating two field</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-field-by-concatenating-two-field/m-p/219880#M714665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glen,&lt;/P&gt;&lt;P&gt;Try concat(FacilityId,INSURANCE_ID) as FAC_INS or you can do in the QlikView Load. It would be something like this:&lt;/P&gt;&lt;P&gt;Load *, FacilityId &amp;amp; INSURANCE_ID as FAC_INS;&lt;BR /&gt;SQL Select ... ;&lt;/P&gt;&lt;P&gt;Regards, Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jul 2010 20:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-field-by-concatenating-two-field/m-p/219880#M714665</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-07-10T20:17:32Z</dc:date>
    </item>
    <item>
      <title>Creating a new field by concatenating two field</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-field-by-concatenating-two-field/m-p/219881#M714667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Karl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load statement worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jul 2010 20:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-field-by-concatenating-two-field/m-p/219881#M714667</guid>
      <dc:creator />
      <dc:date>2010-07-10T20:27:51Z</dc:date>
    </item>
  </channel>
</rss>

