<?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: Combine two fields into one (temp fields for Where Not Exists) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768622#M64232</link>
    <description>&lt;P&gt;When I try that, it says "tempOrderNum not found".&amp;nbsp; I have a table right before the Concatenate Load * that requests new data from my web service and in this table, I alias OrderNum as tempOrderNum. Do I need to create a new table to get this to work?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 13:26:21 GMT</pubDate>
    <dc:creator>kdaniels-obrien</dc:creator>
    <dc:date>2020-12-15T13:26:21Z</dc:date>
    <item>
      <title>Combine two fields into one (temp fields for Where Not Exists)</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768433#M64228</link>
      <description>&lt;P&gt;I am doing an incremental load from a web service. In my load script, I use a where not exists clause.&amp;nbsp; In order for me to concatenate the&amp;nbsp;&lt;STRONG&gt;new data&amp;nbsp;&lt;/STRONG&gt;from the web service with the data&amp;nbsp;&lt;STRONG&gt;stored in a qvd&lt;/STRONG&gt;, I use a temp field when loading from the web service. Unfortunately, this creates two fields: tempOrderNum and OrderNum.&amp;nbsp; On rows where I have a tempOrderNumValue, my OrderNum is null.&amp;nbsp; This means my new data is missing from my UI.&amp;nbsp; How can I specify in the load script something like: if OrderNum is null, replace the null value with tempOrderNum? I have attach some snippets of code and a table displaying the problem.&amp;nbsp; I did see a post similar to mine question but the solution was a .qvw file which I can not open in Qlik Sense. Here is the link to the other problem for reference:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Combine-Two-Fields-As-One/m-p/468059" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Combine-Two-Fields-As-One/m-p/468059&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I load my new data from the web service right before the code seen in the screenshot into a table. In that table, I alias OrderNum as tempOrderNum. I also have a field that gives me the row version from SQL (this acts as my unique ID field)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kdaniels-obrien_1-1607995027017.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45645i23F9C3EB1EFD24F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kdaniels-obrien_1-1607995027017.png" alt="kdaniels-obrien_1-1607995027017.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I get is..&amp;nbsp; (this is dummy data)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kdaniels-obrien_2-1607995256009.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45646iCEF70BE20FBD658A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kdaniels-obrien_2-1607995256009.png" alt="kdaniels-obrien_2-1607995256009.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the tempOrderNum 'BG1011' to replace the null value for row version 18687478.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated! thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768433#M64228</guid>
      <dc:creator>kdaniels-obrien</dc:creator>
      <dc:date>2024-11-16T17:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two fields into one (temp fields for Where Not Exists)</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768434#M64229</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/92437"&gt;@kdaniels-obrien&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load *, tempOrderNum as OrderNum&amp;nbsp;&lt;/P&gt;&lt;P&gt;from [ursource] where not exists(tempOrderNum , OrderNum);&lt;/P&gt;&lt;P&gt;If its works fine, you can drop&amp;nbsp;tempOrderNum&amp;nbsp; field also.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 01:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768434#M64229</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-15T01:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two fields into one (temp fields for Where Not Exists)</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768439#M64230</link>
      <description>&lt;P&gt;I have given that a try but I get an error, "Field must be unique within the table" (I have OrderNum in the QVD table as well)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 02:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768439#M64230</guid>
      <dc:creator>kdaniels-obrien</dc:creator>
      <dc:date>2020-12-15T02:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two fields into one (temp fields for Where Not Exists)</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768441#M64231</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/92437"&gt;@kdaniels-obrien&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of using *, u can list the field name and remove the ordernum and rename the tempordernum as ordernum .&lt;/P&gt;&lt;P&gt;Might be, it helps you&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 03:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768441#M64231</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-15T03:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two fields into one (temp fields for Where Not Exists)</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768622#M64232</link>
      <description>&lt;P&gt;When I try that, it says "tempOrderNum not found".&amp;nbsp; I have a table right before the Concatenate Load * that requests new data from my web service and in this table, I alias OrderNum as tempOrderNum. Do I need to create a new table to get this to work?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 13:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-two-fields-into-one-temp-fields-for-Where-Not-Exists/m-p/1768622#M64232</guid>
      <dc:creator>kdaniels-obrien</dc:creator>
      <dc:date>2020-12-15T13:26:21Z</dc:date>
    </item>
  </channel>
</rss>

