Top N function

Hello everyone,
Im working on a report where i need to run a Top 5 on the difference between 2 years ( net. value). The Top N function is great, but when i run it i get a top 5 over the months in the selected period of time. What i want is a top 5 over the total.
Ive made 2 restricted keyfigures and a calculated keyfigure, which provide me with the correst data i need. Can anyone explain the steps to me how to get a Top 5 over the "total column"
Thanks in advance,
Bryan van de Beek

Bryan,
In the Conditions dialogue box - Evaluate the Conditions displayed below for.. you need to change the setting. Have you it set to All Characteristics in the Drilldown (which is the default).
Yo need to tweak these to get your condition working for the sum of the periods. For example if you are looking at the total of periods by the characteristic Customer, then select Customer in the 'single characteristic of combination of characteristics.
Try that and see how it goes,
Regards
Gill

Similar Messages

  • Passing structures bet top level functions and DLL's

    I need to access information stored in a structure(manipulated within a DLL)
    from
    the calling function. I defined the structure in the DLL include file and
    #include "dll_include.h"
    in the source code. The dll function manulipates the contents of the structure
    as desired; however,
    I can not get access to that structure from the calling function. If anyone
    has any ideas, I would
    certainly appreciate the help
    Phil

    Hi Phil
    I think the key for this problem is simply to export that structure in the
    dll that you want to access from the other app.
    for example if you write in your dll_include.h file something like this:
    typedef struct
    ULONG ID;
    CHAR Name[32];
    } MY_APP_PERSON,*P_MY_APP_PERSON;
    typedef void (*SET_PERSON)(void);
    then in your dll source write:
    #include "dll_include.h"
    DLLEXPORT MY_APP_PERSON DllPerson;
    DLLEXPORT void SetPerson()
    DllPerson.ID = 3;
    lstrcpy(DllPerson,"Daniel A.B");
    In your other application which uses this dll write:
    #include "dll_include.h"
    static P_MY_APP_PERSON AppPerson;
    static SET_PERSON SetPerson;
    void main()
    HINSTANCE dllHandle;
    dllHandle=LoadLibrary("Persons.dll");
    if(dllHandle)
    AppPerson=(P_MY_APP_PERSON)GetProcAddress(dllHandle,"DllPerson");
    SetPerson=(SET_PERSON)GetProcAddress(dllHandle,"SetPerson");
    // Watch here with the debbuger the AppPerson structure state it
    will probably containt dirty data
    SetPerson();
    // Now watch again the value of AppPerson and see it was changed
    by calling SetPerson
    Phil Spratt wrote in message
    news:[email protected]..
    >
    > I need to access information stored in a structure(manipulated within a
    DLL)
    > from
    > the calling function. I defined the structure in the DLL include file and
    > #include "dll_include.h"
    > in the source code. The dll function manulipates the contents of the
    structure
    > as desired; however,
    > I can not get access to that structure from the calling function. If
    anyone
    > has any ideas, I would
    > certainly appreciate t
    he help
    > Phil

  • Top N function details

    Hi,
    I have two columns called Value and Metric. I need to get First Highest performer and Second Highest Perormer based on the Value column for each and every Metric. I tried Using Rank and TOPN fucntions, where I get the Top and Second performers one after the other. But I need to have them beside each other. I need to get the report like this:
    Metric Top PerformerValue Top Performer Second Performer Value Second Highest Perofrmer
    Call Adherence 76% James 75% Tom
    Call Monitoring 55% Smith 52% David
    Can some one suggest me how to get this look for the report in OBIEE 10.1.3.4
    Thanks,
    Krishna.

    Bryan,
    In the Conditions dialogue box - Evaluate the Conditions displayed below for.. you need to change the setting. Have you it set to All Characteristics in the Drilldown (which is the default).
    Yo need to tweak these to get your condition working for the sum of the periods. For example if you are looking at the total of periods by the characteristic Customer, then select Customer in the 'single characteristic of combination of characteristics.
    Try that and see how it goes,
    Regards
    Gill

  • I enjoy Top Site function, but is it possible to label one for easy ID ?

    Top Site display too small to identify contents correctly.
    I would like to label them for ease of use.

    When you set the visible property like you did, setting the label has no effect because you wouldn't see the button anyway.
    This will change the label according to the number of items in you arrayCollection (I assume favoriteItems is an arrayCollection)
    <mx:Button     enabled="{_favoritesController.favoriteItems.length > 0}"
         label="{_favoritesController.favoriteItems.length > 0 ? 'Remove Favorites' : 'Favorites'}"/>
    d

  • My phone ran out of battery last night and will not turn on through charging. Top button has also stopped functioning. Help?

    My iPhone ran out of battery last night, and now it won't turn on.
    The top button doesn't work anyway, but I've tried charging to wake it up using several chargers and via a laptop and plug socket.
    The phone's about a year old, and has otherwise been working fine. I've no idea why it would just stop working - no water spilt on it or anything like that.
    Can anyone suggest anything?

    Clean iPhone charging port with toothbrush and small amount of Isopropyl Alcohol. See if better. Try another good USB cable. This iPhone potentially has many problems. Without the top button function it is very difficult to deal with any of the other problems. The iPhone may also have faulty battery, faulty charging port, or worse faulty screen, or even worse faulty logic board. Apple will handle this with perfect Replacement iPhone 4 exactly like yours for $149.

  • My Top Sites Button Has Disappeared - How do you get it back?

    I have safari for windows xp and have noticed that my top sites button on the top left has disappeared. I want to get it back and have tried -general settings -customize toolbar, and i've tried -edit -preferences -toolbar, but neither have an option of re-adding the top sites button.
    Does anyone know what has happened - have apple deleted the top sites function?
    If anyone has any ideas it'd be a great help. thanks.

    The button is still there with 5.0.2. (At least, still supposed to be there.)
    Are your video drivers or display adaptor drivers up to date? (Plausibly, the higher version of Safari may have outstripped the capabilities of your existing drivers. If so, an update of the drivers may be of some assistance.)

  • "Top Sites" capability GONE after upgrading to Safari 4.0.3

    In a nutshell:
    I've been running Safari 4.X June 09 with Top Sites becoming a key tool in everyday use, and a cool one at that. Top Sites worked on 15 August, did the minor rev upgrade from 4.02 to 4.03 on 16 August, and the Top Sites function is GONE on the 17th.
    The rest of the story:
    Upgraded to Safari 4.0.3 last night and to my dismay the TOP SITES function is now just GONE. No explanation, no warning, just "poof."
    Read through the discussions, read through the support pages, took the immediate advice to reinstall...then tried the instructions for deleting select files under under com.apple.safari...et cetera...No Joy, 2 hours lost.
    Read the discussions MORE CLOSELY and found this: http://support.apple.com/kb/HT3410
    "Safari 4: Top Sites, Cover Flow features require compatible graphics card"
    So Let me get this straight...I accept a minor rev upgrade, from 4.0.2 to 4.0.3, and LOSE functionality? Really, guys?
    I lose the functionality, apparently, because the Intel GMA 950 is apparently not Quartz Extreme compatible.
    Ok, then, riddle me this Batman: the support article above is dated June 2009. I've been running Safari 4.X since then with top sites working quite well under 4.0.2. My early adopted 2006 Mac Mini hasn't changed since it's manufacture.
    What's going on? What am I missing? Anyone else seeing this?
    G
    P.S. From the Logs
    Chipset Model: GMA 950
    2009-06-11 16:59:26 -0600: Installed "Safari" (4.0)
    2009-07-17 20:46:41 -0600: Installed "Safari" (4.0.2)
    2009-08-16 22:44:21 -0600: Installed "Safari" (4.0.3)

    Mikate,
    Does your iMac have an Intel GMA 950 chipset? If not, then your comparison is not valid. If it does have the same chipset as my Mac Mini, then you may have eliminated a possibile cause. (same os + same chipset=reasonable assumption)
    The central issues is still the loss of major functionality under a minor rev change.
    What changed? The requirements for Top Sites to work? Then why did it work for me under 4.0.2? According to the article, Inel GMA 950 is not specifically named as supportable and therefore the function should not have worked at ALL when safari 4.0 was installed. NO Mac specific drivers from Intel at Intel's web site. Have NOT seen any under the apple support pages, but I could be missing them.
    G

  • New functionality in sap Bi.

    Dear Mates,
    I have this requirement that I want to store the currency rates on hourly basis in SAP Business Intelligence i.e. get data stored in cube daily.
    Can anybody help me out as to how build a mechanism to link the BW to external web to get the latest currency rate on hourly basis.
    Ultimately this stored data of currencies will be used for BW report.
    Is this possible in BW?
    It is something new requirement I've got in BW and sounds interesting.
    Your help will be appreciated.
    Thanks in Advance,
    Kaval Solanki.

    Hi,
    Approach will be like creating a Data source on top of Function module.
    The function module should retrieve data from any external webservice and feed to data source.
    Then the datasource and further DTPs can be scheduled every 1 hour.
    -Sriram

  • Safari "Top Sites" and Belkin wireless router

    Have been experiencing a problem with Safari / Belkin router for the past 3 days. I have noticed it occurs most often when using the "top sites" function of Safari. It seems that whenever I use top sites it causes a disconnect between my macbook and the belkin wireless router. My computer becomes disconnected from the router, even though the router continues to function as normal.
    In tandem, a parallel problem which may be related:
    In past three days I have been receiving constant floating window prompt to enter my Gmail info to "update RSS feed... password will be sent in clear text... etc." while using Safari. I have read other threads on this issue and some people attribute it to the top sites function, since updating Safari to the latest version.
    Anyone else having the same issue with their wireless router when using the top sites function of Safari? To reiterate - the connection seems only to be lost when clicking on a top site in a new tab or window.
    Thanks for all replies!

    HI,
    Try Safari Maintenance and see if that makes a difference.
    Also, I just saw this post... might help you. http://discussions.apple.com/thread.jspa?threadID=2182985&tstart=0
    Carolyn

  • IP - Problem in FOX formula: how to use 0FISCPER3 counter of a DO function?

    Hi,
    IP 7.0:
    I'd like to define a top-down function which distributes the values in 0FISCPER3 = # to the periods selected by the user with two variables (period from and period to variable).
    -> Problem I experience is the conflict in different data types. How can I use the value of the selection variable for 0FISCPER3 in a counter of a DO function. Here is the code:
    formula example:
    change the value of the keyfigure ZQUANTITY of PRODUCT11
    to the value of ZQUANTITY of PRODUCT09 times 1.1
    assumption for fields to be changed: ZPRODUCT
                     ==> operand: {name of keyfigure, ZPRODUCT}
      DATA L_FACTOR TYPE F.
      L_FACTOR = 1.1.
      { ZQUANTITY, PRODUCT11 } = { ZQUANTITY, PRODUCT09 } * L_FACTOR.
    DATA LV_COUNTER TYPE 0FISCPER3.
    DATA LV_PERIODS TYPE  0FISCPER3.
    DATA LV_PERIOD_FROM TYPE 0FISCPER3.
    DATA LV_PERIOD_TO TYPE 0FISCPER3.
    *Transfer variable period from and period to into local variable and count interval of periods.
    LV_PERIOD_FROM = VARV(Z_PERIOD_FR).
    LV_PERIOD_TO = VARV(Z_PERIOD_TO).
    LV_PERIODS =  LV_PERIOD_TO - LV_PERIOD_FROM.
    Do top-down distribution for all adjustment values on period = #
    LV_COUNTER = (LV_PERIOD_FROM).
    DO.
    <b> { 0G_QVVGRM, LV_COUNTER} = { 0G_QVVGRM, # } / LV_PERIODS.</b>
    <b> LV_COUNTER =  LV_COUNTER + 1.</b>
        IF LV_COUNTER >= LV_PERIOD_TO.
            EXIT.
      ENDIF.
    ENDDO.
    -> the lines indicated in bold give errors. If I change the datatype of LV_COUNTER to I, how to start the do function the value of the first period selected by the user?
    function TMLV is also not supported apperantly in IP.
    Help would be very appreciated
    regards
    D

    Small extension:
    function TMVL does work, but I still have the problem to use the difference in periods solely for calculation in a key figure. I cannot switch from type 0FISCPER into F or I. In SAP R/3 ABAP this is no problem but apperantly in FOX it is???
    Hereby revised coding:
    DATA LV_COUNTER TYPE I.
    DATA LV_PERIODS TYPE  0FISCPER3.
    DATA LV_PERIOD_FROM TYPE 0FISCPER3.
    DATA LV_PERIOD_TO TYPE 0FISCPER3.
    DATA LV_FISCPER3 TYPE 0FISCPER3.
    *TRANSFER VARIABLE PERIOD FROM AND PERIOD TO INTO LOCAL VARIABLE AND COUNT INTERVAL OF PERIODS.
    LV_PERIOD_FROM = VARV(Z_PERIOD_FR).
    LV_PERIOD_TO = VARV(Z_PERIOD_TO).
    LV_PERIODS =  LV_PERIOD_TO - LV_PERIOD_FROM.
    DO TOP-DOWN DISTRIBUTION FOR ALL ADJUSTMENT VALUES ON PERIOD = #
    LV_COUNTER = 0.
    DO.
      LV_FISCPER3 = TMVL(LV_PERIOD_FROM,LV_COUNTER).
    <b>{ 0G_QVVGRM, LV_FISCPER3} = { 0G_QVVGRM,#} / LV_PERIODS.</b>
    { 0G_QVVGRM,#} = { 0G_QVVGRM,#} - { 0G_QVVGRM, LV_FISCPER3}.
    IF { 0G_QVVGRM, #} < 0.01.
    EXIT.
    ENDIF.
    LV_COUNTER = LV_COUNTER + 1.
    ENDDO.
    ERROR: conflict between operation type F and 0FISCPER3

  • I want to add bottom to add flip functionality in ios 5.0 . How to do add it?

    Please help me in adding bottom to top flip functionality...

    Sorry...no idea whatsoever what "bottom to top flip functionality" is!

  • Level of Competency in ABAP for Functional consultants.

    Hi ,
    i just wanted to have inputs based on your experience , that what level of competence should a functional consultant should have in ABAP .
    Should it be knowing the database , debugging etc. or should it be a step forward starting coding in ABAP .
    As i was going through the certification details of Financials , in Application professional certification ABAP programming was a part of the requirments for the same .
    I being a part of the FICO / FICA / FM modules , just curious to know what the experts have to say on this .
    Dear Mentors can you please throw some light on the same based on your experience .
    Regards ,
    Dewang T

    Matt has already said much of what I was about to say, but to add a couple of other perspectives:
    There's a bit of a paradox: A top notch functional consultant can get by without ABAP if s/he knows exactly what config is where and which fields influence what. They're very rare, but I've met people like that. (More prevalent in HR which is highly config-driven anyway and with a convoluted technical side). Problem is, to get to a high level of competency requires either a lot of talent, many years experience, or ... you guessed it... ability to read and debug ABAP.
    The other angle to this is what level of functional consultant? There are no clear boundaries - on the technical side you get the 'techno-functional' people as they are known, all the way towards a Business Analyst who in some cases doesn't even have an SAP logon.
    In some ways it depends on the way the company/project is managed and available skills:
    If the company gets their ABAP resources as cheap as possible, or offshore, then your functionals definitely need a good level of ABAP skills. If they go for a 'less is more' approach and hires a few top notch developers, then not-so-technical functional people are fine. I've worked on both scenarios and my experience is that the second can produce better results. Why? A really good developer has a sixth sense to know ahead of time which requirements will change and build appropriately configurable solutions. In the first scenario however, basic ABAP skills of a functional consultant do not cover what is good technical application architecture, and likewise an entry-level programmer won't be experienced enough to really follow best practice and avoid all the pitfalls.
    On the other hand, the combination of functionals with little ABAP knowledge and budget programmers is something that can get very expensive fixing the results.
    If you are thinking about contracting/consulting and working at several clients, then having skills "on the other side" is what gives you the edge, irrespective of whether you are a functional consultant or an ABAP developer.

  • Where is the snap back to page function in Safari?

    Is the the "Snap back" to page function gone? I cannot find it anywhere on Safari 4

    Thanks. I can see that it is also useful in the search box but Apple should not have taken it out of the address bar. I use that function a great deal. The "Top Sites" function is nice but it doesn't replace the snap back function in the address bar.
    Sometimes I think the programmers at Apple do not actually use the applications they work on.
    Is there a request page I can ask Apple to put snap back back in?

  • Randomly be able to sort and give top n on any of the field

    hi abapers
    i mean to say that when the final output comes i can randomly be able to sort and give top n on any of the field and then get the output on the same screen. as we do in mc.5
    i m trying to find the solution for this for last 2 months
    can u provide me the code how to do this as i m not able to understand mc.5 code for top n function.
    itab having mat rate qty
    then when the output comes i want to get n top items on any of the field ( material,rate,qty) and number n can be any no of records.

    Hi deepika,
    well, it depends. let's say you want a popup to ask for the field of an internal table with a known struture, ie, it's structure is defined in the data dictionary. You can do something like this to select the sort field:
      DATA: it_t000 TYPE TABLE OF t000 WITH HEADER LINE.
      DATA: it_fields TYPE TABLE OF dd03l-fieldname WITH HEADER LINE.
      DATA: it_spopli TYPE TABLE OF spopli WITH HEADER LINE.
      DATA: l_answer LIKE sy-tabix.
      SELECT * FROM t000 INTO TABLE it_t000.
      SELECT fieldname INTO TABLE it_fields FROM dd03l WHERE tabname = 'T000'.
      LOOP AT it_fields.
    *maybe it would be more useful the description instead of the fieldname,
    * this is just an example
        it_spopli-varoption = it_fields.
        APPEND it_spopli.
      ENDLOOP.
      CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
        EXPORTING
          textline1          = ''
          titel              = 'Get field order'
        IMPORTING
          answer             = l_answer
        TABLES
          t_spopli           = it_spopli
        EXCEPTIONS
          not_enough_answers = 1
          too_much_answers   = 2
          too_much_marks     = 3
          OTHERS             = 4.
      READ TABLE it_spopli INDEX l_answer.
      DATA: otab  TYPE abap_sortorder_tab,
            oline TYPE abap_sortorder.
      oline-name = it_spopli-varoption.
      APPEND oline TO otab.
      SORT it_t000 BY (otab).
      LOOP AT it_t000.
        WRITE: / it_t000.
      ENDLOOP.
    whereas you can use this to query and select the top n lines:
      DATA: it_t000 TYPE TABLE OF t000 WITH HEADER LINE.
      DATA: it_t000_1 TYPE TABLE OF t000 WITH HEADER LINE.
      DATA: it_fields TYPE TABLE OF dd03l-fieldname WITH HEADER LINE.
      DATA: it_spopli TYPE TABLE OF spopli WITH HEADER LINE.
      DATA: l_answer LIKE sy-tabix.
      SELECT * FROM t000 INTO TABLE it_t000.
      SELECT fieldname INTO TABLE it_fields FROM dd03l WHERE tabname = 'T000'.
      LOOP AT it_fields.
        it_spopli-varoption = it_fields.
        APPEND it_spopli.
      ENDLOOP.
      CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
        EXPORTING
          textline1          = ''
          titel              = 'Get field order'
        IMPORTING
          answer             = l_answer
        TABLES
          t_spopli           = it_spopli
        EXCEPTIONS
          not_enough_answers = 1
          too_much_answers   = 2
          too_much_marks     = 3
          OTHERS             = 4.
      READ TABLE it_spopli INDEX l_answer.
      DATA: otab  TYPE abap_sortorder_tab,
            oline TYPE abap_sortorder.
      oline-name = it_spopli-varoption.
      APPEND oline TO otab.
      DATA: l_value TYPE spop-varvalue1,
            l_top TYPE sy-tabix.
      CALL FUNCTION 'POPUP_TO_GET_ONE_VALUE'
        EXPORTING
          textline1      = 'Number of top lines'
          titel          = 'top lines'
          valuelength    = 2
        IMPORTING
          value1         = l_value
        EXCEPTIONS
          titel_too_long = 1
          OTHERS         = 2.
      l_top = l_value.
      SORT it_t000 BY (otab).
      DO l_top TIMES.
        READ TABLE it_t000 INDEX sy-index.
        APPEND it_t000 TO it_t000_1.
      ENDDO.
      LOOP AT it_t000_1.
        WRITE: / it_t000_1.
      ENDLOOP.
    there is a significant number of ways to achieve this, it depends on what type of list you have (ALV, table control, write list), the type of table line (data dictionary, internal table type) and the type of interaction you want with the user.
    The code above might be the most simple example.
    regards,
    Edgar

  • Activation of function-pool

    while activating include.....top of function group m getting report program statement missing or program type is include?plz help

    Hi
    Go to SE80 and select Function Group and ente ztxb end press enter.
    you can see the Function group and to make sure you are in the main Program double click again.
    Now click right mouse button and select activate
    Hope you can overcome the problem.
    Regards
    Ramchander Rao.K

Maybe you are looking for

  • How to enable SSL optimization only for a single remote WAE and specific website?

    Hi guys. I have to enable SSL optimization for a specifc HTTPS website only and for a specific remote site only (branch office). The scenario is as follows: Multiple sites connected via a MPLS cloud. Each site has its own WAE device (module or applia

  • Performance when having many concurrent users

    Hi all, I am wondering about whether it would be possible to use Web Dynpro for ABAP in web applications that have a lot of concurrent users (like a thousend or more). Could this cause a performance or memory problem, because of the stateful nature o

  • SCS-2U01 Web Page Issue

    What do I need to do to access the SCS-2U01 device web page?  I would like to check settings but the page doesn't load and times out in Firefox and IE.  Also, no ping response from the unit. The mac address on the bottom matches the address found in

  • Is there really still only one range key for partitions?

    Hi All, I had need to look up the manual on partitioning functions.  The manual reads like there is still only one field available to define as the partition key with left and right for placement. Am I reading this right? That MSFT have not yet enabl

  • HR requirement regarding Infotypes

    Hello Gentleman, As iam new to HR module, I have requirement in HR which is very urgent. I got a requirement for customizing the standard infotype 0185 for which i had done the customization for the name of the holder by going into PM01 -> infotype 0