<?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: Removing trailing numbers from dimension field values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145227#M896504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ooh, I just worked on the sample data provided.&lt;/P&gt;&lt;P&gt;I should have paid attention on the word trailing.&lt;/P&gt;&lt;P&gt;Anyway glad, you got so many ways to get the desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 12:02:26 GMT</pubDate>
    <dc:creator>varshavig12</dc:creator>
    <dc:date>2016-07-26T12:02:26Z</dc:date>
    <item>
      <title>Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145218#M896493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am facing an issue regarding the data preparation from an excel data. The issue is described below-&lt;/P&gt;&lt;P&gt;Some dimension values have a trailing nos. which should not be there. E.g. under &lt;STRONG&gt;Field1 &lt;/STRONG&gt;we have several values with trailing nos. See the snap below.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 64px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;ABC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;ABC&lt;SPAN class="font5"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;ABC&lt;SPAN class="font5"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;ABC&lt;SPAN class="font5"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;ABC&lt;SPAN class="font5"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to remove all the unwanted trailing nos. for &lt;STRONG&gt;Field1&lt;/STRONG&gt; and &lt;STRONG&gt;Field2. &lt;/STRONG&gt;Please find the attach data file. Also side by side I showed the desired output. Can anyone please help me in achieving the result ? Any help will be appreciated. Tanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145218#M896493</guid>
      <dc:creator>joydipp1988</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145219#M896494</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;Try below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load if(IsNum( Right(Field1,1)),Left(Field1,Len(Field1)-1),Field1) as Field2,Field1 inline [&lt;/P&gt;&lt;P&gt;Field1&lt;/P&gt;&lt;P&gt;ABC&lt;/P&gt;&lt;P&gt;ABC1&lt;/P&gt;&lt;P&gt;ABC2&lt;/P&gt;&lt;P&gt;ABC3&lt;/P&gt;&lt;P&gt;ABC4&lt;/P&gt;&lt;P&gt;DEFXY&lt;/P&gt;&lt;P&gt;DEFXY1&lt;/P&gt;&lt;P&gt;DEFXY2&lt;/P&gt;&lt;P&gt;DEFXY3&lt;/P&gt;&lt;P&gt;GHI&lt;/P&gt;&lt;P&gt;GHI1&lt;/P&gt;&lt;P&gt;GHI2&lt;/P&gt;&lt;P&gt;JKLMNO&lt;/P&gt;&lt;P&gt;JKLMNO1&lt;/P&gt;&lt;P&gt;JKLMNO2&lt;/P&gt;&lt;P&gt;JKLMNO3&lt;/P&gt;&lt;P&gt;JKLMNO4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 08:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145219#M896494</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-07-26T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145220#M896496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;purgechar(&lt;STRONG&gt;Field1&lt;/STRONG&gt;,0123456789) as &lt;STRONG&gt;Field1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 09:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145220#M896496</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-07-26T09:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145221#M896497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Kaushik, however based on the .xlsx file this might be a more appropriate script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsNum(Right(Field1,1)),Left(Field1,Len(Field1)-1),Field1) as Field1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(IsNum(Right(Field2,1)),Left(Field2,Len(Field2)-1),Field2) as Field2,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Values&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;From &lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-size: 13px; font-family: 'Open Sans', Arial, sans-serif;"&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 09:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145221#M896497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-26T09:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145222#M896499</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;Do you want to remove all the numeric values in field1 and Field2? Or only Trailing numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;ABC1 -&amp;gt; ABC&lt;/P&gt;&lt;P&gt;1ABC -&amp;gt; ?&lt;/P&gt;&lt;P&gt;A1BC -&amp;gt; ?&lt;/P&gt;&lt;P&gt;ABC123 -&amp;gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 09:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145222#M896499</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-07-26T09:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145223#M896500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varsha,&lt;/P&gt;&lt;P&gt;Thanks for the reply. But in real case,my scenario a bit different that's why can't use Purgechar(). See the snap below-&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Trailing Nos.PNG" class="jive-image image-1" src="/legacyfs/online/132432_Trailing Nos.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;See I want to remove blue portion nos only, but not the yellow portion nos. Purgechar() will remove all the nos. That's why can't use Purgechar().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 09:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145223#M896500</guid>
      <dc:creator>joydipp1988</dc:creator>
      <dc:date>2016-07-26T09:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145224#M896501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kaushik for quick reply. I too got one solution. I'm attaching my solution as a reply to the original post. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 09:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145224#M896501</guid>
      <dc:creator>joydipp1988</dc:creator>
      <dc:date>2016-07-26T09:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145225#M896502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;I want to remove trailing nos only. Thanks for your interest. Also I got one solution. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm attaching my solution as a reply to the original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 09:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145225#M896502</guid>
      <dc:creator>joydipp1988</dc:creator>
      <dc:date>2016-07-26T09:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145226#M896503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Thanks for the help. I was trying to solve it too and got the solution. Here is my script code-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; If( Match(Right(Field1,1),1,2,3,4,5,6,7,8,9,0), Replace(Field1, Right(Field1,1),''), Field1) as Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If( Match(Right(Field2,1),1,2,3,4,5,6,7,8,9,0), Replace(Field2, Right(Field2,1),''), Field2) as Field2&lt;/P&gt;&lt;P&gt;&amp;nbsp; Values&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Test Data.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 1 lines, table is Data);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 09:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145226#M896503</guid>
      <dc:creator>joydipp1988</dc:creator>
      <dc:date>2016-07-26T09:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Removing trailing numbers from dimension field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145227#M896504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ooh, I just worked on the sample data provided.&lt;/P&gt;&lt;P&gt;I should have paid attention on the word trailing.&lt;/P&gt;&lt;P&gt;Anyway glad, you got so many ways to get the desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-trailing-numbers-from-dimension-field-values/m-p/1145227#M896504</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-07-26T12:02:26Z</dc:date>
    </item>
  </channel>
</rss>

