<?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: Data Not Loading As Expected in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Not-Loading-As-Expected/m-p/1906956#M10403</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That didn't work, however this did:&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;abstract:
Load * //PRECEDING LOAD 
 WHERE EXISTS(GrantNumber);//NOW WE CAN SET THE WHERE CONDITION TO EXISTS() MEANING LOAD RECORDS IF GRANTNUMBER OF abstract MATCHES THE PREVIOUS GRANTNUMBER
  LOAD 
      ABSTRACT_ID, 
      text(EPA_ID) as EPA_ID, 
      text(EPA_ID) as GrantNumber; // SETTING THIS AS TEXT TO PROVIDE A STRING MATCH FROM THE PUB TABLE
[ABSTRACT]:
SELECT 
    "ABSTRACT_ID",
    "EPA_ID"
FROM "NCERDB"."ABSTRACT";
//WHERE "EPA_ID" = "GrantNumber";&lt;/PRE&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 18 Mar 2022 12:01:09 GMT</pubDate>
    <dc:creator>bruce_sorge</dc:creator>
    <dc:date>2022-03-18T12:01:09Z</dc:date>
    <item>
      <title>Data Not Loading As Expected</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Not-Loading-As-Expected/m-p/1906735#M10398</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an app where I am getting data from a spreadsheet and an Oracle database. From the spreadsheet, my load script looks like this:&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;Authors,&lt;BR /&gt;"Year",&lt;BR /&gt;Title,&lt;BR /&gt;Journal,&lt;BR /&gt;IF (DOI = ' ', '','&lt;A href="https://doi.org/'&amp;amp;DOI" target="_blank"&gt;https://doi.org/'&amp;amp;DOI&lt;/A&gt;) as [HP DOI URL],&lt;BR /&gt;DOI as [HO DOI],&lt;BR /&gt;"National Research Program",&lt;BR /&gt;"Request For Applications (RFA) Title",&lt;BR /&gt;"Grant Number",&lt;BR /&gt;"Date Highlighted",&lt;BR /&gt;"Altmetric Score",&lt;BR /&gt;"Research Compass?",&lt;BR /&gt;Comments&lt;BR /&gt;FROM [lib://Highlighted Pubs (aa_bsorge)]&lt;BR /&gt;(ooxml, embedded labels, table is [Highlighted Publications Table]);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Oracle database load state looks like this (I am only including the table that I am concerned with):&lt;/P&gt;
&lt;P&gt;LOAD ABSTRACT_ID, &lt;BR /&gt;Keepchar(EPA_ID, '0123456789') as EPA_ID&lt;BR /&gt;WHERE Exists([Grant Number], EPA_ID);&lt;/P&gt;
&lt;P&gt;So the spreadsheet contains grant numbers that are only numeric, but the Oracle DB table has some preceding letters, so I am stripping them out with the Keepchar() function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The where clause "should" pull only the records from the Oracle DB that match the spreadsheet (672 records only, not the entire 7K records in the Oracle DB).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am only getting eight records though which is the problem. I have also tried "Where EPA_ID = [Grant Number], but when I do that, I get the error that Abstract_ID can't be found.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 19:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Not-Loading-As-Expected/m-p/1906735#M10398</guid>
      <dc:creator>bruce_sorge</dc:creator>
      <dc:date>2022-03-17T19:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data Not Loading As Expected</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Not-Loading-As-Expected/m-p/1906759#M10399</link>
      <description>&lt;P&gt;Looks like you should be using&lt;/P&gt;
&lt;P&gt;WHERE Exists([Grant Number], Keepchar(EPA_ID, '0123456789'));&lt;/P&gt;
&lt;P&gt;Within the context of this load, EPA_ID refers to the original column in the source, not the calculated column you've created in the load. This is similar to SQL where you can't reference a column aliased in the SELECT from the WHERE.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 20:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Not-Loading-As-Expected/m-p/1906759#M10399</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-03-17T20:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Not Loading As Expected</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Not-Loading-As-Expected/m-p/1906956#M10403</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That didn't work, however this did:&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;abstract:
Load * //PRECEDING LOAD 
 WHERE EXISTS(GrantNumber);//NOW WE CAN SET THE WHERE CONDITION TO EXISTS() MEANING LOAD RECORDS IF GRANTNUMBER OF abstract MATCHES THE PREVIOUS GRANTNUMBER
  LOAD 
      ABSTRACT_ID, 
      text(EPA_ID) as EPA_ID, 
      text(EPA_ID) as GrantNumber; // SETTING THIS AS TEXT TO PROVIDE A STRING MATCH FROM THE PUB TABLE
[ABSTRACT]:
SELECT 
    "ABSTRACT_ID",
    "EPA_ID"
FROM "NCERDB"."ABSTRACT";
//WHERE "EPA_ID" = "GrantNumber";&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Mar 2022 12:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Not-Loading-As-Expected/m-p/1906956#M10403</guid>
      <dc:creator>bruce_sorge</dc:creator>
      <dc:date>2022-03-18T12:01:09Z</dc:date>
    </item>
  </channel>
</rss>

