How to create conditions in BEx

Hi,
Please tell me if my query condition on a KF looks like this how can i achieve this?
Key Figure: 1.Forcast Accuracy
            2.Actual
            3.abserr
Formula for Forecast Accuracy: If Actual>0,then do 1-abserr/actual,
              else 0.
if i create calculated KF or restricted keyfigure how can i write if else conditions...
Thanks in Advance,
Vijaya

Hi,
  Check this out.....
(Actual>0)*(1-(abserr/actual))+0
Instead, if you don't go for CKF, in the columns of the query if you have columns for Forcast Accuracy, Actual and abserr
you can do like the below
Column1 : Forcast Accuracy
Column2 : Actual
Column3 : abserr
Column4 : 1-nodiv(abserr/actual)(to be hidden)(new formula)
Column5 : (Actual>0)*(Column4)+0    (New formula)
Hope this helps you.....

Similar Messages

  • How to create conditional update trigger in sql server

    How to create conditional update trigger in sql server

    You cant create a conditional update trigger. Once you create an update trigger it will get called for every update action. However you could write logic inside it to make it do your activity based on your condition using IF condition statement
    Say for example if you've table with 6 columns and you want some logic to be implemented on update trigger only if col3 and col5 are participating in update operation you can write trigger like this
    CREATE TRIGGER Trg_TableName_Upd
    ON TableName
    FOR UPDATE
    AS
    BEGIN
    IF UPDATE(Col3) OR UPDATE (Col5)
    BEGIN
    ....your actual logic here
    END
    END
    UPDATE() function will check if column was involved in update operation and returns a boolean result
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to create hierarchies in Bex queries?

    Hi All,
    I am new to query designer tool,
    can you please help me how to create hierarchies in Bex queries using query designer tool?
    Thanks in advance...

    Hi,
    directly you can't create hierarchy at bex level.
    First you have to maintain hierarchy data source at source or bw side, based on your needs.
    Later you can load data to hierarchy, after that at bex level you can activate hierarchy options to related info object properties.
    To maintain hierarchy we need to enable hierarchy options at related info object(RSD1, hierarchy tab, select with hierarchies) maintenance level.
    For example: info object - 0GL_ACCOUNT and you need hierarchy structure on gl account.
    For that we need to have hierarchy data source and will load data from ecc.
    Later we can develop reports on gl account in hierarchy fashion.
    On what object infoo bject you want create hierarchy report and have loaded hierarchy data?
    Thanks

  • How to create variables in Bex query

    Hi all,
    can anyone please explain how to create the variables and how many types of variables in Bex Query.
    Thanks in advance
    James

    Hi James,
    You can create variables in the BEx Query by right clicking on your characteristic and then selecting Restrict. A pop up window will appear. On the left side of the pop-up window, right click on a white space and then select New Variable. The Variable Wizard will then appear - you can now create your variable acording to your specifications. For more info on variables, please click on the link below:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/61/579b3c494d8e15e10000000a114084/content.htm
    Hope this helps,
    Juice

  • How we create system for Bex query

    Hi
    I want to access Bex query in VC , I think we can do this by creating system in poratl. pls tell me how we  create system in prtal for this.
    Regards
    Amit

    Hi Naresh,
    Pls send the Document for me also.
    This is my mail id: [email protected]
    Thanks & Regards
    Prakash T

  • How to create Structures in Bex in BI7,

    Experts,
    can some one explain me in breif how to create structures in BI 7 also can we create a variable on 0FISCPER if so how.
    also if some one had a quick look document on bex reporting in BI 7 please forward it to [email protected]
    Thanks in Advance
    Ravi

    http://help.sap.com/saphelp_nw70/helpdata/en/c1/759b3c4d4d8d15e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/4d/e2bebb41da1d42917100471b364efa/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/f1/0a5632e09411d2acb90000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/7127d2b5263457e10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/02223c5f00612be10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/4fc09c78ef4e35e10000000a1553f6/frameset.htm

  • How to create conditional drop-down lists

    I would like to create a form that utilizes conditional drop-down selection boxes like at http://blogs.office.com/b/microsoft-excel/archive/2009/11/24/create-conditional-drop-down- lists.aspx
    How can I create a form that contains fields like this?
    Is there a sample I can download?

    I have downloaded the AcroForm version (ListProgramming_Part1_AcroForm.pdf).
    I'm not able to consistently recreate.  I was first playing with the form by selecting values in the drop down.  At one point I went to Document Javascripts and select "Example1".  I chose to edit.  Make no changes and select "OK" I get "SyntaxError: missing } in compound statement 39 at line 40"
    The sec ion of code is:
    function SetPartEntries()
       // Only run this code on when the selection is commited.  
       if(event.willCommit)
          // There are 3 rows in the order form so in order to use other fields in 
          // the same row we first have to acquire the name of the row
          // we are operating on.  This is part of the List field's name, so we 
          // just have to split it off 
          var cRowName = event.target.name.split(".").shift();
          // Now get the new parts list from the Master List
          // Since the selection is being committed, event.value contains the selection text
          var lst = oAssemblyParts[event.value];
          // If an entry is selected that we don't have a parts list for, then
          // the parts list is just cleared. 
          if( (lst != null) && (lst.length > 0) )
             this.getField(cRowName + ".PartSelect").setItems(lst);
          else
             this.getField(cRowName + ".PartSelect").clearItems();
          // We have a new parts lists and the first entry is 
          // is a non-selection.  so clear the price field.
          this.getField(cRowName + ".Price").value = 0;
    I am not able to recreate if I select "Edit all Javascripts" only when I use document javascripts.

  • How to create conditional dialog box

    Hi Everyone
    I am creating a database application in APEX 4.0. In that application a page requires a dialog box, which has to appear when a user clicks on Submit button.
    It has to consider validations and appear after validations and submit button is clicked. Here the Submit button submits the entire page after validations by updating the database table.
    Please help me out how to create a dialog box which has to appear by the click of Submit button.
    Thanks in advance
    Regards
    Sandeep

    Hi Kiran
    Thanks for responding,
    Sorry for providing the complete details.
    Provided link is much more helpful, but its not meeting my needs. My requirement is to just show a popup box after the user clicks on submit button.
    Saying 'Thank you for answering' if he is done with all questions or if he has more questions to answer pop up with different message 'You have more questions to answer'.
    In both the cases page as to get submitted when clicked on Submit button.
    Thanks in advance
    Regards
    Sandeep

  • How to create variable in BEx on a Nav Attribute?

    Hi All,
    We are creating a report on Master data object 0MILESTONE. 0PROJECT is the navigational attribute of 0milestone.
    and ZSTATUS is the navigational attribute of 0PROJECT.
    Requirement is to create variable on ZSTATUS in BEx. How do I do that? I dont see option of creating variable on Nav attribute of a Nav attribute.
    Regards,
    Bob

    Hi,
    There is nothing as such creating variable for navigation attribute. You can only create variable directly on particular infoobject.
    In your case you are using transitivie attributes. So they can not be accesed directly in BEX query. You can only use 1st level nagivation attributes in bex query.
    [http://help.sap.com/saphelp_nw04/helpdata/en/6f/c7553bb1c0b562e10000000a11402f/content.htm]
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Feb 22, 2012 3:53 PM

  • How to create conditional text? (based on selected option, different text displays)

    Hello, and thank you in advance for any assistance.
    I need to create a .pdf with conditional text.  Ideally, the user would select (via checkboxes) certain options, and only the text relevant to those selections would be included in the .pdf.  Is this possible in Acrobat?  If so, how?  If not, what tool accomplishes this?
    Many thanks.

    Sorry 'bout that ! I was responding from e-mail and as you can see it's not working quite right. This is what I had wrote;
    Tools ? What do you mean tools ? Adobe Acrobat is your tool. :-)
    If you don't know javascript then you should entertain learning some if
    you wish to "extend" Acrobat. That's the nature of the beast.
    You may find some precompiled javascripts; but if you want customization
    then you'll either have to pay someone to do it or yeah, learn javascript.
    Check out Acrobatusers.com they have an excellent Acrobat Javascript section.
    Best Regards,
    Steve
    Message was edited by: S.D.A.

  • How to create condition in OBIEE Answer 10g

    Hi,
    I have two columns in one of my subject area table: Get_Comm_Period and Get_Period. Now I want to add a condition in one of the Answer request like below
    Get_Comm_Period <= Get_Period
    Can anyone please tell me how to do that because whenever I try to add filter it always ask me to put value, the other column name does not appear.
    Please help.
    Thanks
    Titas

    In a "Create/Edit filter" dialog press "Add" button then choose "Convert this filter to SQL" option. You will get the edit field with a string
    "Table"."Get_Comm_Period" <= Then you change it to
    "Table"."Get_Comm_Period" <= "Table"."Get_Period"and press ok.
    So it's what you want.

  • How to create documentation from BEx query

    Hi,
    I would like create documentation for each query,so that end user can get idea about particular query.
    But  I can see some documentaion from context menu(right click)->Goto->Display documentation.
    Any tips???? Points will be given.
    Thanks in Advance.
    Regards,
    Jaheer,Yanbu,Saudi arabia.

    HI Jaheer,
    Go to www.help.sap.com
    Select NetWeaver -> Select BI Content
    In the left hand panel select your appliacion components (for Example:
    Human Resource - > Recuitment -> Queries -> select any one query)
    It will disply Technical name, Based on the InfoCube, Use and what are the
    Free characteristics, characteristics, Keyfigures etc.
    Now Create one Excel Sheet.
    and create your document and show to your client.
    If your client wants sample preview, then copy this query and check in the
    BEx analyser. cut and copy that preview in your Excel sheet.
    Then the Document looks beautiful...
    Have a nice Day...
    Thanks
    Rajesh

  • How to create Universe on BEx Queries

    Hi,
       I am very new to create Universe based on SAP BW Infocubes or BEx queries. I actually need to create reports based on BEx queries. I am able to log into SPA BW using Universe connection and I see only Infocubes. Where can I find BEx queries. Is there any specific document that helps here.
    Please help me.
    Nanda

    Hi,
    You can select the queries which are part of the cubes. And make sure that the query is part of the cube.
    If still not listing then from Bex Query designer open the query from the cube and enable 'set to allow external access' in the properties of a query.
    Now, the query should be available in the Universe Designer.
    -Noor.

  • How to create hyperlink in BEx workbook?

    All, I have 2 queries in a BEx workbook on 2 different worksheets. Both queries have 0materials in the row. The user wants to be able to click on material XYZ in worksheet 1 and then be directed to the corresponding line (i.e. for that material XYZ) in worksheet 2. Is this possible to do via a hyperlink?
    Cheers!

    Cheers but a simple hyperlink will not do. I need to link to the same material number in a different worksheet. So in worksheet 1 I have for example the following lines
    Mat nr
    123
    333
    444
    555
    in worksheet 2 I have lines
    Mat nr
    904
    768
    123
    333
    444
    555
    If I click on 333 in first sheet I want to jump to the line with material 333 in worksheet 2.

  • How to Create wildcard in BEX - BI7.0

    Hi Experts,
    Can anybody give me some inputs on my query for wildcard in BEX?
    Here is my requriement below :-
    In BEx, is there a way to specify a wild card?? 
    Example: lets say I want to filter all Work Orders starting with “P”. Can I specify the filter as (Work Order <> P*).
    Your views are appreciated..
    Thanks
    surendra

    Hello
    I have done similarly like this,
    but when i executed the report, it says the CP is not supported and characteristics is numeric.
    my scenario is i want to restrict material group starting with 1L* like 1L11, 1L12, 1L13..,etc
    I have used customer exit variable.
    CASE I_VNAM.
      WHEN 'IVMATGRPL'.
      IF i_step = 1.
       L_S_RANGE-LOW = '1L*'.
       L_S_RANGE-HIGH = ''.
       L_S_RANGE-SIGN = 'I'.
       L_S_RANGE-OPT = 'CP'.
       append l_s_range to e_t_range.
    ENDIF.
    ENDCASE.
    what could be the problem?
    Thanks
    Edited by: Mohammad Usama on Jun 22, 2009 5:37 PM

Maybe you are looking for