<?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: Categorize the data using sub field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Categorize-the-data-using-sub-field/m-p/104027#M759184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;LOAD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product ID],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(Match(SubField([Product ID], '-', -1), '7529', '17973'), 'ProductA', 'ProductB') AS [Product Name],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;FROM ...;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your example contains only two cases. If you need to translate a large(r) number of Product IDs, then use a Mapping Table instead of Pick/Match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2018 06:43:04 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2018-08-21T06:43:04Z</dc:date>
    <item>
      <title>Categorize the data using sub field</title>
      <link>https://community.qlik.com/t5/QlikView/Categorize-the-data-using-sub-field/m-p/104026#M759183</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;I have a field called 'Product ID' as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field values is end with 7539 we need to name it as ProductA and if &lt;SPAN style="font-size: 13.3333px;"&gt;field values is end with 17973 we need to name it as ProductB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="349" src="https://community.qlik.com/legacyfs/online/211357_Capture.PNG" style="height: 349px; width: 161.177px;" width="161" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&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/Categorize-the-data-using-sub-field/m-p/104026#M759183</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize the data using sub field</title>
      <link>https://community.qlik.com/t5/QlikView/Categorize-the-data-using-sub-field/m-p/104027#M759184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;LOAD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product ID],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(Match(SubField([Product ID], '-', -1), '7529', '17973'), 'ProductA', 'ProductB') AS [Product Name],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;FROM ...;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your example contains only two cases. If you need to translate a large(r) number of Product IDs, then use a Mapping Table instead of Pick/Match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 06:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Categorize-the-data-using-sub-field/m-p/104027#M759184</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-08-21T06:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize the data using sub field</title>
      <link>https://community.qlik.com/t5/QlikView/Categorize-the-data-using-sub-field/m-p/104028#M759185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(right(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Product_ID&lt;/SPAN&gt;,4)='7539','prod_A',if(right(Product_ID,5)='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;17973 &lt;/SPAN&gt;','prod_B','Prod_C')) as Prod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 06:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Categorize-the-data-using-sub-field/m-p/104028#M759185</guid>
      <dc:creator>chinnuchinni</dc:creator>
      <dc:date>2018-08-21T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize the data using sub field</title>
      <link>https://community.qlik.com/t5/QlikView/Categorize-the-data-using-sub-field/m-p/104029#M759186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like below&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;subfield(Fieldname, '-', 1) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;ProductB&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;subfield(Fieldname, '-', 2) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ProductA &lt;/SPAN&gt;,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 06:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Categorize-the-data-using-sub-field/m-p/104029#M759186</guid>
      <dc:creator>ChennaiahNallani</dc:creator>
      <dc:date>2018-08-21T06:48:54Z</dc:date>
    </item>
  </channel>
</rss>

