<?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: Group customer codes to get total sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075773#M937063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ooops! Sorry, completely messed that up.&amp;nbsp; This should be better :&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: #000000; padding-left: 30px;"&gt;&lt;EM&gt;Customers:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ADDRESS_1",&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ADDRESS_2",&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACRONYM",&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CUSTOMER_CODE",&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( wildmatch ( '&lt;EM style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[CUSTOMER_CODE] &lt;/EM&gt;,&amp;nbsp; 'MEN*', 'HDC*', 'LWE*' ) ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PurgeChar( [CUSTOMER_CODE] ,'0123456789') ,null() )&amp;nbsp; as [CUSTOMER_PREFIX] ),&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CUSTOMER_TYPE"&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc......&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Sql Select *&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;FROM "CUSTOMER MASTER FILE";&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 09:56:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-10T09:56:39Z</dc:date>
    <item>
      <title>Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075763#M937051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello-&lt;/P&gt;&lt;P&gt;I am trying to get a sum of sales by a customer grouping however that total sale is not held as a field in our software.&amp;nbsp; For example I have certain customers I would like to group together and get their sales by MTD and YTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cust code:&lt;/P&gt;&lt;P&gt;MEN1&lt;/P&gt;&lt;P&gt;MEN2&lt;/P&gt;&lt;P&gt;Then I would like a total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LWE1&lt;/P&gt;&lt;P&gt;LWE2&lt;/P&gt;&lt;P&gt;LWE3&lt;/P&gt;&lt;P&gt;Then I would like a total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HD1&lt;/P&gt;&lt;P&gt;HD2&lt;/P&gt;&lt;P&gt;HD3&lt;/P&gt;&lt;P&gt;Then I would like a total &lt;/P&gt;&lt;P&gt;It's not&amp;nbsp; for all customers though, only some of them.&amp;nbsp; Once I get the sums per customers, I would like to then put those totals by customer on a graph.&lt;/P&gt;&lt;P&gt;MEN Total&lt;/P&gt;&lt;P&gt;LWE Total&lt;/P&gt;&lt;P&gt;HD Total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how I can group these together to get their sales by MTD/YTD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Jennifer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 18:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075763#M937051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T18:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075764#M937053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look like you need to create a new dimension &lt;EM&gt;Customer&lt;/EM&gt; by removing the numbers from your field &lt;EM&gt;Cust Code&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would that work ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 18:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075764#M937053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T18:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075765#M937055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;we can achieve this 2 ways.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1) &lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load *,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF(Wildmatch(Customer,'Men*'),'Men', &lt;SPAN style="font-size: 13.3333px;"&gt;IF(Wildmatch(Customer,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LWE&lt;/SPAN&gt;*'),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LWE&lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;IF(Wildmatch(Customer,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HD&lt;/SPAN&gt;*'),'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HD&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'))) as&amp;nbsp; Customer_Grp&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from Customers;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Dimension : Customer_Grp&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Expression : sum(Sales)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;2)&lt;STRONG&gt; Front End&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Calculated Dimension:&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; IF(Wildmatch(Customer,'Men*'),'Men', &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; &lt;SPAN style="font-size: 13.3333px;"&gt;IF(Wildmatch(Customer,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LWE&lt;/SPAN&gt;*'),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LWE&lt;/SPAN&gt;', &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&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;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;IF(Wildmatch(Customer,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HD&lt;/SPAN&gt;*'),'&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HD&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;')))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Expression:&amp;nbsp; sum(Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 18:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075765#M937055</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-02-08T18:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075766#M937056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am fairly new to this, especially the scripting.&amp;nbsp; If I already have this being loaded (my customer master table), do I just add the above to this or will this be a separate QVD?&amp;nbsp; The field is actually the CUSTOMER_CODE so would I use that where you reference Customer in the above formula?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Qualify *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Unquality CUSTOMER_CODE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Customers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ADDRESS_1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ADDRESS_2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;CUSTOMER_CODE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sql Select *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;FROM "CUSTOMER MASTER FILE";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Store Customers into .\QVD\Customers.QVD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Drop TABLE Customers;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 15:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075766#M937056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T15:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075767#M937057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do it something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Customers:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;PurgeChar&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;( [&lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER_CODE&lt;/SPAN&gt;] , '0123456789' )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Customer Prefix]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM style="color: #000000;"&gt;ADDRESS_1&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;ADDRESS_2&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;CUSTOMER_CODE&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;etc.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Sql Select *&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;FROM "CUSTOMER MASTER FILE";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the PurgeChar() function in the QV Desktop Help.&amp;nbsp; Basically what it does above is remove all the numbers from the string creating a new field called &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;EM&gt; [Customer Prefix]&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 17:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075767#M937057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T17:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075768#M937058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that would work if I needed to do this for all customer codes, however I only have a 'group' of customers I need to do this for, not all of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075768#M937058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T18:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075769#M937059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can define how you would identify if a customer is in the 'group' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075769#M937059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T18:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075770#M937060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have certain accounts that we want to track on their own sheet, so out of all of our customers I have a list of about 12 accounts that I need to be able to get total sales on for MTD and YTD (basically adding up each of our divisions sales):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cust Code:&lt;/P&gt;&lt;P&gt;MEN1&lt;/P&gt;&lt;P&gt;MEN2&lt;/P&gt;&lt;P&gt;Need total sales and plot a point on a graph for the total called something like:&amp;nbsp; MEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LWE1&lt;/P&gt;&lt;P&gt;LWE2&lt;/P&gt;&lt;P&gt;LWE3&lt;/P&gt;&lt;P&gt;Need total sales and plot a point on a graph for the total called something like LWE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would apply to like 4 more accounts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075770#M937060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T18:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075771#M937061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if ( index ( 'MEN1' , MEN2' , 'LWE1' , '...add the rest of your values' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PurgeChar( [CUSTOMER_CODE] , '0123456789' )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Customer Prefix]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in, if &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER_CODE &lt;/SPAN&gt;identified as in your 'group', set &lt;SPAN style="font-size: 13.3333px;"&gt;[Customer Prefix] value to characters, otherwise null()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 19:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075771#M937061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T19:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075772#M937062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I have tried this and got a script error, is it something simple I don't see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in expression:Index takes 2-3 parameters&lt;/P&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ADDRESS_1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ADDRESS_2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACRONYM",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CUSTOMER_CODE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (index('MENCP1', 'MENCP2', 'HDCRP1', 'HDCRP2', 'HDCRP3')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PurgeChar([CUSTOMER_CODE],'0123456789') AS [CUSTOMER_PREFIX]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CUSTOMER_TYPE",&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 20:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075772#M937062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T20:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075773#M937063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ooops! Sorry, completely messed that up.&amp;nbsp; This should be better :&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: #000000; padding-left: 30px;"&gt;&lt;EM&gt;Customers:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ADDRESS_1",&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ADDRESS_2",&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACRONYM",&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CUSTOMER_CODE",&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( wildmatch ( '&lt;EM style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[CUSTOMER_CODE] &lt;/EM&gt;,&amp;nbsp; 'MEN*', 'HDC*', 'LWE*' ) ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PurgeChar( [CUSTOMER_CODE] ,'0123456789') ,null() )&amp;nbsp; as [CUSTOMER_PREFIX] ),&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CUSTOMER_TYPE"&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc......&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Sql Select *&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;FROM "CUSTOMER MASTER FILE";&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 09:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075773#M937063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-10T09:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Group customer codes to get total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075774#M937064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did it!&amp;nbsp; This will be helpful for some other customers I may need to do something similar with.&amp;nbsp; Thank you for your time and help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 15:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-customer-codes-to-get-total-sales/m-p/1075774#M937064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-10T15:53:38Z</dc:date>
    </item>
  </channel>
</rss>

