<?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: Restrict and create new field based on Length in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075527#M641272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps create a straight table with ACCTnum as a dimension and then you can test your expression in the chart without needing to reload the data each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding the expression&lt;STRONG&gt; len(trim(ACCTnum))&lt;/STRONG&gt; so you can compare the source data and output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2016 17:21:50 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2016-03-02T17:21:50Z</dc:date>
    <item>
      <title>Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075523#M641264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how to word this, but I have an Excel spreadsheet that contains some account numbers that we need to use for reporting purposes. Because this field is manually entered by multiple agents, the data formatting/length is not uniform and contains an array of text and numbers.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without going back and fixing the data, is there a way I can limit and pick out only the entries with 10 or less numbers (These are valid)? I have already removed all alpha characters from the mix, but I have data that looks like the below. Can I use the "LEN" function somehow? Anyone have some suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116667_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075523#M641264</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2016-03-02T16:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075524#M641266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You sure can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD FieldNames&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Source&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Len(Trim(A)) &amp;lt;= 10;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075524#M641266</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-02T16:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075525#M641268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesnt work, using this to create a field and see what it contains, but I am getting "-1" and "0" as my only results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEN(TRIM(ACCTnum))&amp;lt;=10 as TEST2,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075525#M641268</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2016-03-02T17:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075526#M641270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To create a field, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(ACCTnum)) &amp;lt;= 10, ACCTnum) as TEST2&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075526#M641270</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-02T17:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075527#M641272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps create a straight table with ACCTnum as a dimension and then you can test your expression in the chart without needing to reload the data each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding the expression&lt;STRONG&gt; len(trim(ACCTnum))&lt;/STRONG&gt; so you can compare the source data and output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075527#M641272</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-03-02T17:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075528#M641273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0 = false&lt;/P&gt;&lt;P&gt;-1 = true&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 18:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075528#M641273</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-03-02T18:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075529#M641274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep, thanks, I am aware of this part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 22:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075529#M641274</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2016-03-02T22:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075530#M641275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alright, so this sort of seems to be working better. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one more question then, with the remaining accounts I have, is there a way to add leading zeros if the account is under 10 digits? I have some accounts left over that are under 10 digits that should have them. Simple formatting change in the field creation??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&amp;nbsp; 456789&amp;nbsp;&amp;nbsp;&amp;nbsp; --------&amp;gt; 0000456789&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 22:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075530#M641275</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2016-03-02T22:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075531#M641276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If(Len(Trim(ACCTnum)) &amp;lt;= 10, &lt;SPAN style="color: #ff0000;"&gt;Num(&lt;/SPAN&gt;ACCTnum&lt;SPAN style="color: #ff0000;"&gt;, '0000000000')&lt;/SPAN&gt;) as TEST2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 22:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075531#M641276</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-02T22:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict and create new field based on Length</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075532#M641277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14569597775991013 jive_text_macro" jivemacro_uid="_14569597775991013" modifiedtitle="true"&gt;
&lt;P&gt;LOAD A&lt;/P&gt;
&lt;P&gt;FROM YourExcel.xlsx (ooxml, no labels, table is Sheet1)&lt;/P&gt;
&lt;P&gt;Where Num(A)&amp;lt;10000000000;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 23:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-and-create-new-field-based-on-Length/m-p/1075532#M641277</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-03-02T23:03:00Z</dc:date>
    </item>
  </channel>
</rss>

