IF logic in bex Query, only want to calculate keyfiugre with all values.

Hi ! 
I have a pushasing flow with folowing key figur. But Im missing the invoice value but have the difference beetween them.
_____________Invoice Quantiy  |  PO value (Good issue)  | Invoice value          |  PO vs Inv diff | 
example one________2________________10 eur__________(10+1)_____________ 1_________this case ok
exemple 2 ________blank_____________10 eur___________(10+blank) _________blank______havent recived any invoice yet invoce value should not be calculated 
My problem is that the invoice value should only shown then I have a Invoice Quantity.
I think its best to look at quatity because there mayby hard to differs on blank and 0 in the logic.
Do any one now a good solution on this, missing the IF statsments in BEX, its a 3.5 BW installation.
How should the logic look like ?
regards
Nicke
Edited by: Nicklas  Åslund on Oct 16, 2008 8:28 AM
Edited by: Nicklas  Åslund on Oct 16, 2008 8:31 AM

If then else statement in bex
this helped me
(( 'Cumulative Value GC' > 0 ) * 'Dummy Key Figure') + (( 'Cumulative Value GC' <= 0 ) * 15)
If 'Cumulative Value GC' > 0.
rslt = 'Dummy Key Figure'.
else.
rslt = 15.
endif.
this help me to writ the logic

