<?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: script help with 2 data types in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010399#M342887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I tried exporting the access table to excel and importing that way , and it works fine, the issue is with access I guess, why would that happen in access?&amp;nbsp; weird&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2015 16:02:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-27T16:02:52Z</dc:date>
    <item>
      <title>script help with 2 data types</title>
      <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010392#M342880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a column called "ClaimNumber" in an access database , and am running this query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT ClaimantName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClaimNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateOfInjury,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GroupNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(DateOfInjury)&amp;amp;' - '&amp;amp;IIf(GroupNumber=0,ClaimNumber, GroupNumber)&amp;nbsp; as YearClaimNumber&lt;/P&gt;&lt;P&gt;FROM Claims;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which works in Access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is when ran in the Qlikview script it ignores any ClaimNumbers that have letters in them&amp;nbsp; i.e. "WNSB100290"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get qlikview to pick up these values that start with letters, convert them all to string maybe?&amp;nbsp; Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010392#M342880</guid>
      <dc:creator />
      <dc:date>2015-08-27T14:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: script help with 2 data types</title>
      <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010393#M342881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad, just use text(ClaimNumber) which will treat everything as a string. so &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year(DateOfInjury)&amp;amp;' - '&amp;amp;IIf(GroupNumber=0,&lt;STRONG&gt;text&lt;/STRONG&gt;(ClaimNumber), GroupNumber)&amp;nbsp; as YearClaimNumber.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010393#M342881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-27T15:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: script help with 2 data types</title>
      <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010394#M342882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's weird and shouldn't really happen. I guess that something else must be wrong in either your data or your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I enter this code in an empty test document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Claims:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ClaimantName, ClaimNumber, DateOfInjury, GroupNumber,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ABC, 1, 1/1/2013, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DEF, 2, 1/2/2013, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GHI, WNSB100290, 1/3/2014, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;JKL, GRNL100123, 1/4/2015, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ClaimantName,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClaimNumber,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateOfInjury,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GroupNumber,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(DateOfInjury)&amp;amp;' - '&amp;amp;If(GroupNumber=0,ClaimNumber, GroupNumber)&amp;nbsp; as YearClaimNumber&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT Claims;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP Table Claims;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this output which AFAIK is correct (table box)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="97168" alt="ClaimNumberLostIfText thread178169.jpg" class="jive-image image-1" src="/legacyfs/online/97168_ClaimNumberLostIfText thread178169.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that statement IIF doesn't exist in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post a reduced example document with data to investigate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010394#M342882</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-08-27T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: script help with 2 data types</title>
      <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010395#M342883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I try that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010395#M342883</guid>
      <dc:creator />
      <dc:date>2015-08-27T15:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: script help with 2 data types</title>
      <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010396#M342884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your right its odd, although this is an access table im hitting and my have something to do with it, the query pulls the proper data set in access , but leaves out the claimnumbers containing characters on the qlikview load, odd indeed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010396#M342884</guid>
      <dc:creator />
      <dc:date>2015-08-27T15:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: script help with 2 data types</title>
      <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010397#M342885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;might be an issue with the ODBC, as Peter stated if I do this at the load level it does work &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010397#M342885</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-08-27T15:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: script help with 2 data types</title>
      <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010398#M342886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To check where this is happening exactly, try a simple straightforward LOAD that stores the Access data in a resident table before you start manipulating data of creating new columns.. If string values already go missing at that point, you may have to tweak your access connection (or the simple LOAD statement)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010398#M342886</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-08-27T15:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: script help with 2 data types</title>
      <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010399#M342887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I tried exporting the access table to excel and importing that way , and it works fine, the issue is with access I guess, why would that happen in access?&amp;nbsp; weird&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010399#M342887</guid>
      <dc:creator />
      <dc:date>2015-08-27T16:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: script help with 2 data types</title>
      <link>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010400#M342888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you precede the SQL SELECT with a LOAD you can prevent QlikView from trying to interpret ClaimNumber as a number by doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14406916328237405 jive_text_macro" jivemacro_uid="_14406916328237405"&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ClaimantName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Text(ClaimNumber) AS ClaimNumber,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DateOfInjury,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; GroupNumber,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; YearClaimNumber;&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ClaimantName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClaimNumber,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateOfInjury,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GroupNumber,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(DateOfInjury) &amp;amp; ' - ' &amp;amp; IIf(GroupNumber=0,ClaimNumber, GroupNumber)&amp;nbsp; as YearClaimNumber&lt;/P&gt;
&lt;P&gt;FROM Claims;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-help-with-2-data-types/m-p/1010400#M342888</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-08-27T16:07:24Z</dc:date>
    </item>
  </channel>
</rss>

