<?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 Need help with cleaning a column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590757#M443548</link>
    <description>&lt;P&gt;Hello Friends&lt;/P&gt;&lt;P&gt;Kindly help me get the column clean.&lt;/P&gt;&lt;P&gt;In attached excel , Input Column to be transformed as Output column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Chintan&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 06:34:29 GMT</pubDate>
    <dc:creator>chintan1989</dc:creator>
    <dc:date>2019-06-12T06:34:29Z</dc:date>
    <item>
      <title>Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590757#M443548</link>
      <description>&lt;P&gt;Hello Friends&lt;/P&gt;&lt;P&gt;Kindly help me get the column clean.&lt;/P&gt;&lt;P&gt;In attached excel , Input Column to be transformed as Output column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Chintan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 06:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590757#M443548</guid>
      <dc:creator>chintan1989</dc:creator>
      <dc:date>2019-06-12T06:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590763#M443549</link>
      <description>&lt;P&gt;You are not giving us any rules you need to have applied, so I am just suggesting you the simplest, based on the fact that number of characters is constant, that you have leading zeros "0" and that you always have 16 charactes in you input column!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right(Left([Input Column],13),11)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 06:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590763#M443549</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-06-12T06:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590765#M443550</link>
      <description>Could you explain the logic?</description>
      <pubDate>Wed, 12 Jun 2019 06:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590765#M443550</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-06-12T06:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590791#M443551</link>
      <description>&lt;P&gt;Hello Tresesco&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Logic is like below:&lt;/P&gt;&lt;P&gt;Input column is :&amp;nbsp; 0013586655006-07&amp;nbsp; ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;so we need to spit this into 2 records as&amp;nbsp; ,13586655006 and&amp;nbsp;13586655007.&lt;/P&gt;&lt;P&gt;Basically its like adding the part before '-' again to after '-'part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chintan&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590791#M443551</guid>
      <dc:creator>chintan1989</dc:creator>
      <dc:date>2019-06-12T07:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590792#M443552</link>
      <description>&lt;P&gt;Hello Lech&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Logic is like below:&lt;/P&gt;&lt;P&gt;Input column is :&amp;nbsp; 0013586655006-07&amp;nbsp; ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;so we need to spit this into 2 records as&amp;nbsp; ,13586655006 and&amp;nbsp;13586655007.&lt;/P&gt;&lt;P&gt;Basically its like adding the part before '-' again to after '-'part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chintan&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590792#M443552</guid>
      <dc:creator>chintan1989</dc:creator>
      <dc:date>2019-06-12T07:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590795#M443553</link>
      <description>&lt;P&gt;Use Subfield() , like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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; &amp;nbsp;&lt;STRONG&gt;SubField&lt;/STRONG&gt;([InputCol], '-')&amp;nbsp; as Output&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590795#M443553</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-06-12T07:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590800#M443554</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 275px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13586i243EA9FA3895366E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.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;LOAD 
 [Input Column],
 LEFT([Input Column], 11) &amp;amp; subfield(Right([Input Column],5),'-') as [Output Column] 
INLINE [
 Input Column
 0013586655006-07
 0013586655009-07
 0013586655010-11
 0013586655012-11
 0012699405714-15
 0013586655048-49
 0013586655085-87
 0013586655088-87
 0013586655086-87
];
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590800#M443554</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-06-12T07:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590811#M443555</link>
      <description>&lt;P&gt;Subfield will split it into multiple rows,&lt;/P&gt;&lt;P&gt;Now since you still need to replace x number of characters the logic is bit more complex.&lt;/P&gt;&lt;P&gt;so here are my questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;are there always only 2 charactes after "-" sign? like -07,-87,-49 etc?&lt;/LI&gt;&lt;LI&gt;is this string always 16 characters&lt;/LI&gt;&lt;LI&gt;when you have example like this, what is your expected output (as in your example sheet you skipped those where second part is less than first part:&lt;OL&gt;&lt;LI&gt;0013586655009-07&lt;UL&gt;&lt;LI&gt;what do you expect to see here?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;0013586655085-87&lt;UL&gt;&lt;LI&gt;do yo u expect to see here&lt;UL&gt;&lt;LI&gt;0013586655085&lt;/LI&gt;&lt;LI&gt;0013586655086&lt;/LI&gt;&lt;LI&gt;0013586655087&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;or only&lt;UL&gt;&lt;LI&gt;0013586655085&lt;/LI&gt;&lt;LI&gt;0013586655087&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Depending on rules you could use subfield or I rather see here possibility of using while loop with IterNo function...but again rules have to be described with details!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590811#M443555</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-06-12T07:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590882#M443559</link>
      <description>Dear Lech&lt;BR /&gt;&lt;BR /&gt;I got your point. There are many variations in the column. Even the complete scenarios are still not clear as what other variations can be expected in the data.&lt;BR /&gt;Thanks for pointing it out.&lt;BR /&gt;Time being will use Vegar's provided solution.&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Chintan</description>
      <pubDate>Wed, 12 Jun 2019 10:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1590882#M443559</guid>
      <dc:creator>chintan1989</dc:creator>
      <dc:date>2019-06-12T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with cleaning a column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1591014#M443563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the code below which will transform the rows and populate the data as you desire.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AAA:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;load * Inline &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Input_Column&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0013586655006-07&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0013586655009-07&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0013586655010-11&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0013586655012-11&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0012699405714-15&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0013586655048-49&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0013586655085-87&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0013586655088-87&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0013586655086-87&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;M1:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load LEFT([Input_Column], 13) as Input_Column Resident AAA;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load LEFT([Input_Column], 11) &amp;amp; SubField([Input_Column], '-' ,2) as Input_Column Resident AAA;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;drop table AAA;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Input_Column&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0012699405714&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0012699405715&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655006&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655007&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655048&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655049&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655085&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655086&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655087&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0013586655088&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 12:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-cleaning-a-column/m-p/1591014#M443563</guid>
      <dc:creator>sunilpaul</dc:creator>
      <dc:date>2019-06-12T12:48:44Z</dc:date>
    </item>
  </channel>
</rss>

