Restricted Key Figure base on another Key Figure

Hi,
I am now working on a Sales Analysis report.
Now, I need to create a Key Figure with the following logic.
If the Sales Amount = 0.
  value = 0.
else.
  value = Sales Quantity.
endif.
How can I make it on the report level? or I can only make it on the cube level?
Thanks in advance.
Best Regards,
Chris

Chris,
    Create a formula and use the following definition.
(Sales Amount <> 0)*'Sales Quantity'
This should do the trick.
Hope this helps...

Similar Messages

  • Can I restrict a restricted key figure on another Key Figure ?

    Hi Experts,
    I tried to acheive this but was not able to do it.
    Can I restrict a restricted key figure on another Key Figure ? I have a restricted key figure named " No of Orders Completed" and I have a key figure " No of Repair Days". I want to only report on the orders which get completed in 5 days.
    So I want to restrict " No of orders completed" by key figure "No of repair days" = 5.

    Hello
    you can create a CKF (If you have RKFs created for No of days and orders completed) or Fomula (if you have selection created for No of days and orders completed) with the following condition.
    (No of days <= 5)*No of orders completed + 0
    this will give you No of orders completed for all the orders for which no of repair days <= 5.
    Do not forget to apply the exception aggregation on the newly create formula. Set exception aggregation as total and reference characteristic as order.
    After that creat a condition to hide all the records with 0 in the newly created formula.
    I think that should solve your issue.
    - Danny
    Edited by: Danny Matt on Jul 6, 2009 11:30 AM

  • Exception color can not display at another key figure in BEx query desinger

    I have a report requirement, the user want to display the average price on each month ,such as:
    Jan.   Feb. Mar.  Apr. etc.
    100    105    104   95   ....
    and the user want to compare each other months with Jan's price.
    they want to display the exception color when the rise or down rate greater or less than 5%.
    Now ,I can only change the output structure such as:
    Jan.  Feb. Rate2-1                 Mar.  Rate3-1                 etc.
    100   105   (105-100)/100=5%  104    (104-100)/100=4%  ....
    Now I can set Exception on the formula Rate2-1 Rate3-1....
    But the Exception color can only display on Rate2-1,Rate3-1...
    and Not the Keyfigure Feb. Mar...
    I am using the BI 7.0 and the new Query Designer.
    Who can help me to solve this question .
    Thanks.
    Yours Youming.Zhao

    Hi,
    its simply not supported for BEx Analyzer. Exception reporting on another key figure is only possible for Web Reporting.
    Check this actual SAP Help Link:
    [Restrictions in the BEx Analyzer|http://help.sap.com/saphelp_nw70/helpdata/en/45/5038f28cce08d2e10000000a11466f/content.htm]
    Sorry that i dont have a better answer
    Cheers

  • SNP PR Deletion based on another key figure

    Folks,
    I want to delete Purchase requisition ( Distribution receipt - Planned) in APO-SNP based on the value of another key figure.
    for example if the another key figure value is 1 in a particular time bucket, then i want the PR of that bucket to be deleted.
    I have designed macros incorporting this logic i.e if another key figure value is 1, then make the Purchase requisition quantity as 0.
    But when i execute this macro, system gives the  message " Error saving Transport requisitions to live cache" and PR quantity does not become 0.
    I have also tried using RLCDEL but  it is not possible to selectively delete the PR using the value of another key figure.
    Is there any method ( Macro or non-macro) through which i can achieve this ? Any inputs will be highly appreciated.
    Regards,
    Pawan.

    Hi Pawan,
    I assumed the macro solution should work...
    A macro can create orders, so logically it should be able to delete. Unfortunately I can't test it now.
    Could you please do the following?
    if you delete an order manually in interactive, and refresh, what happens?
    does your order come back?
    If yes then the issue is not directly linked to the macro...
    Then could you check  in SPRO - SNP global settings,  do you 'Heur: Order Update' being set to 'Delta Mode'?
    If yes, then set it a "complete mode"
    Thanks and Regards
    Julien

  • Cumulative key figure and non cumulative key figure

    Hi BW Expertz
    Could any one give me the clarification about cumulative and non cumulative key figures .Why we go for cumulative key figure and non cumulative key figure.If any docs could u just mail to the following [email protected]
    Thanx In advance
    Best regards
    sankar prasad

    Cumulative values are those key figures (KF) that are cumulated using all characteristics, thus also using time.
    Ex: Sales revenue, Quantity....
    Non-cumulative values are those key figures that are measured in relation to a period in time; they cannot be meaningfully cumulated over time. Non-cumulative values are summarized over time using so called exception aggregation.
    Ex: Number of employees, Inventory, Stock prices, Account balance,.....
    AGGREGATION TAB
    Non cumulatives are evaluated by non-cummulative values. Non-cummulative values are special key figures that are different from other key figures (cummulative values) in data transfers and saving as well as in aggregational behaviour. These are measured in relation to a period in time; that is to say, they cannot be meaningfully cumulated over time. Non-cumulative value are summaraized over-time using exception aggregation.
    Non-cumulative values such as 'number of employess' are cumulated using characteristics such as 'cost center'. It does not make any sense, however, to cumulate the number of employees using different periods. The result at the end of any particular period would be the sum total of number of employees for each posting during the period. This would of course be wrong.
    Instead, the aggregation of the KF can be defined as exception aggregation wherein an additional references characteristics is utilized to tell BW which value to use during the period, in this case, 0CALMONTH is used, in the above example, to indicate that only the last value of 0HEADCOUNT, updated by costcenter, is to be taken for any calender year and month.
    Cummulative vs Non-Cumulatives
    The purpose of non-cumulatives is to optimize the data transfer in BW, the data retention and the database access. The data transfer from OLTP to BW is minimized and only the meaningful data is saved and processed.
    It is recommended that you use non-cumulative values for areas that dont change frequently such as warehouse stock or number of employees.
    Non-cumulatives are modeled in BW using a non-cumulative value with the fields belonging to it for storing the non-cumulative or for inflows or outflows.
    Non-cumulative values are stored with special KF that differ in terms of data transfers and aggregational behaviour.
    Features of NON-Cumulative Values Transfering and Saving Data:
    - NC values are mapped uisng one KF for NC changes or two KF for inflows and outflows.
    -NC are transferred in an initialization run and the change runs that follow (initialization can also be omitted here)
    - A non-cumulative value always has a time-related exception aggegation.
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62dee07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/d2/e0173f5ff48443e10000000a114084/content.htm
    with Example
    Re: Non-Cumulative keyfigure example
    Re: Types of non-cumulative keyfigures
    /community [original link is broken]
    /community [original link is broken]?forumID=131&threadID=29557&messageID=273049
    /community [original link is broken]?forumID=131&threadID=111914&messageID=1248243
    ****Assign Points If Useful*********

  • Keyboard shorcuts - make an alias for another key combination?

    Dear all,
    Page up on the apple iBook is done with Function-UpArrow - there is no space on the keyboard for a dedicated key. The two keys are on the opposite sides of the keyboard, so pageup is a two-handed operation. My fingers don't stretch that far! So I'd like to use Shift-UpArrow for pageup. Apple up-arrow would also do fine, but I haven't checked that that isn't already taken.
    I've looked at system prefernces -> keyboard & mouse -> keyboard shortcuts. I can see how to make a keyboard shortcut that is equivalent to selecting a menu item from the current application. I can't see how to make a keyboard combination do anything else. Do you know how to do it?
    I'm happy to delve into config files or similar as long as I have a good set of instructions, or it is easy to figure out what the rules are.
    Many thanks in advance, Max

    Pesonally I like the emotions key and use it quite a lot  and replacing it with another key , if hit in error would still cause issues ? The KB on Windows Phone is acknowledged as one of the best virtual keyboards on any phone, and changing it would not be the best option IMHO. However , if it were allowed for devs to create alternative 3rd party versions as they do for Android, maybe the few people who have issues could find an alternative, it's always nice to have choice 
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Delete records on basis of primary key.

    HI all,
    I need an ODI code so that i Should delete the record from target table on the basis of primay key with the reference of I$ table.
    for example ..
    T is target table & I$T is IKm table.
    T has primary key P and I$t is also primay key.
    So catually the code should be
    delete from T where T.P <> I$.P
    I wnat to insert the ODI code in IKM .
    I had tried something like but it doesnt work
    delete from <%=snpRef.getTable("L","TARG_NAME","A")%>
    where     <%=snpRef.getColList("", "[COL_NAME]\t <> :[COL_NAME]", "\nand\t", "", "(UK)")%>
    Please sussgest.
    Edited by: neeraj_singh on Dec 1, 2008 12:01 AM

    Hi,
    Use:
    delete from <%=snpRef.getTable("L","TARG_NAME","A")%>
    where <%=snpRef.getColList("(", "COL_NAME", ",", ") in ", "(UK)")%>
    (select <%=snpRef.getColList("", "COL_NAME", ",", "", "(UK)")%> from <%=snpRef.getTable("L", "INT_NAME", "A")%>)
    That code will give what you need...
    Cezar Santos

  • I inadvertently pressed CTRL+ another key (possibly V or B or N) and the text size of my bookmarked page was significantly reduced in size. I can't read it. How do I re-set the text size?

    I mistakenly pressed CTRL + another key (possibly V or B or N or whatever), when I was reading my e-mail. The text size shrank to a size that is useless to me, but I cannot seem to get the text size re-set to normal. Indeed all of the formatting on the page has been reduced (symbols, instructions, frames etc). Existing Firefox and returning to the bookmarked page makes no difference. How do I re-set the system?

    Hi,
    Please try '''Ctrl''' + '''0''' (zero). Alternatively '''View''' ('''Alt''' + '''V''') > '''Zoom''' > '''Reset'''.
    [https://support.mozilla.org/en-US/kb/how-do-i-use-zoom?redirectlocale=en-US&redirectslug=Page+Zoom Page Zoom]
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]

  • Just got a used airport base station. Set it up and getting wif signal. when I try to hook up on a computer it asks for a security key. where can I locate key?

    just got a used airport base station. Set it up and getting wif signal. when I try to hook up on a computer it asks for a security key. where can I locate key?

    If you mean the hexidecimal equivalent of the alphanumeric password, then you can find this via the AirPort Utility, as follows:
    AirPort Utility > Select the AirPort > Manual Setup
    On the AirPort Utility's menubar select Base Station > Equivalent Network Password

  • Question mark not working, as well as others- can I work around by programming another key for this symbol

    The question mark-slash key, the semi-colon key, the eject key, don't work at all as a result of getting wet. Can I do a temporary work-around by assigning another key (like the f11 or f12) to use until I get a "proper" fix>(that's a q-mark...)

    Get the keyboard replaced is best, it's going to go eventually.

  • How to get JTable's default TAB behavior and apply it to another key ?

    Is there any way to get Table's default behavior of one key say TAB & apply it to the another key say ENTER?
    Means I want to disable JTable's default behavior of ENTER key & I want ENTER key should act like TAB.

    Take a look at this.
    [http://java.sun.com/products/jfc/tsc/special_report/kestrel/keybindings.html]

  • ENVY Quad Laptop, Windows 8, Can't Left Click While Pressing Another Key

    Hello Everyone-
    I just received my new laptop last night (ENVY Quad, Windows 8 Pro, 16GB Memory, Intel 7 CPU) and I had similar issues as others while trying to play online games. I was able to go into the touchpad controls and remove the settings that stopped me from using the pad while while pressing another key.
    The issue I now have is that while pressing another key to 'walk' in my online game; I cannot get a response from the pad to perform a 'left mouse click'. Essentially I can choose to use my keyboard OR click my mouse.
    Also, it seems to take a moment or two to realise I stopped using my keyboard before allowing a mouse click.
    Any ideas on a setting I can change to allow simultaneous Mouse-clicks and keyboard usage? or is this a defect in my system?
    Thanks!

    I understand you are having issue with the mouse click. If you disable the pad it will stop the functions all together.
    Here is a document on a TouchPad pointing device with a touch-sensitive surface.
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c03523373&lc=en&product=5363765&tmp...
    Hope this helps with settings.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Need another key for Adobe 9 Pro or a downloadable copy I can purchase

    I purchased Adobe 9 Pro a couple of years ago and have installed it on two computers already.  I need to either find another key (for purchase) or a downloadable copy of 9 Pro.  I don't want to have to use X or XI if I don't have to.  Any suggestions would be greatly appreciated.

    No, there's no way to buy legacy versions.
    Mylenium

  • My ipad 2 is in recovery mode, but I can't reset it by using the home and start keys.  Is there another troubleshooting that I can do?

    My ipad 2 is in recovery mode, but I can't reset it by using the home and start keys.  Is there another troubleshooting that I can do?

    read this carefully
    If you can't update or restore you iOS device
    http://support.apple.com/kb/HT1808
    word is you may need to do it multiple times, and be sure to follow all the steps carefully

  • Getting a cmd key on an external 101-key keyboard

    I'd like to use my classic IBM Model M keyboard with my new MacBook Pro. I've connected the keyboard into the MacBook Pro via a PS/2-USB adapter and am able to type fine and enjoy all of its old-style clicky, mechanical key goodness.
    The problem is, however, that there is no cmd/flower/Apple key on an old 101-key keyboard -- and this key comes often comes in handy in OSX.
    Is there any way to simulate the cmd key in OSX? Or can I perhaps reassign another key to work as the cmd key? I do have at the top of the keyboard "Print Screen", "Scroll Lock", and "Pause" keys, which according to keyboard viewer, work as F13, F14, and F15. F14 and F15 work as screen brightness up and down and F13 has no function. Could I perhaps assign one of these keys to work as the cmd key?

    J. Everett wrote:
    *Modifier Keys* will indeed allow me to assign the Caps Lock, Control, or Option/Alt key to be the Cmd key -- but then I'm out either a Caps Lock, Control, or Option/Alt key.
    Well, I decided I can live without a "Caps Lock" key better than I can live without a "Cmd" key, so I swapped away my "Caps Lock" for "Cmd" in "Modifier Keys".
    It's functional for all the cmd-key combinations, but alas, it does make it HARDER TO SHOUT LIKE A N00B ON MESSAGE BOARDS.

Maybe you are looking for

  • How do you tell if ZAM 7.5 is running?

    I just need a simple test to see quick if it is installed properly in Windows XP. For example, what's the name of the task (process)? Should there be a taskbar tray icon? etc. I can't seem to find this information (but then again I'm terrible at sear

  • Problem during mapping when stored procedures is used

    Dear All, I am doing one File-XI-JDBC scenario using stored procedures. My source Data Type is like: MT_HEADER 1..1       PRODH    1..1  xsd:string       VTEXT      1..1  xsd.string       DATUM    1..1  xsd.string My target Data Type is like: MT_HEAD

  • Info needed to produce a Docking Station for iPhone 5

    Hello, Where can I get the info needed to produce a Docking Station for iPhone 5? I mean technical details (e.g. for Lightning connector) and legal issues. Thank you!

  • How to download/save report from server machine to client machine?

    Hello All This is San, My problem is that i need to save pdf/html report in client machine while report running on client machine for this i have set destype as file and desformat as pdf/html. It is running and save automatically while report run on

  • SRGB pics desaturated after uploading

    I'm completely confused at this point about what is causing this issue. My NEF photos that have only been edited in lightroom 5.7.1 seem to lose quality (i.e. much less detail in the darker shadows) and saturation after being uploaded to an internet