<?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: Qlik sense - Identify sequential alphabets or numerics in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864574#M71363</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;one solution might be:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1638209436053.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67572i9111BD4AD43AFCED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_0-1638209436053.png" alt="MarcoWedel_0-1638209436053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;tabConsecChar:
LOAD String,
     If(Max(IsConsecutive),'Error','Non Error') as Error
Group By String;
LOAD *,
     If(IterNo()&amp;gt;1,Ord(Mid(String,IterNo()))-Ord(Mid(String,IterNo()-1))=1) as IsConsecutive
INLINE [
    String
    ABC23455467MIOQ
    145649744XYZP
    OXPTR21598
    AB
    ABC
    ABD
    ABCD
    ABCDE
    ABCDEF
    ABCDEG
    ABCDEFG
    ABCDEFH
    HIJ
    HIK
    HIJK
    HIKJ
    12345678
    345
    346
    3456
    3457
    34567
    34568
    345678
    PQRSTUVW
]
While IterNo()&amp;lt;=Len(String);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 19:16:27 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2021-11-29T19:16:27Z</dc:date>
    <item>
      <title>Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864200#M71334</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need a help for the below scenario where need to identify the presence of Sequential Alphabets or numerics( Min 3 chars) in a string which will be considered as an error.&lt;/P&gt;
&lt;P&gt;Ex: 1)ABC23455467MIOQ&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2)145649744XYZP&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 3)OXPTR21598&lt;/P&gt;
&lt;P&gt;In the above examples, 1) and 2) are considered as errors as there are presence of sequential chars.&lt;/P&gt;
&lt;P&gt;Kindly suggest any ideas to check this in Qlik sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864200#M71334</guid>
      <dc:creator>Sush123</dc:creator>
      <dc:date>2021-11-30T16:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864219#M71338</link>
      <description>&lt;P&gt;An idea could be to use a variable with all strings to be considered errors (sequential numeric or alpahebetic of 3 chars)&lt;/P&gt;
