<?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: Purgechar challenge in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761082#M270772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Jan 2015 20:12:14 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2015-01-24T20:12:14Z</dc:date>
    <item>
      <title>Purgechar challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761076#M270766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I have a row of a concatenated values like this : &lt;SPAN style="text-decoration: underline;"&gt;NNN-fieldNNfield&lt;/SPAN&gt;. And I'd like to convert it to &lt;SPAN style="text-decoration: underline;"&gt;fieldNNfield&lt;/SPAN&gt;. The problem is that if I use the funciont purgechar() to substract the numbers, I'll erase the numbers inside the field too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas about how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a dummy example about what I'm talking about :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 312px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl64" height="20" style="height: 15.0pt; width: 234pt;" width="312"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;FieldOrigin&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;801-field1name,905-field2name,202-field3name&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to convert it into :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 232px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; width: 174pt;" width="232"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;FieldDesired&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;field1name,field2name,field3name&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*(The terms field or name are invented for this example, the field could be named with other names, but with numbers inside)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 16:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761076#M270766</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2015-01-24T16:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Purgechar challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761077#M270767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with substring function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 16:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761077#M270767</guid>
      <dc:creator />
      <dc:date>2015-01-24T16:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Purgechar challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761078#M270768</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;you could try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load somefields,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBetween(FieldOrigin&amp;amp;',', '-', ',', IterNo()) as FieldDesired&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;While IterNo()&amp;lt;=SubStringCount(FieldOrigin, '-');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should create one row per subfield.&lt;/P&gt;&lt;P&gt;You could concatenate the result afterwards.&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 16:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761078#M270768</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-24T16:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Purgechar challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761079#M270769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marco for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original point of that question is that I have an original table like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 160px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; width: 60pt;" width="80"&gt;&lt;SPAN style="text-decoration: underline;"&gt;ID&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 60pt;" width="80"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Field&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;field5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;field3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;field1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'd like to convert it in :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 93pt;" width="124"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; width: 93pt;" width="124"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Field&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;field5,field3,field1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I'm trying to load the original table and make the resident table with the concat function, it always put me the fields in order of the field, not the id. It always does this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="font-size: 13.3333330154419px; width: 124px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="124"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Field&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none;"&gt;field1,field3,field5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you experienced something like this before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do it like this with no success :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DesiredTable :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; NoConcatenate &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; load Distinct&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; concat(Field,',') as [New Field]&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Resident Original table Order by lD asc (or desc) ;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 16:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761079#M270769</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2015-01-24T16:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Purgechar challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761080#M270770</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;concat can have a third parameter for order sequence, so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concat(Field,',', ID) as [New Field]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;could solve the issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Marco &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 17:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761080#M270770</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-24T17:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Purgechar challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761081#M270771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right Marco, I forgot that! Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 17:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761081#M270771</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2015-01-24T17:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Purgechar challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761082#M270772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 20:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Purgechar-challenge/m-p/761082#M270772</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-24T20:12:14Z</dc:date>
    </item>
  </channel>
</rss>

