<?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: Rename Field Value if it Contains a Number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39961#M604809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sasidhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this but I need to assign the new name and keep them under the same field. This logic doesn't seem to work when I apply the same functions to a single field. Could you suggest how to solve it in that scenario? Thanks again for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Emmanuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 16:57:50 GMT</pubDate>
    <dc:creator>ecrobles18</dc:creator>
    <dc:date>2018-05-02T16:57:50Z</dc:date>
    <item>
      <title>Rename Field Value if it Contains a Number</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39959#M604807</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am working on an enhancement to an existing report. In this information that comes from a third party service company there is a field &lt;SPAN style="font-size: 13.3333px;"&gt;[ShipmentExtractRecord.PickLocation/Location/Name]&lt;/SPAN&gt; that contains &lt;SPAN style="font-size: 13.3333px;"&gt;many different values. &lt;/SPAN&gt;I have been asked to label the type of location by grouping what is in the contained in the name. The field [ShipmentExtractRecord.PickLocation/Location/Name] contains multiple name values such as, &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 441px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="441"&gt;GILLILAN 1-35-26XH,BLAINE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;GOLDEN 1306 1 WH18,KINGFISHER&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;GRINDSTONE 2 FEE 2H,CULBERSON&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;HALWORLD - MONA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;HARDESTY 1H2215,GRADY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;HARDESTY 1H-22-15,GRADY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;HES MULTICHEM&amp;nbsp; CANADIAN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;HES MULTICHEM - CANADIAN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;HEXION STEEL CITY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;HICKMAN 2107 1MH22,GARFIELD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;HICKMAN 2107 1MH-22,GARFIELD&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The request is for anything that contains Halworld to be labeled "Halworld", anything containing a number, &lt;SPAN style="font-size: 13.3333px;"&gt;HARDESTY 1H2215,GRADY,&lt;/SPAN&gt; in the name would be labeled "Diversion", and Lastly anything else, &lt;SPAN style="font-size: 13.3333px;"&gt;HEXION STEEL CITY,&lt;/SPAN&gt; would be labeled "Other". The intent is to have this grouped and dispalyed on a chart. I am looking for insight on what the best approach would be here. If I write this in an if statement I would like to know how to account for the names that contain a number, as you see there is no standard on where the number is placed in the name. Kindly, can any lead some help on this topic? Your help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Emmanuel Robles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 19:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39959#M604807</guid>
      <dc:creator>ecrobles18</dc:creator>
      <dc:date>2018-05-01T19:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Field Value if it Contains a Number</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39960#M604808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this?&lt;/P&gt;&lt;P&gt;If(SubstringCount(YourField,'&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HALWORLD')&amp;gt;0, YourField) As Halworld,&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;If(IsNum(KeepChar(YourField,'&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;0123456789')), YourField) As Diversion,&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;f(SubstringCount(YourField,'&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HALWORLD')=0 AND &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IsNum(KeepChar(YourField,'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;0123456789'))=0&lt;/SPAN&gt;, YourField) As Other&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 19:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39960#M604808</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-01T19:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Field Value if it Contains a Number</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39961#M604809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sasidhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this but I need to assign the new name and keep them under the same field. This logic doesn't seem to work when I apply the same functions to a single field. Could you suggest how to solve it in that scenario? Thanks again for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Emmanuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 16:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39961#M604809</guid>
      <dc:creator>ecrobles18</dc:creator>
      <dc:date>2018-05-02T16:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Field Value if it Contains a Number</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39962#M604810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;If(SubstringCount(YourField,'&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;HALWORLD')&amp;gt;0, YourField) ,'Halworld',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;If(IsNum(KeepChar(YourField,'&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0123456789')), YourField) , 'Diversion',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;'Other' ) ) As NewField&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 17:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39962#M604810</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-02T17:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Field Value if it Contains a Number</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39963#M604811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sasidhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Again thank you for the insight this definitely help. However, I did have to modify a bit to get the output I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(SubstringCount([ShipmentExtractRecord.PickLocation/Location/Name],'HALWORLD')&amp;gt;0, 'HALWORLD',&lt;/P&gt;&lt;P&gt;If(IsNum(KeepChar([ShipmentExtractRecord.PickLocation/Location/Name],'0123456789')), 'DIVERSION','OTHER')) As NEWFIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Emmanuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 20:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Field-Value-if-it-Contains-a-Number/m-p/39963#M604811</guid>
      <dc:creator>ecrobles18</dc:creator>
      <dc:date>2018-05-02T20:41:49Z</dc:date>
    </item>
  </channel>
</rss>