&lt;P&gt;and the wildmatch function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// define the string with sequential chars&lt;/P&gt;
&lt;P&gt;SET v = '*012*', '*123*', '*234*', '*345*', '*456*', '*567*', '*678*', '*789*', '*890*';&lt;BR /&gt;SET v = $(v) , '*ABC*', '*BCD*';&amp;nbsp; &amp;nbsp; &amp;nbsp;// add the others&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// test data&lt;/P&gt;
&lt;P&gt;t:&lt;BR /&gt;load * inline [&lt;BR /&gt;col1&lt;BR /&gt;ABC23455467MIOQ&lt;BR /&gt;145649744XYZP&lt;BR /&gt;OXPTR21598&lt;BR /&gt;ZXDABC1A1A&lt;BR /&gt;abc&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;// check for error&lt;BR /&gt;t2:&lt;BR /&gt;load&lt;BR /&gt;col1,&lt;BR /&gt;wildmatch(col1, $(v)) &amp;gt; 0 as ERROR&lt;BR /&gt;Resident t;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 19:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864219#M71338</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2021-11-28T19:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864335#M71346</link>
      <description>&lt;P&gt;Similar from the logic but slightly different from the methods is the following which creates the sequential chars within a mapping table and makes the evaluating per mapsubstring() + textbetween():&lt;/P&gt;
&lt;P&gt;m:&lt;BR /&gt;mapping load chr(47 + recno()) &amp;amp; chr(47 + recno() + 1) &amp;amp; chr(47 + recno() + 2) as [Lookup], &lt;BR /&gt;&amp;nbsp; &amp;nbsp;'&amp;lt;&amp;lt;invalid&amp;gt;&amp;gt;' as [Return] autogenerate 8;&lt;BR /&gt;mapping load chr(64 + recno()) &amp;amp; chr(64 + recno() + 1) &amp;amp; chr(64 + recno() + 2) as [Lookup], &lt;BR /&gt;&amp;nbsp; &amp;nbsp;'&amp;lt;&amp;lt;invalid&amp;gt;&amp;gt;' as [Return] autogenerate 24;&lt;BR /&gt;mapping load chr(96 + recno()) &amp;amp; chr(96 + recno() + 1) &amp;amp; chr(96 + recno() + 2) as [Lookup], &lt;BR /&gt;&amp;nbsp; &amp;nbsp;'&amp;lt;&amp;lt;invalid&amp;gt;&amp;gt;' as [Return] autogenerate 24;&lt;/P&gt;
&lt;P&gt;t: &lt;BR /&gt;load *, if(len(C1), C1, 'valid') as C2;&lt;BR /&gt;load *, textbetween(mapsubstring('m', F), '&amp;lt;&amp;lt;', '&amp;gt;&amp;gt;') as C1;&lt;BR /&gt;load * inline [&lt;BR /&gt;F&lt;BR /&gt;ABC23455467MIOQ&lt;BR /&gt;145649744XYZP&lt;BR /&gt;OXPTR21598&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 10:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864335#M71346</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-11-29T10:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864357#M71347</link>
      <description>&lt;P&gt;Thank you so much for the above logics, but now there is slight change in the requirement. I need to find the string which is having full length of sequential chars .&lt;/P&gt;
&lt;P&gt;Ex: ABCDEFG, 12345678, PQRSTUVW etc.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 11:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864357#M71347</guid>
      <dc:creator>Sush123</dc:creator>
      <dc:date>2021-11-29T11:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864358#M71348</link>
      <description>&lt;P&gt;Also the length of the string is not of constant length. It may vary.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 11:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864358#M71348</guid>
      <dc:creator>Sush123</dc:creator>
      <dc:date>2021-11-29T11:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864488#M71356</link>
      <description>&lt;P&gt;The above applied approach could be extended to create dynamically mapping-information within a more or less automated loop - not only to identify certain use-cases else also to return differentiated results. The following is not a complete solution for all your possibilities/requirements - and you may need some playing with it to adjust it to the exact scenarios - but it enables you to integrate most of them. You may need some more iterations and following filters for the final mapping load and within the origin load some checks for the length or similar measures:&lt;/P&gt;
&lt;P&gt;for each type in 'num', 'upper', 'lower'&lt;BR /&gt;&amp;nbsp; &amp;nbsp;let i = pick(match('$(type)', 'num', 'upper', 'lower'), 8, 24, 24); &lt;BR /&gt;&amp;nbsp; &amp;nbsp;let start = pick(match('$(type)', 'num', 'upper', 'lower'), 46, 63, 95);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;m:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;load *, pick(IterNo, 'single', 'double', 'triple', 'quadruple', 'quintuple') as Return; &lt;BR /&gt;&amp;nbsp; &amp;nbsp;load *, if(RecNo = previous(RecNo), peek('Lookup') &amp;amp; Char, Char) as Lookup;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;load recno() as RecNo, iterno() as IterNo, chr($(start) + recno() + iterno()) as [Char], &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'$(type)' as Type &lt;BR /&gt;&amp;nbsp; &amp;nbsp;autogenerate $(i) &lt;BR /&gt;&amp;nbsp; &amp;nbsp;while iterno() &amp;lt;=5 and $(start) + recno() + iterno() &amp;lt;= $(start) + $(i) + 5 - 2;&lt;BR /&gt;next&lt;/P&gt;
&lt;P&gt;Just execute it within a dummy-app and play with it until it fulfilled the requirements.&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 14:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864488#M71356</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-11-29T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864574#M71363</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;one solution might be:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1638209436053.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67572i9111BD4AD43AFCED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_0-1638209436053.png" alt="MarcoWedel_0-1638209436053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;tabConsecChar:
LOAD String,
     If(Max(IsConsecutive),'Error','Non Error') as Error
Group By String;
LOAD *,
     If(IterNo()&amp;gt;1,Ord(Mid(String,IterNo()))-Ord(Mid(String,IterNo()-1))=1) as IsConsecutive
INLINE [
    String
    ABC23455467MIOQ
    145649744XYZP
    OXPTR21598
    AB
    ABC
    ABD
    ABCD
    ABCDE
    ABCDEF
    ABCDEG
    ABCDEFG
    ABCDEFH
    HIJ
    HIK
    HIJK
    HIKJ
    12345678
    345
    346
    3456
    3457
    34567
    34568
    345678
    PQRSTUVW
]
While IterNo()&amp;lt;=Len(String);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 19:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864574#M71363</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2021-11-29T19:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864639#M71366</link>
      <description>&lt;P&gt;may be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set v2 = 'ABCDEFGHILMNOPQRSTUVZ-0123456789';&lt;/P&gt;
&lt;P&gt;x:&lt;BR /&gt;load * inline [&lt;BR /&gt;String&lt;BR /&gt;ABC23455467MIOQ&lt;BR /&gt;145649744XYZP&lt;BR /&gt;OXPTR21598&lt;BR /&gt;AB&lt;BR /&gt;ABC&lt;BR /&gt;ABD&lt;BR /&gt;ABCD&lt;BR /&gt;ABCDE&lt;BR /&gt;ABCDEF&lt;BR /&gt;ABCDEG&lt;BR /&gt;ABCDEFG&lt;BR /&gt;ABCDEFH&lt;BR /&gt;HIJ&lt;BR /&gt;HIK&lt;BR /&gt;HIJK&lt;BR /&gt;HIKJ&lt;BR /&gt;12345678&lt;BR /&gt;345&lt;BR /&gt;346&lt;BR /&gt;3456&lt;BR /&gt;3457&lt;BR /&gt;34567&lt;BR /&gt;34568&lt;BR /&gt;345678&lt;BR /&gt;PQRSTUVW&lt;BR /&gt;UVZ012&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;x2:&lt;BR /&gt;load&lt;BR /&gt;String,&lt;BR /&gt;index('$(v2)', String) &amp;gt; 0 as Error&lt;BR /&gt;Resident x;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 20:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864639#M71366</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2021-11-29T20:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864703#M71373</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the nice solution. This will work.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 05:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864703#M71373</guid>
      <dc:creator>Sush123</dc:creator>
      <dc:date>2021-11-30T05:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense - Identify sequential alphabets or numerics</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864704#M71374</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/675"&gt;@MarcoWedel&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is such a great solution. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 05:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-sense-Identify-sequential-alphabets-or-numerics/m-p/1864704#M71374</guid>
      <dc:creator>Sush123</dc:creator>
      <dc:date>2021-11-30T05:15:22Z</dc:date>
    </item>
  </channel>
</rss>

