Strange problem wth 0HDCNT_LAST (No. of Employees) Key Figure

Hi gurus,
I hava a strange problem with 0HDCNT_LAST key figure.
The KF has Sum aggregation with Last Value Exception Aggregation for 0CALDAY - standard settings from Bi Content.
I use this KF in two InfoCubes.
It behaves in a very strange way in queries based on one of them:
- when I execute this query for a range of 0CALMONTH (i.e. 01.2009 - 12.2009), I get No. of Employees = 12 for every worker - it should be 1.
- for some months the Total result is 0, even if there are some workers hired and the results for different Organizational Units is shown well (i.e. 10, 14, 5, and Total = 0 instead of 29).
Please help... I have already reactivated the KF from BI Content, I have also reactivated the cube. What might be wrong?

Hi Dorota ,
you are using exception aggregation at  0CALDAY so it is doing sum at 0employee .try to change it to max or min and then execute query .It should work.
For more details you can visit following links :
http://wiki.sdn.sap.com/wiki/display/BI/Exceptionaggregationin+queries
http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/47/4d6d902dbb22c5e10000000a42189d/frameset.htm
Regards,
Jaya

Similar Messages

  • Problems when removing reference of a key-figure structure

    Dear All,
    While working in the query designer, when I remove the reference from a globally used key-figure structure (using the context menu of the structure) for some editing, the query output is then not the same as it use to be when the reference was not removed.
    Do we need to maintain any setting or activate/generate the KF structure once it is changed from its initial state (like in the above case I discussed).
    My Exact problem : -  I have a input ready key figure (for planning) that remains input ready when the query is executed without removing the reference from the structure, however when i remove the reference from the structure, it becomes non-input ready.
    Please suggest.

    Dear All,
    While working in the query designer, when I remove the reference from a globally used key-figure structure (using the context menu of the structure) for some editing, the query output is then not the same as it use to be when the reference was not removed.
    Do we need to maintain any setting or activate/generate the KF structure once it is changed from its initial state (like in the above case I discussed).
    My Exact problem : -  I have a input ready key figure (for planning) that remains input ready when the query is executed without removing the reference from the structure, however when i remove the reference from the structure, it becomes non-input ready.
    Please suggest.

  • Problem in display of char. and key figure for yearly query

    Hello all,
    I got a query in which i have to do restriction on
    Calendar Day/Month in Rows under Material which is a Characteristics
    So it should be
                                                               PACKAGE QUANTITY
                                            JAN  FEB  MAR   APRIL.......DEC
    PACK1
    PACK2
    PACK3
    PACK4 for current year
    PACK4 for prior YEar
    Now the months display is not pre decided, it can be anything as per the input of user.
    So i have to restrict it on Calendar month for Material twice
    In current year , just introducing the Interval range variable
    In previous year, same restricition with offset -12
    Now the problem is while displaying it shows
                                           JAN'06 JAN'07  FEB'06 FEB'07  MAR'06 MAR'07........ 
    PACK1
    PACK2
    PACK3
    PACK4 for current year
    PACK4 for prior YEar
    Which is not desirable.
    I only want value for Jan in one column
    and for previous year and current year in different rows thats it.
    If i remove Calendar year/month from columns there is no way I CAN DISPLAY MONTHS .
    How to achieve this.
    Please suggest.

    Kartikey,
    Rusty's suggestion wont work - using two characteristics for year and month will have the same effect as the position you are in at the moment.
    ie..
    2007     Jan.07     Feb.07    Mar.07   Apr.07
    2006 -
    Jan 06  Feb 06  Mar 06
    If you have the posting period of 01 - 02 - 03  (just the period number only, no year) then your query will display
    2007-01-02-03-04
    2006-01-02-03-04
    Regards
    Gill

  • Very strange problem: Error for Overall result  due to a custom infocube?

    Hi,
    I have a strange problem:
    In my query the sumgt function doesn't work for the calculation of a percentage (es: 'KFA' %A SUMGT 'KFA').
    The coloumn of the formula is full of red X.
    Using Nodiv() the percentage are all zeroes.
    I use a custom infocube for this query that is a copy of an infocube standard with some other infoobject custom. In the infocube standard the formula work and the sumgt is correct!.
    It is possible that there are some parameter to be set at infocube level that make the SUMGT wrong?
    I'm sorry for my poor english,
    Alberto
    Message was edited by:
            Alberto Maggini

    Alberto,
                   Your problem might be a UNIT problem. If you are using key figures in a formula with different units, you will have the "red X" outcome.
                   Try using the NODIM() function in each formula element.
    Regards,
    L. Felipe

  • BEx Query key figure sum different at monthly or at docu number level

    I have a query designed in Query Designer. The report is summarized at the monthly level , but the document number is available for drilling down. What's strange is that the sum of the key figures is different when running at the monthly level or when drilling down at the document number level. Can someone share your insight on what how to solve this problem?
    Thanks,
    Sharon

    Hi Sharon
    Which key figures give you an incorrect picture or discrpancies in the two displays ?
    Check the properties of these key figures. Are any of the key figures posing an issue calculated as 'Formula'. If yes, then what is the Calculate Result as for this KEy Figure ? Is it TOTAL ?
    Cheers
    Umesh

  • Key Figure Aggregate in Bex Query

    Hi Gurus
    I am using BI7.0; but 3.5x BEx tools
    I am loading 6 fields from a flat file.  I am loading data for tickets.  I have create an InfoObject that counts the number of tickets.  No problem.  Also I also have key figures that I am assigning the same value to all Charactersitics: 10,30 per ticket.
    The Key figures are (Sum) with a Summation aggregation type. 
    In my Query, the 10,30 aggregate up based on the number of tickets (characteristic) that are available.
    Question:  How do I remove/stop my key figures from aggregating up (sums) the values of 10, 30 based on the charactersitic?  I want only 10, 30 to be present regardless of the number of tickets (constant value applied to the key figure).
    Should I change my aggregation type?  If so, to what?  I see a number of options, such as Last Number, No aggregation, etc
    Thank you

    I found a solution to my requirement.

  • Key Figure Aggregate in Bex Query based on Charactersitic

    Hi Gurus
    I am using BI7.0; but 3.5x BEx tools
    I am loading 6 fields from a flat file.  I am loading data for tickets.  I have create an InfoObject that counts the number of tickets.  No problem.  Also I also have key figures that I am assigning the same value to all Charactersitics: 10,30 per ticket.
    The Key figures are (Sum) with a Summation aggregation type. 
    In my Query, the 10,30 aggregate up based on the number of tickets (characteristic) that are available.
    Question:  How do I remove/stop my key figures from aggregating up (sums) the values of 10, 30 based on the charactersitic?  I want only 10, 30 to be present regardless of the number of tickets (constant value applied to the key figure).
    Should I change my aggregation type?  If so, to what?  I see a number of options, such as Last Number, No aggregation, etc or can I override this in my Query property?
    Thank you

    Hi Client
    I would like to know how to avoid aggregation of a key figure in Bex 3.5?
    Thanks
    GS

  • NON CUMULATIVE KEY FIGURE 0NUMWDAY

    Hi Gurus,
                 I am having a problem I can't solve with key figure 0NUMWDAY.
                 I have to calculate 0numwdays for each 0calmonth. 0numwday is not an attribute of 0calmonth, (in fact 0calmonth has no attributes) which is OK, because working days vary for companies, factory calendar and country holidays.
                We have the routine ti get the exact number of days and working days for 0calmonth, and they go as a key figure for my Purchase Order Cube.
                Now, when I create the query for amount of purchase order for a certain month, I need the working days to calculate the average.
              But I get the working days summarized, when I need in fact only the working days NOT SUMMARIZED. I have tried different things, but haven't worked.
                I need working days by ocalmonth, purchase doc type, position, record condition (- or +). When I define an infoobject as reference, I can only add ONE, when I need to add more!
               Waiting for your help,
              Kind regards!

    Hi María,
    I think you can solve the problem by defining an exception aggregation to the key figure 0NUMWDAY.
    You can do it at key figure definition or at query level. 
    For more information, you can check this links:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d2/e0173f5ff48443e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/80/1a62f8e07211d2acb80000e829fbfe/content.htm
    Hope this helps.
    King regards,
    Maximiliano

  • Integrated Planning and Non-cumulative key figure

    Hi
    I´m creating an Integrated Planning application and a problem has occurred. The users want to plan on inflow and outflow and at the same time have a row with the total sum in the same layout (they are planning on 0CALMONTH and 0ORGUNIT) This can e.g. be solved through use Web Application Designer with one planning query and one traditional query.
    Any way. I have created a non-cumulative key figure with an inflow- and an outflow key figure. The problem is that the non-cumulative key figure starts working first when I change the planning mode from plan status to load status. I could use function modules, to change the status, behind the save button but there are several users who are planning at the same cube at the same time and I don´t want to lock the others from planning.
    How to solve this?
    - Is it possible to restrict the switching, from plan to load, by setting some kind of filter at the users org.unit? (0ORGUNIT is an authorization object)
    - Is it possible to create a process chain and then load the data to another cube for reporting at just this key figure? And also here have a filter at the org.unit
    I will gladly get all kind of idea and input to solve this problem. Maybe there is some other way to go than using non-cumulative key figureu2026

    Thanks for your answers
    I have tried different scenarios and I will use a u201Dsave-buttonu201D. In the save-button I use the commands SAVE_DATA and EXECUTE_PROCESS_CHAIN. The command u201CEXECUTE_PROCESS_CHAIN starts a process chain that switches from plan mode to load mode and then back to plan mode again.
    One new problem has arisen. The non-cumulative key figure is updating if an existing value (inflow- or outflow) is changed. But if an input is made to an empty cell, without value, nothing happen when I press on the start-button. BUT if I refresh the browser the non-cumulative value is updated!!!
    Is there any command in WAD that refresh the whole page? If so I can include it in my start-button.
    If not, any sugestion on how to solve the problem?
    Best regards
    Mikael

  • Calculating Key Figures in Copa based as sales Rev / Cusomter Price Based

    Hello Gurus,
    I have a requirement in which i would like to calculate some key figures in COPA as sales revenue.
    I would like for e.g to calculate the following: Cusomter Price Based Discount but do not know what to take into consideration.
    Is there any document which can help me to build it?
    I have  created the generic datasource based on the table CE1XXXXX.
    Thank you

    Hi Anindya,
    thank you for replying.
    The steps in that document was already being done.
    I have all Key Figures comin from CE1xxx Table. We are using the cost based COPA.
    My problem now is to build some Key Figures as sales revenue (Sales View) like for e.g Cusomter Price Based Discount.
    I would like to know how to proceed to build them. Any sample?
    Is it possible to build them directly based only on the generated extractor? or should i have to take dta from Billing as well?
    Thank you.

  • Submitting a form with enter key causing strange problems

    I am having a very strange problem with a webapp I am currently developing. I am using JSF 1.2 along with Facelets and RichFaces. I have coded a workflow/wizard 4-step process, and on some pages I have 4 submit buttons that all call different actions on the page. The users thought it would be useful to have the enter key submit the form, so I followed some online resources to trap a keypress using javascript, looking for the enter keycode and calling document.getElementById("elementName").click(). This works fine most of the time. Sometimes, though, it seems as if an entire new session is being created, and odd behavior starts happening. For example, my page will only include 2 of the 4 facelets on the screen -or- I will get NullPointerExceptions for objects that I know have been created in the session bean I am currently using -or- I will get a duplicate form Id after trying to re-submit the page. Could the javascript click simulation not be submitting all of the form elements or is the enter key also acting like its default action (the form submission) in addition to the "click"? I'm really at my wit's end here (plus it's nearly 3 AM, that never helps things). All of the buttons being clicked are standard h:commandButtons. There is some setTimeout logic included to disable the buttons on the page to prevent double clicks (I cannot disable them onsubmit because disabled buttons don't pass the right values, perhaps that's causing it, but if so, clicking the buttons with the mouse would cause that issue too, right?)
    I am not posting the code (yet), but if anyone wants to take a look see and see if I am doing something really abhorrently wrong, I'm more than willing to, I'm just curious if anyone has had problems regarding javascript submission of forms via the click() method. Clicking the button does not exhibit this type of behavior. Just as a side note: I am doing different things with the enter key depending if a modal window is open (the enter key closes the modal if it's up, and if not, it submits the form via a button click).
    Any help is much appreciated, if anyone has any inkling about where I should start looking for answers it would be really helpful.
    Thank you.

    edfrost wrote:
    Could the javascript click simulation not be submitting all of the form elements or is the enter key also acting like its default action (the form submission) in addition to the "click"?My guess is the second of these. You need to suppress the event handling after programmatically clicking the button.

  • Very strange problem / Perpetual command key

    I've been using OS X since its inception, and have never had this problem before.
    Starting yesterday, I noticed a very strange problem that was happening randomly. When I clicked on an app in the dock, it would just reveal the app to me in Finder rather than opening it. Other problems including multiple selections when single-clicking on items with my mouse, and not being able to type. After some fidgeting, I realized that my iMac is acting like I'm always holding down the command (apple) key. If I have a window open, for instance, pressing the H (just by itself) key will hide the window. Pressing Q will quit whatever is active.
    I shut down, restarted, plugged in a different keyboard, used a different mouse, unplugged all my periphs, deleted all haxies and their attached files, and it still happened. I unplugged my 2nd monitor, and that seemed to fix it after another restart... but then I plugged in my 2nd monitor again and restarted, and now everything is fine. It's just happening randomly. I'm afraid to restart my Mac now. This is really bizarre!!!
    Someone please help!

    If it's any help, it started right after the following:
    When booted to Vista one night, I noticed ghosting on my nice new iMac screen which kinda irked me. I could see the menubar with the Spotlight menu icon burned into the screen.
    So when I got back into OS X I looked for a menubar hider. I tried Menushade and Menufela, both of which are quite old... probably before any mention of an Intel switch had ever occurred.
    But now I had a problem... no clock. So I went ahead and downloaded Yahoo! Widget Engine (aka Konfabulator). I know, I know... what a crazy workaround just to hide the menubar (this is why it would be GREAT if Apple would build in its own menubar hider option!)
    Anyway, this stuff started happening, so I deleted all of those apps (Menufela, Menushade, and Yahoo Widget Engine) with AppZapper (a great little app).
    Ugh... this is what you get for experimenting with homegrown apps, I guess.
    Anyway, hope that helps.

  • Key Figure in cube loaded zeros, Strange problem

    Cube with three key figures
    1)counter(for each record, CONSTANT 1)
    2)Count with Exception aggregation (CONSTANT 1)
    3)NO OF DAYS
    NO OF DAYS is calculating and displaying correctly, where as   other two key figures in the cubes are zero (backend cube data as well as query).
    Working fine in DEVELOPMENT AND NOT IN TEST.

    Hi TR,
    Pls do activate the update rules in test. Also check the  update rules display. I hope the reason for this problem is the 'update type' set to 'no update' for the keyfigure.
    Hope this helps...Let me know
    Regards,
    R.Ravi

  • Strange Problem in PA30 Basic Personal Data - Bank details

    Hi Experts,
    We are facing a different strange problem.
    When we go to PA30 T-Code & enter Personla No. (eg. 1000001) & fill all details, like
    *Actions
    Organizational Assignment
    Personal Data
    Addresses*
    After when I come for "Bank Details" & Create, I am getting Default values for this screen fields,
    *Bank details type
    Payee
    Postal Code/City
    Bank Country*
    I am just keying
    *Bank Key
    Bank Account*
    Now after Saving, & when  checked in table PA0009 the EMFTX, BKPLZ, BKORT field (Text, City, Pin), are not getting added(Those fields are blank in Table).
    The Same when I add this fields manually all are appearing in table.
    (Example. when I go for Bank Details, I am getting Default pin & city maintained in Address field just above, Lets say 500001, HYD. & this is not updated in table when it shown default, But If I clear 500001 & add same(any Value) again back its updating in table. This is happening for Payee, Postal Code/City).
    please help me with this strange situation.
    Thanks,
    Dileep .C

    Hi Sandeep and Dileep,
    I am having the same problem as well.
    The EMFTX field is empty in PA0006 after i created a new Bank record in PA30.
    I actually tried creating a new Bank record via portal for another employee, EMFTX field is filled with value.
    I noticed that from backend, I will not be able to save IT9 if IT6 is not exist.
    If I do the same via Portal, IT0009 can be created while IT0006 is not exist.
    For your info, i check the module pool MP000900 in table T588M, it has 20 entries with different variable key, the variable key field is one of the colum which I believe the value is used to differentiate the countries. For my case, I can the country that I am testing is not having feature P0009, both the standard screen and alt screen are pointing to 2000.
    Please advice.
    Thanks
    Regards,
    Justin

  • Strange problem in PS CS4 32-bit only

    I'm having a rather odd problem and haven't been able to find any discussions of something similar. I'm running Windows Vista Ultimate 64 SP1. I have both the 32- and 64-bit versions of PS CS4 installed with the latest updates.
    64-bit PS works like a champ. I love it. Were it not for a variety of plug-ins I use which are not yet 64-bit enabled, I would never use the 32-bit version of PS. However...
    When running 32-bit PS, the program acts as though I have some key or mouse button either pressed or like I'm repeatedly pressing a key. Sort of. It doesn't try to do something on its own - that is, if I open a file and sit here doing nothing, PS won't do anything on its own. I will, though, see the cursor flashing oddly.
    If I attempt to do anything, I end up fighting with the "phantom" keys. Sometimes, I need to press a key several times before it reacts. Often, I'll get warning sounds like you hear when you press a wrong key for a particular state. Certain actions won't hold sufficiently long to let me do something. I just ran into a stubborn problem like this. If I click the crop tool, I cannot type into the width, height, or resolution boxes on the tool bar. I can click there, see a vertical cursor appear for an instant, then it's gone.
    This is driving me nuts. I wish my plug-in vendors would get their acts together and add 64-bit compatibility, but so far only Imaginomic has done so with Noiseware (and I'm grateful to them!).
    Other info: I'm running with a bluetooth mouse and keyboard as well as an Intuous 3 tablet. I have an nVidea GeForce 8600 GT video card. I've tried disabling OpenGL in PS without help. Note again, 64-bit PS works brilliantly with all these. I'm running plug-ins from OnOne (Plugin Suite 4) and Nik (Viveza) as well as Noiseware mentioned above. I tried logging in with my wife's ID to see if any of my settings might be to blame, but it behaves the same with her ID. I'm not sure if this problem showed up with the PS update or if it was there from the start. I'm thinking it did not show this problem when I first upgraded to CS4. I was using CS2 previously, and it's still installed on this computer. It does not exhibit this problem.
    Any ideas or suggestions?
    Tony

    Mylenium - thanks. I also was suspicious of the tablet, but the tablet is not in use when this problem shows up. Nevertheless, I uninstalled the Wacom driver, removed the tablet connection, rebooted, and the problem persists. But, I did get a chance to install a new version of the driver (April 2009).
    Like I said - strange problem. Since it doesn't crash PS, there's not much data. No error message, no stack trace.
    One other tidbit. I still have the crop tool selected. If I load an image and place the cursor over the image window, the cursor changes between the crop cursor and the big white arrow. Back and forth. When it's doing this, if you want to use the selected tool, you have to click right when the tool's cursor is showing, otherwise you get the "bing" noise.

Maybe you are looking for