<?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 Text Modification in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116694#M368511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have coded this in an Excel VBA macro, but am looking for a way to do it within the script editor in qv.&lt;/P&gt;&lt;P&gt;as a reference these are part numbers.&amp;nbsp; The reason for even doing this is the lookup "clean" parts because end users slap the dashes and slashes in the wrong place sometimes...of course this whole thing leads to other issues, but their are checks in place for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway trying to solve this part number modification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XY-123 should become&amp;nbsp; XY123&amp;nbsp;&amp;nbsp; --- because letters and numbers can touch and the dash can be "removed" or not kept.&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;X1-23Y should remain&amp;nbsp; X1-23Y&amp;nbsp; ---- because two numbers cannot touch, if they already had a dash between them &lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;X-Y123 should remain X-Y123&amp;nbsp; ----&amp;nbsp; because two letters cannot touch, if they already had a dash between them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in excel vba I grab the length of a field and read 3 characters at a time and make changes...in this case keeping or not keeping the dash based on istext or isum of the 1st and 3rd characters.&amp;nbsp; in excel vba I do this for a field row by row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you'd guess there are lot more rules than the one above, but any help with this one would get me close to solving the others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;brooks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 May 2016 18:20:45 GMT</pubDate>
    <dc:creator>brooksc57</dc:creator>
    <dc:date>2016-05-20T18:20:45Z</dc:date>
    <item>
      <title>Text Modification</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116694#M368511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have coded this in an Excel VBA macro, but am looking for a way to do it within the script editor in qv.&lt;/P&gt;&lt;P&gt;as a reference these are part numbers.&amp;nbsp; The reason for even doing this is the lookup "clean" parts because end users slap the dashes and slashes in the wrong place sometimes...of course this whole thing leads to other issues, but their are checks in place for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway trying to solve this part number modification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XY-123 should become&amp;nbsp; XY123&amp;nbsp;&amp;nbsp; --- because letters and numbers can touch and the dash can be "removed" or not kept.&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;X1-23Y should remain&amp;nbsp; X1-23Y&amp;nbsp; ---- because two numbers cannot touch, if they already had a dash between them &lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;X-Y123 should remain X-Y123&amp;nbsp; ----&amp;nbsp; because two letters cannot touch, if they already had a dash between them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in excel vba I grab the length of a field and read 3 characters at a time and make changes...in this case keeping or not keeping the dash based on istext or isum of the 1st and 3rd characters.&amp;nbsp; in excel vba I do this for a field row by row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you'd guess there are lot more rules than the one above, but any help with this one would get me close to solving the others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;brooks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 18:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116694#M368511</guid>
      <dc:creator>brooksc57</dc:creator>
      <dc:date>2016-05-20T18:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Text Modification</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116695#M368512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this post offers any help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1043445"&gt;Finding text patterns in Data Columns&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 18:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116695#M368512</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-20T18:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Text Modification</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116696#M368513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it by generating a substring map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125269_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Undash:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAPPING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;L&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; '-' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;L&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ord&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('A')+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;L&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;iterno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AUTOGENERATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 26&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WHILE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;iterno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &amp;lt;= 10&lt;BR /&gt; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Main:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Something&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;mapsubstring&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Undash',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Something&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SomethingFixed&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Something&lt;BR /&gt; XY-123&lt;BR /&gt; X1-23Y&lt;BR /&gt; X-Y123&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 21:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116696#M368513</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-05-20T21:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text Modification</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116697#M368514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X1-Y123 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should this become X1Y123, numbers and letters can touch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe we need to expand the mapping table to contain also the combinations with L &amp;amp; N exchanged:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Undash:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MAPPING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(FirstRun, L &amp;amp; '-' &amp;amp; N , N &amp;amp; '-' &amp;amp; L) as From &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,If(FirstRun, L &amp;amp; N, N &amp;amp; L) as To&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; Div(Iterno(),10) as FirstRun,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; chr(ord('A')+recno()-1) as L&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,text(Mod(iterno()-1,10)) as N&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AUTOGENERATE 26&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHILE iterno() &amp;lt;= 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Something&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;SomethingFixed&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;X-Y123&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;X-Y123&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;X1-23Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;X1-23Y&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;X1-Y123&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;X1Y123&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;XY-123&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;XY123&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 22:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116697#M368514</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-20T22:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Text Modification</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116698#M368515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep. Whatever the requirement is, we'd be trying to add rows that describe that requirement to our mapping table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 22:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Modification/m-p/1116698#M368515</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-05-20T22:59:35Z</dc:date>
    </item>
  </channel>
</rss>

