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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • Top N and Other

    I grouped a report and selected top 10 and other.  Instead of showing the word other for the other category (despite choosing the radio button to do so) it shows the last value in the group.  I think its' because I am grouping on a calculated field:
    IF (IsNull({Command.AcctPriKey}) or length(ToText({Command.AcctPriKey}))<1)
    then {Command.custname}
    else {NAcct_.Nacct}
    also
    When I group on this, it doesn't actually group on this value, it groups on the combined fields in this formula.  So the result of this field could be Kobe because NAcct_.Nacct = Kobe or because Command.custname = Kobe.  Crystal WILL differentiate and will put them in different groups.  How do I prevent that?
    also
    iif(IsNull({Command.AcctPriKey}) or length(ToText({Command.AcctPriKey}))<1), {Command.custname}, {NAcct_.Nacct})
    Doesn't work.  I don' t know why.
    Finally isn't there something like coalesce in crystal.  It's such a handy function, they should really consider supporting it so we don't have any of these issues.

    Hi, 
    For your first question, Other should show up if you have more than 10 groups generated.  Looking at the Group Tree, how many groups show up? 
    What happens if you did a Top5 instead of 10?  Does Other show in the Group Tree? 
    For your second question, Crystal will group on unique values regardless if the group is on a field or formula.  I have a sneaking suspicion there is either a leading or trailing space in the name.  Use the Trim function to remove the white spaces like: 
    IF (IsNull({Command.AcctPriKey}) or length(ToText({Command.AcctPriKey}))<1)
    then Trim ({Command.custname})
    else Trim ({NAcct_.Nacct});
    For your third question, throw the iif format out.  That was introduced because of dBase years ago and most people I know hate using it.  Go with the traditional.  Easier to read and figure out. 
    Good luck,
    Brian

  • Top 5 and Other

    Does anyone know how to show the top 5 totals and group everything else into an "Other" category?
    select store_name, sum(total_sales)
    from sales_fact;
    Store A 600
    Store B 500
    Store C 400
    Store D 300
    Store E 200
    OTHER 100
    I am trying to avoid having to run two separate reports in discoverer.
    Thanks in advance.

    I created a little test table with some data:select * from sales_fact order by store_name;
    STORE_NAME TOTAL_SALES
    Store A            600
    Store A            600
    Store B            100
    Store B            100
    Store C            300
    Store Q             30
    Store Q             30
    Store Q             30
    Store R             10
    Store S             10
    Store W             10
    Store X             60
    Store X             60
    Store Y             10
    Store Z              5And then created the following selectselect store_name, sum(S) SUM2 from
      (select
        decode(sign(R-6),-1,STORE_NAME, 'OTHER' ) STORE_NAME,
        decode(sign(R-6),-1, R,          6      ) R2,
        S
      from
        (select rownum R, V.store_name, V.S from
          (select store_name, sum(total_sales) S
           from sales_fact
           group by store_name
           order by 2 desc) V
    group by store_name,R2
    order by R2;It produces the following output:STORE_NAME       SUM2
    Store A          1200
    Store C           300
    Store B           200
    Store X           120
    Store Q            90
    OTHER              45

  • I closed the address, search and other bars, ..all I have showing up top is the tabs bar, and right clicking anywhere up top does not give me the option of reopening these other bars. Help!

    sorry, meant to say that right clicking up top..everywhere I try..does NOT give me the option of reopening the address..and other...bars.

    If you press Ctrl+n to open a new window, does it have all the menus and toolbars?
    If you restart Firefox, does the display return to normal?
    If those don't work, you could try Firefox's Safe Mode. This will let you temporarily disable add-ons to work around any problem there.
    You might want to back up Firefox before using Safe Mode. For help with that, see [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information].
    Next, try starting Firefox in Firefox
    [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Be careful not to "reset" anything permanently if you didn't back up.
    Does that restore your menus and toolbars?

  • 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

  • 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

  • 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

  • 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

    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 ...

  • Mac Pro - Oct Core? and other questions......

    Hi all, Im new to these forums - I am one half of a UK production duo named big mister music.
    We are about to bite the bullet and make a new mac pro purchase and at the same time go for an apogee ensemble. My question is two fold really, is the oct core worth paying extra for? In real world terms.... and the ensemble? Anyone used one? Worth the cash?
    Brilliant! thanks for your replies in advance and I hope to make a positive impact on these boards in the future!
    Ian

    Now after going to the leading Mastering house in the U.K.
    they Master all the Big Names, i don't even want to say,
    however here goes,
    they gave me two of the Main dealers in the U.K. that supply not most but All the store's in the U.K. with Apogee and the other Apogee & RME.
    So after calling Apogee in the U.K. main supplier before on price's of Ensemble and Rosetta 800, without a doubt 800 came out on top,
    Ensemble not even close in their line of Converters,
    I try to ask for Discount has a Student, as i though it was a Apple Product,
    they weren't having it,
    has it was said its not a Apple product, but made for Apple Logic,
    and integrate well with Logic,
    therefore their goes my discount out the window!
    Now after i got the numbers for the main dealers, before i ask for discount
    they gave me Discount when they say who gave the number,
    meaning its not who you know but who knows you.
    Ensemble was a few £ short of 1400.00 new price £1050.00
    Rosetta price drop by about £200 though.
    Then again there was a Blind test of Apogee Rosetta 800 v RME Fireface800,
    with Apogee customers, and guess what?
    About 90% of them pick RME 800,
    do a google search and you'll find it,
    In saying this Fireface 800 and Top-line Apogee products is Marginally different,
    So it all boils down to the type of sound you want,
    One ads Color, while the other is transparent,
    Apogee Ads RME Transparent
    Fr.BlayZay.

Maybe you are looking for