<?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 Validate fields formats to find exceptions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Validate-fields-formats-to-find-exceptions/m-p/369708#M576298</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;I have data fields that have been input and want to try and make an exception report that will pull any fields that are not part of a specific format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format that each field should be will be 2xletters followed by 6xnumbers. LLNNNNNN.&lt;/P&gt;&lt;P&gt;Each field should be 8 chars long.&lt;/P&gt;&lt;P&gt;The 2 letters should be only certain combinations, eg. AA, AB but not LL, LS, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you explain the best way of doing this, is it as an expression in a chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2012 13:10:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-25T13:10:59Z</dc:date>
    <item>
      <title>Validate fields formats to find exceptions</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-fields-formats-to-find-exceptions/m-p/369708#M576298</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;I have data fields that have been input and want to try and make an exception report that will pull any fields that are not part of a specific format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format that each field should be will be 2xletters followed by 6xnumbers. LLNNNNNN.&lt;/P&gt;&lt;P&gt;Each field should be 8 chars long.&lt;/P&gt;&lt;P&gt;The 2 letters should be only certain combinations, eg. AA, AB but not LL, LS, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you explain the best way of doing this, is it as an expression in a chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 13:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-fields-formats-to-find-exceptions/m-p/369708#M576298</guid>
      <dc:creator />
      <dc:date>2012-05-25T13:10:59Z</dc:date>
    </item>
    <item>
      <title>Validate fields formats to find exceptions</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-fields-formats-to-find-exceptions/m-p/369709#M576299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would be a script thing preferably, not UI. For the letters, first create a mapping table of valid 2 letter combinations. The 2nd field of the mapping table would be just a 1. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;letter_combo_map:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;combo,valid&lt;/P&gt;&lt;P&gt;AA,1&lt;/P&gt;&lt;P&gt;AB,1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of inline you can also do this from any data source you like (e.g. Excel). Assuming your field is called "myField" the load would then look as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myField,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fabs(applymap('letter_combo_map',left(myField,2),0) * isnum(num#(right(myField,6)))) as field_valid&lt;/P&gt;&lt;P&gt;... //specify your data source, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new field "field_valid" will be 1 if it matches the format, otherwise 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 15:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-fields-formats-to-find-exceptions/m-p/369709#M576299</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-05-25T15:32:47Z</dc:date>
    </item>
    <item>
      <title>Validate fields formats to find exceptions</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-fields-formats-to-find-exceptions/m-p/369710#M576300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am not sure how well this will fit you problem. but you should take a look at this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-qlikview" href="http://community.qlik.com/qlikviews/1024"&gt;http://community.qlik.com/qlikviews/1024&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 20:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-fields-formats-to-find-exceptions/m-p/369710#M576300</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-05-25T20:52:33Z</dc:date>
    </item>
  </channel>
</rss>

