<?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 Numbering the customer name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Numbering-the-customer-name/m-p/1602760#M736817</link>
    <description>&lt;P&gt;Hi Masters,&lt;/P&gt;&lt;P&gt;If a customer belongs to a specific category, we do not want to disclose the customer name; thus&amp;nbsp;I was wondering if it is possible to replace the customer name with "Customer 1", "Customer 2", "Customer 3" ...etc during the load.&lt;/P&gt;&lt;P&gt;Therefore, every time the category falls under "CMarket" we want to replace the customer name by "Customer" + "Autonumber" = Customer 1, Customer 2 etc&lt;/P&gt;&lt;P&gt;The numbering should be automatic for every new customer under CMarket category.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;Currently:&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vendor&lt;/TD&gt;&lt;TD&gt;John's Transport&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;Barbershop Michigan&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;NY cellphone&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vendor&lt;/TD&gt;&lt;TD&gt;Mary's Food Truck&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;Texas Printer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct&lt;/TD&gt;&lt;TD&gt;Fast Car Rental&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;Expected:&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vendor&lt;/TD&gt;&lt;TD&gt;John's Transport&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer 1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer 2&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vendor&lt;/TD&gt;&lt;TD&gt;Mary's Food Truck&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer 3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct&lt;/TD&gt;&lt;TD&gt;Fast Car Rental&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>felipe_oliveira</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Numbering the customer name</title>
      <link>https://community.qlik.com/t5/QlikView/Numbering-the-customer-name/m-p/1602760#M736817</link>
      <description>&lt;P&gt;Hi Masters,&lt;/P&gt;&lt;P&gt;If a customer belongs to a specific category, we do not want to disclose the customer name; thus&amp;nbsp;I was wondering if it is possible to replace the customer name with "Customer 1", "Customer 2", "Customer 3" ...etc during the load.&lt;/P&gt;&lt;P&gt;Therefore, every time the category falls under "CMarket" we want to replace the customer name by "Customer" + "Autonumber" = Customer 1, Customer 2 etc&lt;/P&gt;&lt;P&gt;The numbering should be automatic for every new customer under CMarket category.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;Currently:&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vendor&lt;/TD&gt;&lt;TD&gt;John's Transport&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;Barbershop Michigan&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;NY cellphone&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vendor&lt;/TD&gt;&lt;TD&gt;Mary's Food Truck&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;Texas Printer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct&lt;/TD&gt;&lt;TD&gt;Fast Car Rental&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;Expected:&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vendor&lt;/TD&gt;&lt;TD&gt;John's Transport&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer 1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer 2&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vendor&lt;/TD&gt;&lt;TD&gt;Mary's Food Truck&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMarket&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Customer 3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct&lt;/TD&gt;&lt;TD&gt;Fast Car Rental&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numbering-the-customer-name/m-p/1602760#M736817</guid>
      <dc:creator>felipe_oliveira</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Numbering the customer name</title>
      <link>https://community.qlik.com/t5/QlikView/Numbering-the-customer-name/m-p/1602938#M736820</link>
      <description>&lt;P&gt;One way to do this is with a mapping table.&lt;/P&gt;
&lt;P&gt;A mapping table is a bit like a Vlookup where you can replace values with what you find in the lookup.&lt;/P&gt;
&lt;P&gt;So in this case, create a mapping table before you load the table with the Customers.&lt;/P&gt;
&lt;P&gt;CMarket_Mapping:&lt;/P&gt;
&lt;P&gt;mapping load&lt;/P&gt;
&lt;P&gt;[Customer Name]&amp;nbsp; as OldName,&lt;/P&gt;
&lt;P&gt;'Customer '&amp;amp; rowno() as NewName&lt;/P&gt;
&lt;P&gt;from .....&lt;/P&gt;
&lt;P&gt;where Category='CMarket';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then in the Customers table as you load the customers, you replace them with the lookup using ApplyMap&lt;/P&gt;
&lt;P&gt;ApplyMap('CMarket_Mapping',&amp;nbsp;[Customer Name],&amp;nbsp;[Customer Name]) as&amp;nbsp;[Customer Name],&lt;/P&gt;
&lt;P&gt;In place of&amp;nbsp;[Customer Name] field.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 00:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numbering-the-customer-name/m-p/1602938#M736820</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-07-17T00:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Numbering the customer name</title>
      <link>https://community.qlik.com/t5/QlikView/Numbering-the-customer-name/m-p/1602986#M736821</link>
      <description>&lt;P&gt;Hei,&lt;/P&gt;&lt;P&gt;I would script like it like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;temp:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LOAD Category, &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[Customer Name],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AutoNumber(RowNo(), Category) as number&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Numbering-the-customer-name/td-p/1602760" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Numbering-the-customer-name/td-p/1602760&lt;/A&gt;]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;tmp:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,If(Category = 'CMarket', Category &amp;amp; number, [Customer Name]) as new_customer_name&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Resident temp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table temp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.jpg" style="width: 362px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15550i45662A208A8954D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.jpg" alt="Screenshot_1.jpg" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 05:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numbering-the-customer-name/m-p/1602986#M736821</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-07-17T05:42:26Z</dc:date>
    </item>
  </channel>
</rss>