Similar Messages

  • How can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?

    how can i do with labview program,when i have   20 different values,and 1 want to add it with constant value.and how to get the results?

    Why do the 20 values have to be different? The same code should work even if some are equal.
    What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
    What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
    LabVIEW Champion . Do more with less code and in less time .

  • I only want sync SOME videos, not all, is there a way to do it ?

    Hello guys!
    I want to sync only SOME videos, not ALL... is there a way to do it ? i tryed to did a "smart folder" with iPhoto, for select last 6 months videos, but when i try to sync to iPhone, it doesn't sync none video, the only way is selecting "incude videos" (but i wont want to, because it will sync ALL videos, i only want some of them)
    Thanks!
    System:
    Yosemite
    iTunes 12

    Hi,
    Unfortunately this feature is not included in Firefox at this point, but you can suggest it by following the instructions below.
    The people who answer questions here, for the most part, are other Firefox users volunteering their time (like me), not Mozilla employees or Firefox developers.
    If you want to leave feedback for Firefox developers, you can go to the Firefox ''Help'' menu and select ''Submit Feedback...'' or use [https://input.mozilla.org/feedback this link]. (You'll need to be on the latest version of Firefox to submit feedback). Your feedback gets collected at http://input.mozilla.org/, where a team of people read it and gather data about the most common issues.
    Hope this helps!
    Curtis

  • Webi base on BW query based on Infoset comes back with wrong values

    Hello:
    I have a Webi report on an OLAP Universe, on Bex Query.
    The bex query is based on 1 INFOSET.
    When I run the webi report the values that comes back a totally wrong values.
    The correct results are not brought back.
    When I do a test with crystal reports to the infoset, I can see the correct values.  (I'm aware crystal uses different drivers).
    The test is BW query designer, and crystal brings back proper values from Infoset based BW query.
    Webi on Infoset based BW Query comes back with wrong data.
    query is simple.
    Pull in 3 attributes, 3 key figures, where componentkey = "111"
    I get 36 rows in Crystal and 36 rows in Bex Analyzer, 36 rows in BW query designer (web analyzer).
    I get many rows in webi (almost like a CARTENSIAN product).
    I search a round this forum but still did not see a conclusive answer to this problem.
    But I see another thread that several others faced this same issue without a resolution.
    My environment.
    BOE XI 3.1 SP2
    No fix packs
    SAP IK 3.1 SP2
    HPUX-IA64
    Thanks in advance for any help.
    Dwayne

    Was this problem ever solved?
    I am having a similar problem with an infoset based query.
    I have created the BW infoset, and confirmed that the correct data is returned from the underlying infoproviders. A simple BW query on that infoset yields the same results.
    Create the universe, and then the WEBI, and WEBI now shows hundreds of records where I expect 10. Data is being returned in WEBI that definitely shouldn't be there. It's almost like the restrictions applied in the characteristic restriction area of my BW query are being ignored, even if I include them in the WEBI query.
    Cheers,
    Andrew

  • Want Deinstall Enterprise manager with all configuration

    I need to have steps of deinstalling Enterprise manager dbconsole with all its configuration because i have earlier deinstalled it and installing it by the help of Universal installer but the configuration is the same old one.
    Actually during restoration of my database in Test db, i do not have folder required for Enterprise manager, so i copy the folder from other database, and change different parameters in different files.
    So i want to find out the way that if Oracle 10g is restored by RMAN back up , then how do we install the Enterprise manager again.
    Whenever i try to drop em repositroy it is hanging

    I am trying to reconfigure EM CONTROL BY using DBCA but it is still retrieving database information and following is the result of top command on dbca session .
    Why it is still stuck in retrieveing database info for more than one hour.
    top - 13:17:53 up 66 days, 56 min, 2 users, load average: 1.00, 1.00, 0.99
    Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
    Cpu(s): 13.0%us, 37.0%sy, 0.0%ni, 49.7%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 2076988k total, 2018388k used, 58600k free, 172352k buffers
    Swap: 1502036k total, 48k used, 1501988k free, 1611804k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    1884 oracle 15 0 370m 61m 23m S 100 3.0 63:03.85 java
    Following is the output of ps command
    ps aux|grep dbca
    oracle 1883 0.0 0.0 3660 1240 pts/1 S+ 12:14 0:00 /bin/sh -f ./dbca
    oracle 1884 99.0 3.0 379396 63264 pts/1 Sl+ 12:14 67:44 /u01/app/oracle/product/10.2.0/db_1/jdk/jre/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 -DDISPLAY=localhost:10.0 -DJDBC_PROTOCOL=thin -mx128m -classpath /u01/app/oracle/product/10.2.0/db_1/jdk/jre/lib/rt.jar:/u01/app/oracle/product/10.2.0/db_1/jdk/jre/lib/i18n.jar:/u01/app/oracle/product/10.2.0/db_1/assistants/dbca/jlib/dbca.jar:/u01/app/oracle/product/10.2.0/db_1/assistants/jlib/assistantsCommon.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/ewt3.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/ewtcompat-3_3_15.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/share.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/help4.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/jewt4.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/oracle_ice5.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/kodiak.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/swingall-1_1_1.jar:/u01/app/oracle/product/10.2.0/db_1/lib/xmlparserv2.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/orai18n.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/orai18n-mapping.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/orai18n-utility.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/orai18n-collation.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/netcfg.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/ojmisc.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/oraclepki103.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/ldapjclnt10.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/opm.jar:/u01/app/oracle/product/10.2.0/db_1/jdbc/lib/classes12.zip:/u01/app/oracle/product/10.2.0/db_1/jlib/srvm.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/srvmhas.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/srvmasm.jar:/u01/app/oracle/product/10.2.0/db_1/classes:/u01/app/oracle/product/10.2.0/db_1/jlib/oemlt-10_1_0.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/emca.jar:/u01/app/oracle/product/10.2.0/db_1/sysman/jlib/emCORE.jar:/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/oc4j.jar:/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/db_oc4j_deploy.jar:/u01/app/oracle/product/10.2.0/db_1/jlib/emConfigInstall.jar:/u01/app/oracle/product/10.2.0/db_1/oui/jlib/OraInstaller.jar:/u01/app/oracle/product/10.2.0/db_1/oui/jlib/OraPrereq.jar:/u01/app/oracle/product/10.2.0/db_1/inventory/prereqs/oui/OraPrereqChecks.jar:/u01/app/oracle/product/10.2.0/db_1/oui/jlib/OraPrereqChecks.jar oracle.sysman.assistants.dbca.Dbca
    oracle 2022 0.0 0.0 2852 712 pts/0 S+ 13:22 0:00 grep dbca

  • I only want to show favorite channels all the time when I go to Guide. Hide others.

    Is there a way to only show Favorites? I don't want to have to select Favorites, and make it easy on the family to see a limited amount of channels. I can create favorites but i have to Select 'Show Favorites'. 
    Any ideas?
    Thanks in advance.

    Yes, you can.
    There is a feature called Flip By Favorites, which you'll find under the Favorite Channels menu in Settings. Once the Flip By Favorites option is enabled, the box will only show the channels you have added to the selected favorites list. Channels that you have not added will be permanently hidden from the guide; the only way to access those channels will be to input their channel numbers manually.

  • Automator query: I want to batch process with a program that doesn't offer batch processing.

    After much searching and experimenting I'm resorting to asking the direct question to see if you good folks can help me.
    I would like to be able to automate some image processing with the software "SketchMee". Unfortunately this is not something that the stand alone can do on it's own. I assume Otto can help me. I would like to essentially have a directory with "raw" (unprocessed) images. Have automator...
    1. open file in SketchMee (SketchMee will automatically render with previous settings)
    2. save new file in new directory
    3. repeat 100's and/or 1000's of times.
    Seems pretty straight forward but I'm having trouble making it happen.
    Does anyone have any advice or info for me here?
    Note: this is not a process that can be done in iPhoto, Photoshop or Graphics Convertor.

    Way better, IMHO of course, is Photoshop Elements.  It is not free but you can find deals on it but if not it really isn't too expensive.  For the amateur or advanced amateur it is far better than DPP (free included software) and even Lightroom.
    Lightroom is designed more for a person that takes 1000's and 10,000's of photos.  It has limited editing featuers.
    PSE is also more user friendly that full blown Photoshop.  Which you can not purchase any longer as it must be rented from Abode on a monthly basis.
    There is the free Gimpshop but it is the least user friendly of the bunch and has a steep learning curve.  But it is free.
    Lightzone is a free copy-cat version of Lightroom.
    But when you are ready for the best photo editing and RAW conversion software there is, there is nothing at the top except Photoshop.
    EOS 1Ds Mk III, EOS 1D Mk IV, EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 85mm f1.2 L II USM, EF 70-200mm f2.8 L IS II,
    Sigma 120-300mm f2.8 EX APO, Photoshop CS6, ACR 9, Lightroom 6

  • Workflow will lookup a value from one list and update to second list , in second list wants to calculate using that lookup value

    Hi,
    I'm Palanivel , In my site collection , I have 2 lists , In 1st list , i have id,name and Total Annual leave . In 2nd List i have ID,No of Days(taking leave),Balance Annual Leave.
    My first task is,In List 2, get the value from list 1.total annual leave to list 2.balance annual leave. Next , i do some calculation ,that is (balance annual leave - no of days = balance annual leave) .
    Now my updates working correctly . and the calculation also working but when next time applying leave , again the update process working , so balance annual leave becomes my total annual leave .
    my question is how to do a update process only first time , next time only calculation task has to be performed .
    how to do 2 task in a single workflow , the 1st task must run only one time .
    please help ....
    thanks in advance

    Anyway-hopefully I am not talking to myself here.
    The database i am using is Oracle 10 g version 1 and using vb2005 express.
    As mentioned above the problem is the value of the parameter does not go into the query statement.
    The same logic with changes made works for other major databases. So I do not think it is the logic.
    Any suggestions?

  • Querying the schema for table name with column value!

    In my schema i have 500+ tables and other objects.
    i have a column with the name BO_PRODUCT_CODE.
    I wants to know in what tables the value of BO_PRODUCT_CODE='FX03'.
    i have query the user_tab_columns which gives me the result with 90 tables having the column BO_PRODUCT_CODE.
    What is query which will give me the exact number/name of the table whose column value is FX03. ie, BO_PRODUCT_CODE='FX03'.

    Hi you can use this approach:
    BEGIN
    v_str VARCHAR2(250);
    v_count NUMBER :=0;
    DECLARE
    FOR loop_tbl IN ( SELECT DISTINCT table_name FROM USER_TAB_COLUMNS
    WHERE column_name ='BO_PRODUCT_CODE' )
    LOOP
    v_str := 'SELECT COUNT(*) FROM ' || loop_tbl.table_name || ' WHERE BO_PRODUCT_CODE=||'''' ||'FX03' || '''' '
    EXECUTE IMMEDIATE v_str INTO v_count ;
    IF v_count > 0 THEN
    DBMS_OUTPUT.PUT_LINE ('Table Name :'|| loop_tbl.table_name || ' Count :'||v_count);
    END IF;
    v_count :=0;
    END LOOP;
    EXCEPTION
    WHEN others THEN
    DBMS_OUTPUT.PUT_LINE(SQLERRM);
    END;
    Please remove if any syntax error.
    Regards

  • How do I ONLY sync my iPhone contacts with all my Apple devices and iCloud?

    The contacts on my phone are what I need and use and what I need to back up. I want these contacts on my iCloud, my Pad, and my MacBook Pro. How do I do this? I have connected my iPhone with iCloud, same with my iPad but all my contacts are messed up and out of date. So I have some contacts on my iPhone that are not in iCloud and hence not on my iPad or my MacBook. I am worried that when I get my new phone all of them will be gone as my Phone is only where everything is stored.
    How do I delete my contacts that are not on my iPhone, and then update all my devices to be in line with my iPhone ONLY.
    Help
    ... please.

    You need to provide some information.
    1. What model iPhone? running what iOS?
    2. Are you running Leopard 10.5.8?
    You can connect and sync using iTunes and back up your iPhone to your Mac. Without the above answers that's what you got.

  • BEx User Exit on Variable to populate with YTD values.

    Hi All,
    I have a multiple selection option variable on 0CALDAY that I want to prepopulate with the YTD range.
    When the variable screen pops up it should display the range 01/01/2008 to 05/05/2008 (Current Date), however the user shall have the ability to change these populated values.
    Thanks.

    Hey thanks for the quick resposne. I was thinking of using the following code, but have the following questions, how do i know that the I_T_VAR_RANGE contains the current date that the report is on?
    WHEN 'ZCCYTDIN'.
        if i_step = 1.
          read table I_T_VAR_RANGE INTO LOC_VAR_RANGE
          with key VNAM = 'ZRPTDATE'.
          clear l_date1.
          clear l_date2.
          move LOC_VAR_RANGE-LOW to l_date1.
    Move First day of the year to low
          concatenate l_date1+0(4) '0101' into l_date2.
          L_S_RANGE-LOW = l_date2.
    Move Calendar day entered by user to high
          L_S_RANGE-HIGH = LOC_VAR_RANGE-low.
          L_S_RANGE-SIGN =  'I'.
          L_S_RANGE-OPT  =  'BT'.
          APPEND L_S_RANGE TO E_T_RANGE.
        endif.

  • Running Win7 and ITunes 10.6 - loaded all my old CD's in one user acct. I want to share these with all other users on the machine without reloading the CD's and without having to make copies of their disk images, if possible. Also, want them on my WinXP

    Running ITunes 10.6, on a Win7 Home Premium SP1. Just loaded about thirty of my favorite CD's on my user account.
    I would like to be able to make all of them available to my other family members in their accounts on my machine, without needing to reload them all and without having to store their disk images multiple times. Can this be done, and if so, how?
    And can I copy the contents of a folder across to my wife's WinXP SP3 machine, and have them made available to each of us in our login accts on that machine?
    (There are three of us, plus an admin and a backup admin account, on each.)
    I will be really grateful if someone can help me do this for my family members, as we have shared the music on these CD's over the years, and I would like to make them available on the desktop for each of us.
    Also, I'd like to be able to load them, or a subset of them, to my wife and son's IPods. Any Tips, Traps or Tweaks for that process, as well?
    Thanks in advance for any help you can offer.
    Not sure about the OS level for the IPods. I am doing this for my wife and son, using an account here created for my son, which he shares with me for support purposes. But I do know they both have IPods, and our PC's and their OS's were described above.

    You can move the iTunes folder to a separate drive on your pc an then configure each account to use this drive / folder as iTunes library ... The problem is, that iTunes by default stores everything in your personal music folder which is separate for each user account in windows (and by default is on "C" drive).
    I create a separate partition on every pc/laptop (and map a drive name) where I store music, videos and other mass data. This will also keep the "C" drive small, which is backed up from time to time and so my backup is also small.

  • I want Safari to open with all windows from last session.

    I have selected that option from the preferences menu, but it doesn't work. It just opens a new page. What do I do?

    System Preferences > General
    Uncheck the box next to    "Close windows when quitting an application".
    Hope this helps.

  • How do you create a realy good web banner with changing pictures? I'm struggling to resolve this as I'm only a car detailer struggling with all this designing stuff.

    I am using a CSS template from xsite p@ro and I can access my html script easily enough to make any edits: http://www.briansautodetailing.com.au/ I need to know what software I should purchase to create a changing header image. I would like to have larger pictures and have them change..Just a bit nicer to look at I guess.
    Thanks for any responses in advance
    Brian

    Hello Brian,
    in addition to osgood_'s hint, here some links to nice sliders:
    http://sandbox.scriptiny.com/javascript-slideshow/
    http://jquery.malsup.com/cycle/
    http://wowslider.com/best-jquery-slider-crystal-linear-demo.html
    http://www.jcoverflip.com/demo
    http://www.jacksasylum.eu/ContentFlow/
    http://addyosmani.com/blog/jqueryuicoverflow/
    Have fun when choosing!
    Hans-Günter

  • How to set a BEx Query Condition in Design Studio (e.g. Net value GT 0)

    Hi experts,
    I have set a simple condition in my BEx Query...
    e.g. key figure "Net value" GT 0 to become only positive values in the query result.
    In the Query runtime the condition works successful, but in the Design Sudio view the defined Query condition doesn´t work.
    In my Design Studio crosstab I have tried to switch between the display setting "Conditional formating Visible" true/false, but without success.
    By the way, before I have posted this thread, I had a look at this two blogs...
    Design Studio 1.0: Create a Scorecard Using SAP BW BEx Query Exceptions
    Design Studio 1.2  - a Second Look
    Any ideas or experiences?
    Thanks and regards,
    Michael

    Hi Michael,
    I think you are mixing up two different BEx terms. Conditions are filters on key figures (show me only the results with a value bigger than 50). Exceptions do not filter the result set, but provide a formatting based on the values in the result set (if value is bigger than 50, make its cell red).
    The Conditional formatting setting in Design Studio refers to the BEx exceptions. For the BEx conditions there isn't such a setting available. You just have to activate the condition in your BEx Query and use that for your data source in Design Studio.
    If you want a workaround to enable/disable conditions from Design Studio, check this blog I wrote: HackingSAP.com - SAP Design Studio and Conditions It shows how you can use variables to adjust the conditions (and also activate) from within Design Studio.
    Cheers,
    Xavier

Maybe you are looking for

  • I don't know what else to try to download iTunes! Please help!

    I'm going crazy... I have been reading forums and troubleshooting pages for about 15 hrs and I do not know what else to try. I have 32-bit Win Vista and it will not let me download iTunes. I have run my anti-virus, my spyware remover, cleaned my regi

  • My ipod will not downgrade from 5.0 or 4.3.5 to a 4.3 4.2.1

    my ipod will not downgrade from 5.0 or 4.3.5 to a 4.3 4.2.1 it is a 4G ipod touch im trying to downgrade to a 4.3 or 4.3.3 this ipod model is MC540LL right now i have 5.0 but there was the same problem with downgrade when i had a  4.3.5 firmware

  • Characteristics validations in BPS

    I have a question related to characteristics validation in BPS. Is it true that the validation is not executed if any one of the involved characteristics have unassigned value? We have two characteristics: Account and “Trading partner” in the validat

  • Updating existing gallery

    I was wondering if it is possible to update an existing gallery without having to recreate the whole gallery again.  I'm guessing there is some way to save a gallery some how but I have no idea how to.  This problem makes it kind of tedious if I just

  • Help needed installing PSE...

    I had Photoshop elements (CD/disc version) installed on my imac and my mac book pro. 3 weeks ago my mac book pro died. I took it to the Apple store and it was a terminal failure. I bought a new mac book pro and installed photoshop elements on it. Now