<?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 Checking Length of a Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Checking-Length-of-a-Field/m-p/222862#M75440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manesh,&lt;/P&gt;&lt;P&gt;In your opinion which one is better to use?&lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Dec 2010 12:36:51 GMT</pubDate>
    <dc:creator>tmumaw</dc:creator>
    <dc:date>2010-12-14T12:36:51Z</dc:date>
    <item>
      <title>Checking Length of a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-Length-of-a-Field/m-p/222860#M75438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning all.&lt;/P&gt;&lt;P&gt;Quick question for you all. Am I able to check the exact length of a field in a table like this? If not, can someone suggest a better way.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Thom&lt;/P&gt;&lt;P&gt;if (len([finalCalledPartyNumber] = 11),&lt;BR /&gt; Num(Right([finalCalledPartyNumber] ,10)),'0000000000') as [Final Called Number],&lt;BR /&gt; if (len([finalCalledPartyNumber] = 4),&lt;BR /&gt; Num(Right([finalCalledPartyNumber] ,4)),'0000') as [Final VoIP Called Number],&lt;BR /&gt; if (len([finalCalledPartyNumber] = 3),&lt;BR /&gt; Num(Right([finalCalledPartyNumber],3)),'000') as [Final Common Called Number],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 12:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-Length-of-a-Field/m-p/222860#M75438</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2010-12-14T12:16:09Z</dc:date>
    </item>
    <item>
      <title>Checking Length of a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-Length-of-a-Field/m-p/222861#M75439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thom,&lt;/P&gt;&lt;P&gt;U can use the following script.&lt;/P&gt;&lt;P&gt;if (len([finalCalledPartyNumber] )= 11,&lt;BR /&gt; Num(Right([finalCalledPartyNumber] ,10)),'0000000000') as [Final Called Number],&lt;BR /&gt; if (len([finalCalledPartyNumber] )= 4,&lt;BR /&gt; Num(Right([finalCalledPartyNumber] ,4)),'0000') as [Final VoIP Called Number],&lt;BR /&gt; if (len([finalCalledPartyNumber] ) = 3,&lt;BR /&gt; Num(Right([finalCalledPartyNumber],3)),'000') as [Final Common Called Number],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (len(trim([finalCalledPartyNumber] ))= 11,&lt;BR /&gt; Num(Right([finalCalledPartyNumber] ,10)),'0000000000') as [Final Called Number],&lt;BR /&gt; if (len(trim([finalCalledPartyNumber] ))= 4,&lt;BR /&gt; Num(Right([finalCalledPartyNumber] ,4)),'0000') as [Final VoIP Called Number],&lt;BR /&gt; if (len(trim([finalCalledPartyNumber] )) = 3,&lt;BR /&gt; Num(Right([finalCalledPartyNumber],3)),'000') as [Final Common Called Number],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the TRIM function removes the white spaces from ur field values.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 12:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-Length-of-a-Field/m-p/222861#M75439</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2010-12-14T12:22:08Z</dc:date>
    </item>
    <item>
      <title>Checking Length of a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-Length-of-a-Field/m-p/222862#M75440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manesh,&lt;/P&gt;&lt;P&gt;In your opinion which one is better to use?&lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 12:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-Length-of-a-Field/m-p/222862#M75440</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2010-12-14T12:36:51Z</dc:date>
    </item>
    <item>
      <title>Checking Length of a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-Length-of-a-Field/m-p/222863#M75441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thom,&lt;/P&gt;&lt;P&gt;The use of above is as per situation, If u dont want to count spaces(Left and write not inbetween words) in fiels then use second one, else use first one. But secondone in more efficient then first one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 13:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-Length-of-a-Field/m-p/222863#M75441</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2010-12-14T13:59:54Z</dc:date>
    </item>
  </channel>
</rss>

