<?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: Append characters at the end of style field based on the selection made at the department field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675889#M592227</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/106651"&gt;@Anuhyak1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET vDept = 512;

temp:
load * inline [
style,
g9OHZW5369,
q9TJTJ5258,
t9NCGT5255,
FPTKP0696M
];

temp2:
load style&amp;amp;if(isnum(right(style,1)),if($(vDept)=512,'M',if($(vDept)=232,'P',if($(vDept)=789,'X'))),'') as new_style
resident temp;

drop table temp;&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 14 Feb 2020 18:45:50 GMT</pubDate>
    <dc:creator>Ezirraffner</dc:creator>
    <dc:date>2020-02-14T18:45:50Z</dc:date>
    <item>
      <title>Append characters at the end of style field based on the selection made at the department field</title>
      <link>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675877#M592226</link>
      <description>&lt;P&gt;I have style and department&amp;nbsp; fields .&amp;nbsp; Dept is selection box which has values 512,232,789&lt;/P&gt;&lt;TABLE width="155"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="155"&gt;STYLE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;g9OHZW5369&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;q9TJTJ5258&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;t9NCGT5255&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FPTKP0696M&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If a style doesn't have a letter as the last character, add a letter based on the Dept #&lt;BR /&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;&amp;nbsp; Dept 512 = M (for M)&lt;BR /&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;&amp;nbsp; Dept 232 = P (for P)&lt;BR /&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;&amp;nbsp; Dept 789 = X (for x)&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;&amp;nbsp; Example: g9OH-ZW5369 --&amp;gt; g9OH-ZW5369&lt;STRONG&gt;M&lt;/STRONG&gt; because it comes from the M Dept&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; &amp;nbsp; &amp;nbsp;&amp;nbsp;FPTKP0696M --&amp;gt; Don't append anything it has character at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;How to develop in the script&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675877#M592226</guid>
      <dc:creator>Anuhyak1</dc:creator>
      <dc:date>2024-11-16T01:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Append characters at the end of style field based on the selection made at the department field</title>
      <link>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675889#M592227</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/106651"&gt;@Anuhyak1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET vDept = 512;

temp:
load * inline [
style,
g9OHZW5369,
q9TJTJ5258,
t9NCGT5255,
FPTKP0696M
];

temp2:
load style&amp;amp;if(isnum(right(style,1)),if($(vDept)=512,'M',if($(vDept)=232,'P',if($(vDept)=789,'X'))),'') as new_style
resident temp;

drop table temp;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Feb 2020 18:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675889#M592227</guid>
      <dc:creator>Ezirraffner</dc:creator>
      <dc:date>2020-02-14T18:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Append characters at the end of style field based on the selection made at the department field</title>
      <link>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675894#M592228</link>
      <description>&lt;P&gt;Is Dept in the same table in the script?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 19:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675894#M592228</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-02-14T19:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Append characters at the end of style field based on the selection made at the department field</title>
      <link>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675897#M592229</link>
      <description>&lt;P&gt;I have to put '- ' after 4 digits from left. how to embed the code into this logic for style field&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp;g9OH-ZW5369&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 19:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675897#M592229</guid>
      <dc:creator>Anuhyak1</dc:creator>
      <dc:date>2020-02-14T19:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Append characters at the end of style field based on the selection made at the department field</title>
      <link>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675899#M592230</link>
      <description>&lt;P&gt;Yes, Dept and style are both in the same table.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 19:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675899#M592230</guid>
      <dc:creator>Anuhyak1</dc:creator>
      <dc:date>2020-02-14T19:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Append characters at the end of style field based on the selection made at the department field</title>
      <link>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675900#M592231</link>
      <description>&lt;P&gt;Hi Eric&lt;/P&gt;&lt;P&gt;I have to put '- ' after 4 digits from left. how to append this logic to the one you suggested&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp;g9OH-ZW5369&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 19:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675900#M592231</guid>
      <dc:creator>Anuhyak1</dc:creator>
      <dc:date>2020-02-14T19:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Append characters at the end of style field based on the selection made at the department field</title>
      <link>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675905#M592232</link>
      <description>&lt;P&gt;MapDept:&lt;BR /&gt;Mapping Load * Inline [&lt;BR /&gt;Dept, Suffix&lt;BR /&gt;&lt;SPAN&gt;512, M&lt;BR /&gt;&lt;/SPAN&gt;232, P&lt;BR /&gt;789, X&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;Load&lt;BR /&gt;&amp;nbsp; if(IsNum(Right(Style,1)),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; STYLE &amp;amp; ApplyMap('MapDept', DEPT),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; STYLE) as STYLE,&lt;BR /&gt;...the remainder of your load statement...&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 19:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1675905#M592232</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-02-14T19:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Append characters at the end of style field based on the selection made at the department field</title>
      <link>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1676737#M592233</link>
      <description>&lt;P&gt;I have to put '- ' after 4 digits from left. how to append this logic to the one you suggested with Apply map.&lt;/P&gt;&lt;P&gt;Please help, some times H is repeating if i do logic&amp;nbsp;=left(STYLE,4)&amp;amp;'-'&amp;amp; right(STYLE,len(STYLE)-4) or truncating if increase the number&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp;g9OH-ZW5369&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 15:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-characters-at-the-end-of-style-field-based-on-the/m-p/1676737#M592233</guid>
      <dc:creator>Anuhyak1</dc:creator>
      <dc:date>2020-02-18T15:41:56Z</dc:date>
    </item>
  </channel>
</rss>

