<?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 2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184891#M49580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that works, because you don't post anything xD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jan 2011 20:43:01 GMT</pubDate>
    <dc:creator>hector</dc:creator>
    <dc:date>2011-01-27T20:43:01Z</dc:date>
    <item>
      <title>2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10</title>
      <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184887#M49576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the Load Statement i can convert the INVHDRI by using char(INVHDRI) and then use a second step of len(INVHDRI,10) to get INVHDI to be character and length of 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i convert INVHDRI to character and tell Qlikveiw to make the length 10 in one formula instead of two or in one step instead of two steps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 21:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184887#M49576</guid>
      <dc:creator />
      <dc:date>2011-01-25T21:12:54Z</dc:date>
    </item>
    <item>
      <title>2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10</title>
      <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184888#M49577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if the field is a number, you can do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;num(19,'0000000000')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and this will return 0000000019&lt;/P&gt;&lt;P&gt;is this what are you looking for?&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 21:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184888#M49577</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-25T21:19:23Z</dc:date>
    </item>
    <item>
      <title>2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10</title>
      <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184889#M49578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;He'ctor, yes the field is a number. By using your approach then i have no need for the Chr() and Len() combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, num(INVHDRI,'0000000000) should give me INVHDRI as a character filed that is 10 characters long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try this and post if this doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 21:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184889#M49578</guid>
      <dc:creator />
      <dc:date>2011-01-25T21:28:50Z</dc:date>
    </item>
    <item>
      <title>2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10</title>
      <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184890#M49579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;He'ctor, yes the field is a number. By using your approach then i have no need for the Chr() and Len() combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, num(INVHDRI,'0000000000) should give me INVHDRI as a character filed that is 10 characters long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try this and post if this doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 21:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184890#M49579</guid>
      <dc:creator />
      <dc:date>2011-01-25T21:28:54Z</dc:date>
    </item>
    <item>
      <title>2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10</title>
      <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184891#M49580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that works, because you don't post anything xD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 20:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184891#M49580</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-27T20:43:01Z</dc:date>
    </item>
    <item>
      <title>2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10</title>
      <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184892#M49581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried it and it didnt work quite as i has hoped. I have an [ invoice field 1] that is numeric and i have another invoice field that is character [invoice field2].&lt;/P&gt;&lt;P&gt;if [invoice field1] is populated with 123456 then it will show up as 123,456 and [invoice field2] would show up as 123456 but as a character.&lt;/P&gt;&lt;P&gt;i tried to your recommended forumual on [invoice1] by typing num([ invoice field 1],'0000000000')&lt;/P&gt;&lt;P&gt;and the end result was 0000123456 which would not link to [invoice field2] since [invoice field2] would be populated with 123456.&lt;/P&gt;&lt;P&gt;So to rephrase my question, if i know that [invoice field2] is character field and the field is length 10, whcih means there can be up to 10 charachers in [invoice fiel2] but there doesnt have to be 10 characters.&lt;/P&gt;&lt;P&gt;Is there one formula compound formula that i can apply to [invoice field1] that would satisfy the above link issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your input, it is very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 21:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184892#M49581</guid>
      <dc:creator />
      <dc:date>2011-01-27T21:22:06Z</dc:date>
    </item>
    <item>
      <title>2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10</title>
      <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184893#M49582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;did you try to use the num() function in both fields?, if the char field has spaces, use something like num(trim(field2),'0000000000')&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 22:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184893#M49582</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-27T22:10:37Z</dc:date>
    </item>
    <item>
      <title>2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10</title>
      <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184894#M49583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would the same approach work to convert a number field into a character field with each record having 12 characters&lt;/P&gt;&lt;P&gt;chr(field),'0000000000')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 20:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184894#M49583</guid>
      <dc:creator />
      <dc:date>2011-02-09T20:50:10Z</dc:date>
    </item>
    <item>
      <title>2 invoice fields from two different tables: INVHDRI is numeric,pkg 12 and DOCINV is character,pkd 10</title>
      <link>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184895#M49584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can use the following in both fields so they will always have the same format and values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Text(Repeat('0', 12 - Len(123456)) &amp;amp; '123456')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That will always return a text with leading zeroes as in the example above "0000123456".&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 20:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-invoice-fields-from-two-different-tables-INVHDRI-is-numeric/m-p/184895#M49584</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-09T20:59:32Z</dc:date>
    </item>
  </channel>
</rss>

