<?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: Same field 2 data types in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Same-field-2-data-types/m-p/2158727#M93923</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It's hard for me to explain why this is happening - this is deep under the hood of Qlik, but I'd recommend using the function text() for your Id fields, to preserve the original format with the leading zeroes. This way, 00003414 and 3414 will remain separate:&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;text(id) as id&lt;BR /&gt;...&lt;BR /&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 19:56:18 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2024-01-05T19:56:18Z</dc:date>
    <item>
      <title>Same field 2 data types</title>
      <link>https://community.qlik.com/t5/App-Development/Same-field-2-data-types/m-p/2158723#M93922</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got the following question, I have a table that has a field with numbers with the following formatting: &lt;BR /&gt;00001233 (data coming from Salesforce). &lt;BR /&gt;&lt;BR /&gt;When I execute this&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Lib Connect to 'Salesforce';

InvoicesTmp:
LOAD
    Id
Select
    Id
FROM Invoices;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Datatype1.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126585i379FBA0C835C1308/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Datatype1.png" alt="Datatype1.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So two values: 00003945 and 00003960&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However when I use that table in resident like below:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Invoice:
NOCONCATENATE
LOAD
	*
Resident
	InvoiceTmp;

Drop Table InvoiceTmp;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Qlik recognizes some values as text and others as number&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataType2.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126586iAD4CC4376497BA2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DataType2.png" alt="DataType2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What's the reason behind this? It's causing problems for me when linking tables, as the IDs can be in the format 00003414 or 3414. Both formats are valid, but they belong to different data sources.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 19:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Same-field-2-data-types/m-p/2158723#M93922</guid>
      <dc:creator>dmnab1</dc:creator>
      <dc:date>2024-01-05T19:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Same field 2 data types</title>
      <link>https://community.qlik.com/t5/App-Development/Same-field-2-data-types/m-p/2158727#M93923</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It's hard for me to explain why this is happening - this is deep under the hood of Qlik, but I'd recommend using the function text() for your Id fields, to preserve the original format with the leading zeroes. This way, 00003414 and 3414 will remain separate:&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;text(id) as id&lt;BR /&gt;...&lt;BR /&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 19:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Same-field-2-data-types/m-p/2158727#M93923</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2024-01-05T19:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Same field 2 data types</title>
      <link>https://community.qlik.com/t5/App-Development/Same-field-2-data-types/m-p/2159123#M93980</link>
      <description>&lt;P&gt;Hi Oleg, thanks for your quick response.&lt;/P&gt;
&lt;P&gt;Yes, that is what I'm gonna do.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 12:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Same-field-2-data-types/m-p/2159123#M93980</guid>
      <dc:creator>dmnab1</dc:creator>
      <dc:date>2024-01-08T12:48:19Z</dc:date>
    </item>
  </channel>
</rss>

