Top 10 customers

Hi,
I have 7 branches and n number of customers in each branch , how can i get only top 10 customers net sale value from the tables into the report.
thank you
Edited by: 960991 on Oct 9, 2012 6:30 AM
Edited by: 960991 on Oct 9, 2012 6:56 AM

hi,
take a look at the below select statement,
SELECT r, branch_code, customer_name, net_sale
FROM (SELECT ROWNUM r, branch_code, customer_name, net_sale
FROM (SELECT branch_code, custome_name, net_sale
FROM branch_master
ORDER BY net_sale DESC))
WHERE r <= 10
hope it could help you.
Hi,
no dought this is correct query in sqlplus , but i need a query in reports 6i.
looking for help ...

Similar Messages

  • Top 10% customers in bex

    Hi experts,
    I have been working  on a condition to get top 10% customers by sales. I am getting not the top 10% customers but customers which account for the 10% of the sales. I hope I am making sense.
    The rows contain bill-to Party and column has sales amount. I have used All characteristics in Drilldown independent in Conditions. Tried single characteristic setting but didnt make a difference.

    Dear Bhanu
    Can you please look in to
    Reg: Exception  - Price Trend Report
    I am working long time, but could not solve.
    I will assign you points.
    Regards
    Raju Saravanan

  • Top 5 customers and others

    how to implement a chart that shows the top 5 customers in a pie chart and then have a special slice that accumulates all the remaining customers.

    I tried this one also.
    But i need to do it in interactive mode via using sql.
    Please help me if you know about this..
    https://blogs.oracle.com/xmlpublisher/entry/charts_with_top_5_rest_of_worl_1

  • Profit and loss of the sales of my top 100 customers

    Hi,
    I would like to have a query in SAP BW which delivers me the following information:
    the profit and loss of the sales of my top 100 customers (customers with the highest sales per month). So basically I would like to compare the sales from these customers of the current month to the previous month.
    Thank you for any help!

    hi,
    u can compare values by creating restricted 2 RKFs.
    RKF1  : selling price is restricted by 0CALMONTH.create a variable on 0CALMONTH(single value,mandatory,ready for input...etc).
    right click on structure--->new selection...drag and drop selling value and 0CALMONTH.
    RKF2 :selling price is restricted by 0CALMONTH.use the same variable which u created and set Offset value '-1'.
    so it will give u sales price for previous month(if u ente current month in selection screen)...
    take customer in rows and these RKFs in columns(in  structure).
    later use condition to display top 100 customers..
    hope this helps..
    pl dont foget to assign points to helpful answers....thats the way to say thanks here.
    regards

  • Report with Top 5 Customers per year for last 5 years (total  25 records)

    Hello
    Can anyone help?
    How to display top 5 customers per year for last 5 years in a report
    E.g.
    Year Customer name Revenue
    2009 A1 5000
    A2 4000
    A3 3000
    A4 2000
    A5 1500
    2008 B1 3000
    B2 1200
    B3 800
    Regards,
    SMA

    Hi
    see this...
    http://oraclebi.soundvoid.net/2008/09/using-the-top-n-filter/
    And close your all threads if they answered...

  • Top 3 customers group by product in OBIEE

    Hi,
    Can somebody assist me how can I display a report in oracle Bi answers consisting of three columns called Product, Customer and Revenue. In the report, I need to display Top 3 customers group by Product. How can I use the "group by" function in oracle BI? Please assist me.
    Thanks,
    Bk.

    to get the top3 customers you have a specific function topN in oracle answers.
    if you say you want to group by only product remove the customer column from answers and SUM Revenue....i assume revenue is summed in rpd.
    -bifacts
    http://www.obinotes.com
    Edited by: bifacts on Oct 19, 2010 7:03 AM

  • Grouping of Top 10 Customers by Sales and Total Sales

    Hi Guys...
    I need to design a report where I need to include both "Top 10 Customers based on Sales" and "Total Sales for remaining customers".
    Can you guys help me with a solution.
    Thanks,
    Regards,
    G

    Hi,
    You can implement this in BEx using concept of virtual characteristics and BADI which will be a little bit complex. Its better go for WAD.
    Hope it helps.
    Regards,
    Prakash

  • ALV REPORT FOR TOP 10 CUSTOMERS

    hI,
    sap guys
    I need a help on alv. iam getting alv report. now i need to get TOP 10 customers in my report.
    My report having selling price , cost price , GP , GP% .
    Final internal table iam sorting based on Selling price. But how to Get the  Top 10 customers in my report.
    Plz help me..

    hi
    good day brother
    Before youve given the solution for top 20 cust as well as subtot.. iam getting a prob for one branch for subtot.
    Plz see the code..
    Ive dev the smart form for top 20 customers by Branch wise.. I have 17 branches in final itab.
    Every thing is fine except one branch for the Subtot.
    For getting  Subtot as well as Getting the top 20 cust.. the below code ive used.
    First branch like lt_br_out2 got 503 records
    lt_br_out3 == 213
    lt_br_out4 == 0
    lt_br_out5== 82
    lt_br_out6  ==89
    lt_br_out7 ==118
    lt_br_out8 == 45
    lt_br_out9 == 64
    lt_br_out10 == 53
    lt_br_out11 == 47
    lt_br_out12 == 56
    lt_br_out13 == 20 *************** "Problem with this internal table.
    lt_br_out14 ==170
    Problem: All Branches are getting subtotal and top 20 cust except " LT_BR_OUT13"...Before its going to cal the top 20 cust. its has only 20 records.
    Actually iam counting the top 20 cust as well as cal subtot and passing to Final Internal Table..
      SORT lt_br_out13  BY p1_a_p DESCENDING.
      CLEAR : lwa_out6.
      LOOP AT lt_br_out13 INTO lwa_out6.
        IF sy-tabix > 20.
          CLEAR: lwa_out6.
    ***adding the subtot
          lwa_out6-ort01 = lv_text.
          lwa_out6-p1_a_p = lv_brtot.
          lwa_out6-p2_a_p = lv_brtot1.
          lwa_out6-act_gross_p = lv_br.
          lwa_out6-act_gross_perc1 = lv_brperc1.
          APPEND  lwa_out6 TO lt_br_final.
          EXIT.
        ELSE.
    ***calc the sub tot
          lv_text    = 'Sub Total'.
          lv_brtot   = lv_brtot  + lwa_out6-p1_a_p.  " selling price
          lv_brtot1  = lv_brtot1 + lwa_out6-p2_a_p. " Cost price
          lv_br      = lv_brtot - lv_brtot1.
          lv_brperc   = ( lv_br / lv_brtot ) * 100.
          IF lv_brperc NE  0.
            WRITE lv_brperc TO lv_brperc1 LEFT-JUSTIFIED.
            CONCATENATE lv_brperc1 '%' INTO lv_brperc1 SEPARATED BY space.
          ENDIF.
          APPEND lwa_out6 TO lt_br_final.
        ENDIF.
      ENDLOOP.
    If i put sy-tabix >= 20, thne iam getting subtotal but iam getting only 19 records.
    Could u plz advice me.. Ive solved yesterday problem
    Regards

  • Top N Customers

    Hi Gurus,
    How find topN Customers in query
    I have written condition but its not showing the result
    Venkatesh

    Hi Venkatesh
    On what value you have written the condition. For top N customer, for example you can use the condition on sales (for top N customers).
    Please see this link http://help.sap.com/saphelp_nw70/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm
    Cheers
    Chanda

  • Display only top 10 Customers

    Hi,
    I have report showing the customer name and Shipped Quantity in the table view, i want to display only top 10 customers by Shipped Quantity,
    how i can do....?
    Thanks

    Try putting a filter on shipped quanity - is in Top - Value 10.

  • Top 10 Customers and Others

    Hi, I need to create a report to show the Top 10 Customers and then a line for Others.  Anyone know the best way to accomplish this?
    Thanks

    Hi Kenneth,
    I don’t think it’s possible directly.
    We can create a variable with replacement path which will accept Top N values from a query, and even use this variable for restriction in another query. The problem is that this usage is very limited. For example, we can use this var for restricting a char in rows or columns. The issue here that this var CANNOT BE USED IN STRUCTURES:
    http://help.sap.com/saphelp_nw04/helpdata/en/22/1e9b3c334d8c15e10000000a114084/frameset.htm
    However, for getting desired result we must use a structure:
    -     Selection - char restricted by the var
    -     Selection – char without restriction (total value)
    -     Formula – 2nd row minus 1st one
    So, the only way to achieve the goal I can think of (and I implemented it before) is using of 2 queries (Top N & total) and VBA for placing totals into the proper place after Top N rows and calculating the difference.
    Best regards,
    Eugene

  • FR financial reporting - top 10 products for top 10 customers

    We are trying to do top 10 based on two dimensions - for example customers and product. First get top 10 customers and then get top 10 products for each of those customers. We have tried the top 10 feature and also ranking, but we always get the combination - top 10 customer/product combinations ratrher than the two-step approach.
    Any ideas how to do this with Financial Reporting?
    This is an Essbase ASO application.
    Thanks much

    Hi,
    Try this:
    SELECT top 10 (T1.[Volume]), T0.[DocNum], T0.[CardCode], T0.[CardName], T1.[ItemCode], T1.[Dscription], sum(T1.[LineTotal]) FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocDate]  between [%0] and [%1] GROUP BY T0.[DocNum], T0.[CardCode], T0.[CardName], T1.[ItemCode], T1.[Dscription],T1.[Volume]
    Thanks & Regards,
    Nagarajan

  • SQL query  to sorting top 20 customers

    I want to query my Oracle 9i DB to get a listing of the TOP 20 customers based on invoiceamount. I further want to group by cutomertype and region
    Is the following query correct ?
    select distinct branch, region , partyname, customertype , qnty , invoiceamount from detailed_sales where rownum < 20
    order by invoiceamount desc
    Thanks for help ..

    you can use analytical functions
    select distinct branch, region , partyname,
    customertype , qnty , invoiceamount,rn from (select
    distinct branch, region , partyname, customertype ,
    qnty , invoiceamount ,dense_rank()over(order by
    invoiceamount desc) rn detailed_sales) where rn <= 20;Thanks for the reply .. This query is giving a error
    ORA-00923: FROM keyword not found where expected

  • How to display top 10 customers in FR

    Hi,
    I've a requirement in FR. When i select an entity from POV, it should display top 10 customers out of 100 customers in that entity (for ex. top revenue customers). Can any one pls. help on how we can achive this dynamic reporting through FR. The rank function displays the ranks, but what i would like to see is, the report should display top 20 customers only. Pls. help
    Thanks,
    PVR

    Hi,
    I am not sure what version you are, from version 9.3 I think there is a "Top" function, just highlight the row, tick the option for "Top", set the number and the column
    Failing that if you need to use rank could you not hide the column.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to write a Query on top 10 customers ?

    I have material no, price, amnt, quantity , cust id in a cube and I want only the list of top 10 customer who has paid the highest price that is the list of customers who had paid the highest price in ascending order based on the price. ...for eg c100 cust paid the highest amount Rs.1000 for a material he should be first in the list. How to do that. Please specify.

    Hi Manohar,
    Define [Conditions|http://help.sap.com/saphelp_nw04/helpdata/EN/43/b57138c1afbd20e10000009b38f889/content.htm] on Amount or Price & use.
    You can use Top N to achieve same.
    Hope it Helps
    Srini

Maybe you are looking for

  • How do I open PC iCloud apps in a different browser?

    On my computer, if I go to Start > All Programs > iCloud, I have all of the iCloud apps listed there (Mail, Contacts, Calendars, etc.) and I didn't even know these existed until I started randomly browsing through my files.  When I click on one, it t

  • Bandwidth problems with uploading photos from Mac to iCloud??

    We do not have blisteringly fast DSL & I am getting zero photos uploading from my Mac to the iCloud Photos.   Anyone else encountered this???  I am hoping I can tag on to a faster WiFi at some point to see if that helps .... Current on all OS & iOS's

  • Weakly Cash Forecasting

    Hi all, This is one of the req from my client. They are looking for Weakly Cash forecasting report which covers the last weak transactionsi.e.present(actual) and next 4 weaks cash forecast. The req is as Opening Cash/Bank balance( with different curr

  • Why does the color change?

    Hello there, I've just acquired Lightroom and imported my first pictures. They are in Camera Raw format and all the pictures that I took in B&W have been put back in colour. Do you have any explanations? I'm lost Thanks very much! Damien

  • Find the executable

    Hi, I have a slight nuisance. When I install a program from pacman, I sometimes do not know the executable. for instance in the case of gtk2-theme-switch, I had to search different forums to find out that the command is "switch2". And now I want to e