Classyfying the customers based on their sales

Hi,
I have report showing the cutomers and the sales units to them
for example:
customer     sales
A     200
B     300
C     50
D     100
how can i grade the customers based on their sales, for example
Grading                customer     sales
Gold >=300            B              300
Sub total                   300
silver >100 & <300    A              200
sub total                   200
Bronze <=100          C               50
                   D              100
sub total                   150
Could anyone please help me
Message was edited by:
        rapo
Message was edited by:
        rapo

Thanks ganesh and ramesh,
Thanks for your inputs.
By exceptions, i can get classigy them and even color them and sort them but i cannot get the sub totals for each classification.
Ramesh, can you please clarify in detail how this can be done by using the formula.
thanks and regards

Similar Messages

  • Group the files based on their extensions

    Hi,
    I am traversing a dir and listing all the files under that directory. Now i want to group the files based on the extension and just print the number of files with each extension.
    ex:
    Extension No.of Files Size of the files
    .java 10 23455 bytes
    .html 2 1000 bytes
    I am able to get the extension of the files. I would like to know how to proceed after that.
    Any sample code will be helpful.
    Regards
    Kutty

    I have used a method to list all the files in the directory. After adding files with same extension to the HashMap. i am printing files after reading file by file. I need to print the files once i complete reading all the files in the directory.
    Any suggestions?
    private void listingFiles(File f )
              Map extensionMap = null;
              File[] files = f.listFiles();
              for( int i = 0; i < files.length; i++ )
                   File file1 = files;
                   Dprop.size += files[i].length();
                   if (file1.isFile())
                        fcount = fcount +1;     
                        if (extensionMap == null)
                             extensionMap = new HashMap();
                             // Group files by extension
                             for(int idx = 0; idx < files.length; idx++)
                                  if (files[idx].isFile() && files[idx] != null)
                                       String ext = getExtension(files[idx]); // get the extension
                                       ext = ext.toLowerCase();
                                       List fileList = (List)extensionMap.get(ext);
                                       if(fileList == null)
                                       fileList = new ArrayList();
                                       extensionMap.put(ext, fileList);
                                       fileList.add(files[idx]);
                        // Access all the files by extension
                             for(Iterator extensionIterator = extensionMap.keySet().iterator(); extensionIterator.hasNext(); )
                                  String ext = (String)extensionIterator.next();
                                  List fileList = (List)extensionMap.get(ext);
                                  System.out.println("\n\nNo of Files "+fileList.size()+" with extension '"+ext+"' in '"+f+ "' Directory");
                                  for(Iterator fileIterator = fileList.iterator(); fileIterator.hasNext(); )
                                       File file = (File)fileIterator.next();
                                  System.out.println("File Name "+file+" File Size "+file.length());
                   else
                        dcount = dcount +1;
                        listingFiles( file1 );
    Thanks in advance
    Kutty

  • P routers have no knowledge of the customer prefixes, they just Label switch the packets based on their LFIB

    Here is a scenrio,
    (1.1.1.0)CE1-PE1-P-PE2-CE2(2.2.2.0)
    P router has no customer routes in its routing table, since it is not participating in iBGP.. thats perfect....
    but P routers are meant to label switch packets between CE-1 & CE-2 through PE1 & PE2.. but i cannot see any labels for customer routes in P LFIB:
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    P#sh mpls for
    Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop
    tag    tag or VC   or Tunnel Id      switched   interface
    16     Pop tag     10.10.10.11/32    6703       Se0/1      point2point
    17     Pop tag     10.10.10.10/32    2140       Se0/0      point2point

    Hi Mukarramjahraheel 
    You are right . P will not participating in iBGP. He is not aware of any Customer router of BGP VPNv4 route..
    P Router know only internal IGP. Please go through the below points.
    The JOB of Core router is to propogate the route As Fast As Possible without delay.
    Don't Get confuse in MPLS . MPLS is used for only  Fast switching . Whouth MPLS also you can RUN  VRF kown as VRF - Lite , BGP - AF & use CEF for fast switching.
    Before Going Further Please check you Design = Whether You want to Create Full Mesh IBGP  or Go With  BGP Route Reflector.
    Communication from CE to PE
    PE routers translate into VPN-V4 route
    Assigns an RD, SOO (if configured) and RT based on configuration
    Re-writes Next-Hop attribute  (to PE loopback ) -- When PE Re-Write the Next HOP , That next hop will  IBGP VPNv4 Neighbore PE and that is reachable through internal IGP. MPLS work only for Internal IGP to forward the packet AFAP without delay .
    Assigns a label based on VRF and/or interface
    Sends MP-BGP update to all PE neighbors
    Receiving PE routers translate to IPv4Insert the route into the VRF identified by the RT
    attribute (based on PE configuration)The label associated to the VPN-V4 address will be set onpackets forwarded towards the destination

  • How do I select the items based on their adjacent equality?

    In the below table,
        DECLARE @t1 TABLE(id INT,NAME VARCHAR(MAX))
        INSERT INTO @t1 VALUES(1,'test')
        INSERT INTO @t1 VALUES(2,'test')
        INSERT INTO @t1 VALUES(3,'best')
        INSERT INTO @t1 VALUES(4,'rest')
        INSERT INTO @t1 VALUES(5,'rest')
    how can I select the records that have equals values coming adjacently? That is I am running an SQL job. It should take the adjacent equal value  count for its processing. In the below table, first time the job is running it should take count as 2 the
    2nd time job is running it should be 1. Third time it should be 2. What is the query that will fetch the cont of equal records for name column? In case no equal columns it should be 1. Please help
    mayooran99

    Hi
    Try the following code.
    DECLARE @t1 TABLE(id INT,NAME VARCHAR(MAX))
    INSERT INTO @t1 VALUES(1,'test')
    INSERT INTO @t1 VALUES(2,'test')
    INSERT INTO @t1 VALUES(3,'best')
    INSERT INTO @t1 VALUES(4,'rest')
    INSERT INTO @t1 VALUES(5,'rest')
    INSERT INTO @t1 VALUES(6,'test')
    INSERT INTO @t1 VALUES(7,'best')
    INSERT INTO @t1 VALUES(8,'best')
    INSERT INTO @t1 VALUES(9,'vest')
    --ranking adjacent names, running total
    SELECT rs.id, rs.NAME, ROW_NUMBER() over (partition by name, nxt_id order by id) RankingCount
    FROM (
    SELECT nxt.id, nxt.NAME,(SELECT min(s.id)
    FROM @t1 s
    WHERE s.name <> nxt.name
    AND s.id > nxt.id
    ) as nxt_id
    FROM @t1 nxt) rs
    ORDER BY rs.id;
    --code to just return the totals
    with cteTotals
    as
    SELECT rs.id, rs.NAME, ROW_NUMBER() over (partition by name, nxt_id order by id) RankingCount, nxt_id, ROW_NUMBER() over (partition by name, nxt_id order by id desc) Ranking
    FROM (
    SELECT nxt.id, nxt.NAME,(SELECT min(s.id)
    FROM @t1 s
    WHERE s.name <> nxt.name
    AND s.id > nxt.id
    ) as nxt_id
    FROM @t1 nxt) rs
    select Name, RankingCount
    from cteTotals
    WHERE Ranking=1
    order by id
    The first query keeps a running total of adjacent names, the second one just reports the totals

  • Fetch the plant(werks) based on material,sales orgnization and division

    Hi Experts,
    I need your help.Please please help me.
    Is there any way/table to get the plant based on material,sales org and division?
    Please help me.
    Edited by: Sonali Chandra on Apr 17, 2009 11:30 AM

    Take the following fields in your 1st itab (itab1)
    Material
    Sales org
    Division
    Plant.
    Take the following fields in your 2nd itab (itab2)
    Material
    Plant
    To get the plant values in itab1, you can use the following logic.
    Loop at itab1
    Read table itab2 with key material = itab1-material.
    Itab1-plant = itab2-plant.
    Modify itab1 by transporting plant.
    Endloop.
    Hope this will help you.
    Regards,
    Deepa Kulkarni

  • SSIS package to order all the CSV files based on their date of creation/modification mentioned in a filename and load the least recent file in oracle Destination

    HI,
    I need a help for creating SSIS package which has flat file source (specifically , delimited csv files) which are placed in a shared folder
    having file names as  File_1_2015-04-30 08:54:13.900.csv, File_2_2015-04-30 07:54:13.900.csv.
    So, I wanted to use foreach loop to find out the oldest file amongst that(through script task) and need to transform that file in Oracle Destination. After that, I want to archive that file and need to continue this action uptil the most recent file gets
    loaded in destination.
    So, Could you guys please guide me?
    Thanks in advance

    I'd say you need two loops, one to cycle through all the files and collect their names. Then sort them based on your criterion
    Perhaps you can start by seeing http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx
    Collect the file names into a Recodset Destination, then shred it http://www.sqlis.com/sqlis/post/Shredding-a-Recordset.aspx
    perhaps you need an outer loop to iterate over each file to compare the files for dates.
    Do each piece and post here where you needed to stop.
    Arthur
    MyBlog
    Twitter

  • I rcvd an AppleService emaiDue to recent updates we are asking many of our customers to confirm their information this is nothing to worry about. We are making sure we have the correct information on file..." Is this real or a scam?

    I rcvd an AppleService email
    Due to recent updates we are asking many of our customers to confirm their information this is nothing to worry about. We are making sure we have the correct information on file and that you are the rightful account holder. Failure to comply with this may result in your account being suspended.
    Is this real or a scam?

    If you changed your Apple ID, you will not  be able to update any of the content that you used in the past. The worse case scenario here would have been to change the password. Really all you needed to do was go on the Apple site and change the password, unless you provided them with information. This will make it difficult for you to deal with turning off Find My iPhone and other Apple ID related steps. All you really needed to do was delete the email.

  • Require to Find the Country Based on SALES ARea.

    Hi,
    Any one can tell me the TABLE Relations/FM to get the Country based on the Sales Organisation?
    Thanks,
    Sekhar.J

    Hi .,
    Please get the company code from TVKO Based on Sales Organization,
    After that Go to T001 table and get the country based on Company Code,
    Regards
    Jana

  • I have a "Contact" organization issue I need help with.  I organize multiple customers under their account affiliation. I place the people with their contact info under each account name by their dept/role in the notes section of their account. I am l

    I have a "Contact" organization issue I need help with.  I organize multiple customers under their account affiliation. I place the people with their contact info under each account name by their dept/role in the notes section of their account. I am looking to be able to directly dial / email from this info in yet notes section located within a contact. On Blackberry, the notes area entered in a contact can connect directly but on the iPhone those numbers/emails are inactive. I am trying to avoid having to create each of these individuals as a separate contact and keep them under their account affiliation. It is easier to find them.  This does not seem like that complicated of a request and hoping someone can tell me how or share an app that will enable the "notes" within a contact be "active". Hope this makes sense.

    I seem to recall that this question has been asked before and I'm pretty sure that the answer is that you can't do what you want to do with the native contact app. However, there are lots of contact apps out there that pull from the built app's data but have other features. Perhaps one of them would meet your needs.

  • Sort out the invoices based on Sales Org, Dist Channel, Div while printing

    Hi all,
    My User required to run the program - RV60SBAT
    for creating batch job : FR_INVOICING.
    When we check the steps in the job FR_INVOICING we could find 10 steps with different variants.
    On running this job, system will provide the printing of Invoices for different Sales Organizations, Distribution Channel, Division and Invoice Numbers. However this out put is not generating in a sorted manner currently.
    User requirement is to sort out the invoices based on Sales Organizations, Distribution Channel, Division and Invoice Numbers.
    Kindly look into this and help me  how to address/approach this problem.
    Thanking you in advance
    Best Regards
    TRS GUPTA

    Assign fields KOMKBV3-VKORG KOMKBV3-VTWEG KOMKBV3-SPART to output type config sort order fields sort field1, sort field2, sort field3 respectively.
    Use user exit include RSNASTZZ and add the following code
    under when '50'.
      insert NAST-SORT1 NAST-SORT2 NAST-SORT3 NAST-OBJKY  INTO HEADER.
    Change RSNAST00 job step variant to incluce 50 in the sort field.
    Regards
    Sridhar
    Message was edited by: Sridhar K

  • Differance between the Cost based costing and Account based costing

    Hi,
    What is the Differance between the Cost Based Costing and Account Based Costing ?

    You can check sap note 69384
    COSTING-BASED PROFITABILITY ACCOUNT-BASED PROFITABILITY
    ANALYSIS ANALYSIS
    OBJECTIVE
    o profitability and sales accounting
    o evaluation of market segments (for example,
    customers, product groups, sales areas) and corporate
    units (for example, division, sales organization) with
    regard to their profit or contribution margins
    o calculation of profits procedures
    - cost-of-sales accounting
    - interim and reconciled sales report
    - periodic and transaction-based allocation
    - Profitability Analysis on the basis of full and
    direct costs
    o posted and costing-based values o account-based values
    o can be reconciled with FI for o always reconciled with
    account groups (revenues, sales FI on account level
    deductions, costs of goods
    Note 69384 - Information: Account-based Profitability Analysis
    manufactured, and so on)
    DATA STRUCTURES
    o definition of operating concerns o definition of operating
    with fixed characteristics and concerns with fixed and useruser-
    defined characteristics defined characteristics
    and value fields
    o cumulative storage by posting o cumulative storage by
    periods and weeks posting periods
    o storage in operating concern o controlling area currency,
    currency (as of Release 4.0 also company code currency
    optional in company code currency and transaction currency
    if req.)
    o user-definable summarization levels
    FUNCTIONS
    o transfer of profit relevant o transfer of profit-relevant
    business transactions from SD, FI activities from SD, FI, CO, MM
    CO, MM (revenues, sales deductions (revenues, sales deductions and
    and costs organized by value fields) costs organized by accounts)
    o Derivation of characteristics from master
    data or using derivation rules
    o Realignments also for data that is already
    posted
    o Valuation
    (Costs of goods manufactured, imputed
    costs and sales deductions)
    o sales and profit planning o profit planning
    - flexible layout - flexible layout
    - periodic distribution - periodic distribution
    - valuation, revaluation - forecast procedure
    - forecast procedure - top-down distribution
    - top-down distribution - simulation
    - simulation
    o profit analysis by means of 'interactive drill-down
    reporting'
    - Report Painter
    - object list/ranking lists, database schema
    - drill-down
    - key figure systems
    - flexible hierarchies
    - navigation between reports
    - exception reporting
    - ABC analyses
    - Exporting (Excel, Winword, Mail)

  • Payment terms for the customers and vendors

    Dear FI Experts
    Generally vendoru2019s payment terms purpose we will use document date and customers payment term purpose we will use posting date.
    My query is what the logic behind this was, kindly explain this logic.
    Regards,
    venkataswamy

    Hi,
    For vendor, we store the invoice date of the vendor in the document date field and vendor generally specifies the payment term in their invoices based on their invoice date.
    So we generally use the decoument date (vendor invoice date) for payment term calculation.
    Whereas in case of customer, we issue the invoice and generally the invoice date is the posting date of our system, so we use the posting date for calculating the payment term. The customer have to pay according to out payment term to get the discounts etc.
    I hope it is clear.
    Regards,
    Gaurav

  • How to pick the data based on customer number

    Hi All ,
    greets....
    i have a requirement to select  the data based on customer number and then do furthur processing .
    example:
    this is some 10 dcouments in customer nr:v1000
    and 20 documents in customer v2000 in a internal table how to select that,
    thank s in advance.

    thier is an internal table which is having some 1000records.
    and their is 6 customers.
    in which i should pick the data based on customer number.
    how to write a code for that?

  • Allow users to create reports based on their own selection of fields

    Is there a way to allow users to create reports based on their own selection of fields?
    And if there is a way, then how?
    In access we retrieve all demographic info on one screen and on another screen user can be able to choose specific fields from a list box to import data into file.

    Hi,
    This can be handled in various ways - but the principles are the same.
    You need to apply conditional displays to all of the columns that your user can select and base the display of a column on the value of a field on the page.
    You can have a series of Yes/No options - one for each field and base the display on the corresponding field being Yes. Or you can use checkboxes.
    However, if you wish to use a multiselect list (which is probably easier as you can dynamically generate the list of field names), you will need to have hidden fields that will store either Y/N or 1/0 (I use ones/zeros) and have the conditional displays watch these fields instead. Populating these hidden fields is a bit more tricky than just having fields on the page that the user can control, but is doable:
    1 - Create one hidden field for each field in the report that you want to show/hide. Put these fields in the same region as the select list in a region above the report
    2 - Set conditional display values to "Value of Item in Expression 1 = Expression 2" and use the appropriate hidden field for Expression 1 and in Expression 2 enter in 1
    3 - Create a page process that runs on submit, and create PL/SQL code something like:
    DECLARE
    lFields HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    vField VARCHAR2(1000);
    BEGIN
    :P31_SHOW_EMPNO := 0;
    :P31_SHOW_ENAME := 0;
    :P31_SHOW_JOB := 0;
    :P31_SHOW_MGR := 0;
    :P31_SHOW_HIREDATE := 0;
    :P31_SHOW_SAL := 0;
    :P31_SHOW_COMM := 0;
    :P31_SHOW_DEPTNO := 0;
    lFields := HTMLDB_UTIL.STRING_TO_TABLE(:P31_FIELDS);
    FOR i IN lFields.FIRST..lFields.LAST LOOP
    vField := lFields(i);
    IF vField = 'EMPNO' THEN
    :P31_SHOW_EMPNO := 1;
    ELSIF vField = 'ENAME' THEN
    :P31_SHOW_ENAME := 1;
    ELSIF vField = 'JOB' THEN
    :P31_SHOW_JOB := 1;
    ELSIF vField = 'MGR' THEN
    :P31_SHOW_MGR := 1;
    ELSIF vField = 'HIREDATE' THEN
    :P31_SHOW_HIREDATE := 1;
    ELSIF vField = 'SAL' THEN
    :P31_SHOW_SAL := 1;
    ELSIF vField = 'COMM' THEN
    :P31_SHOW_COMM := 1;
    ELSIF vField = 'DEPTNO' THEN
    :P31_SHOW_DEPTNO := 1;
    END IF;
    END LOOP;
    END;
    4 - Finally, add a button that generates the report - this just needs to submit the page and branch back to the same page
    I've used the standard EMP table for this example and my hidden fields are P31_SHOW_fieldname. The code resets the hidden fields to 0, checks if the user has selected the field from the list (P31_FIELDS) and changes the hidden fields value to 1 for all those selected. When the page is re-rendered, the report hides the columns where the hidden field value is 0 and displays those where it is 1. The export option will then only export those fields that are displayed.
    You can see an example of this here:
    http://htmldb.oracle.com/pls/otn/f?p=33642:31
    Regards
    Andy

  • How can I restrict the user to run the report based the access level at access table backend?

    I have a report which pulls data of servicetickets. Now I have to work on security part which should retrict the people to look for specif sales team tickets based on their access at backend. They should access the tickets of the sales teams which they have
    access. Can anyone help on this.
    Thanks,
    Swapna

    Getting error as
    Msg 536, Level 16, State 2, Line 7
    Invalid length parameter passed to the RIGHT function.
    and
    (Tut.AdloginID
    = RIGHT(@ReportUser,
    PATINDEX('%\%',
    REVERSE(@ReportUser))
    -1)
    OR
    EXISTS (
    SELECT *
    FROM dbo.TicketingUserTeams Tut
    WHERE Tut.Team
    = 'Ticketing Admin'
    AND Tut.AdloginID
    = RIGHT(@ReportUser,
    PATINDEX('%\%',
    REVERSE(@ReportUser))
    -1)
    Swapna

Maybe you are looking for

  • BO Edge 3.0 / 3.1 : uninstalling BO platform

    Hello, We have an Windows/Tomcat installation of BO Edge XI 3.0 (BO platform 3.0 and Data Services 3.0). We only wish to upgrade the BO platform to XI 3.1, not Data Services. I find in Relases notes that we must uninstall BO Edge XI 3.0 before instal

  • Help to eject or unmount disk upon shutdown

    Hello all, Please take pity on a newbie and answer what I hope is a really simple script question. This is my first attempt at Apple Script. I have searched for a script that will eject (unmount) a disk upon shutdown, but haven't found anything on th

  • Unable to move photos between albums in search mode

    I am unable to move picture between albums when I have done a search for a title etc. eg. search for 'Leeds' brings up 20 pics one album and 15 in another, but the two albums are several years apart (possibly 100's of rolls!). Why am I unable to then

  • WRT160N wireless routher, wireless signal not strong within apartment

    I have had the wrt54g for a while now and just recently it stopped working and I had no choice but to get the wrt160n and with lots of difficulty was able to get that going. The wireless signal, on a wpa2personal is fine when I am close to the box wh

  • Script help - Restarting a service Daily

    Hello All, I would like some advice/help on creating a script which would restart a specfic service daily on a server- This may be required to run at a certain time - but finding it difficult getting started initially. I am guesing I would need to cr