BEx Query Formula Descriptions -- Conditional Formula

My question is in regards to the description that is returned from a formula within a structure.  The data I'm expecting is based on (for example) "fiscal year."  I have a text variable setup that returns the result of the "fiscal year" to be displayed as the column description.
However if no data is returned for the current fiscal year, I then want to display the data for the previous fiscal year.
I have a formula setup that uses a conditional statement.  It is setup as described below:
<b>Formula Description</b>
--  If data is returned based on fiscal year "2008" then use that data.
--  Else use the data based on fiscal year "2007"
<b>Issue</b>
-- I use a text variable that is based on 0FISCYEAR called <b>0T_FYEAR</b>
-- When the query is run, the data returned is correct --> (2007 data if there is no 2008 data)
-- The text variable is also used as the formula "description" which is set to "0T_FYEAR" so if there was 2008 data, the text variable would say "2008" and if not it would say "2007."
The problem resides in the text variable which is used as the formula description.  It is displaying the technical name of the text variable (&0T_FYEAR&) instead of "2008" or "2007."
Has anyone else had this occur?  I would expect that if the data coming back is correctly based on 2008 or 2007, then the text variable used for the formula description would also be set to "2007" or "2008" based on my formula condition.
Any help would be greatly appreciated and of course points will be awarded!
Kevin

Thanks for the quick response Pallavi...
That logic seems completely backwards to me...is there a reason BEx is trying to populate the text variable values BEFORE knowing what data is actually being returned? 
Also, my next obvious question:  Is there a way to get these variables populated with the correct value?  Can I force it to populate AFTER the formula has been executed so BEx knows which value to assign?
What i'm trying to do is have a Year-Over-Year (last 3 years) comparison for the past 3 fiscal quarters.  So I would compare the current quarter numbers (Qtr 1) YoY Q1/2008, Q1/2007, Q1/2006 with the previous quarter...but the previous quarter is Q4 of 2007 (not 2008).  So I cant do the same 2008, 2007, 2006 comparison.  I was hoping to move the years back one for a 2007, 2006, 2005 comparison --> Thus the need for the conditional statement. 
I hope that helps explain.  Any insight at all would be greatly appreciated.
Kevin
Message was edited by:
        Kevin Susko

Similar Messages

  • Crystal didn't show the BEx query Attributes description changes/Values

    We experiencing the BEx query attributes/crystal report  issue.
    I create a crystal report using BW- BEx query. Bex query displays the attributes values. But in crystal report side it didn;t show up the values as well as description changes.
    But If I change the display properties of attributes (different from one attribute to another) the crystal report reflect the values. But crystal report didn't show the Attribute description changes , the one i did it in BEx query side.
    Example:
                         Bex has a Masterdata as well as attribute Field1, Field2 etc.. I changed the description like Field_Test1 and Field_Test2. Also I changed the display property for Field_Test1 is Key and text and long , Field_Test2 is Text & LOng text.
    I  got the attribute values is crystal report Xi R2. But crystal didn't reflect the description changes?
    Suggestions Please?

    Post your question to the Business Object Integration Kits forum

  • BEx query characteristic description change

    Hi all,
    We have some BEx queries that we have changed one of the characteristic description - title only (by dragging the characteristic to the rows, right click, attributes, description).
    Lately when we try to refresh the queries the description that shows up is the original one.
    Only after saving the query and then execute we can see our own defined description.
    Does anyone have an idea to solve this issue for all the queries together?
    Thanks in advance.

    Thank you A J for your reply.
    I want to specify my problem:
    We have about 100 BEx queries that were designed by the same person (a top user) at the passed year and are viewed through our SAP Portal by many people every day. When the queries were designed some of the Characteristic's descriptions were change (For example: The characteristic 0MAINTROOM description was changed from ROOM to SITE in some of the queries).
    At the passed few days, we have noticed that the description at the portal is the original one (ROOM). We opened the BEx query and we saw that the 0MAINTROOM has the description of SITE . but... After that – if we execute the query (by clicking only "Quit and use Query"), the query result is with the description ROOM. Only by saving again the query and then execute - we will see SITE at the result.
    We also tried to generate all the queries by using RSRT --> Environment --> Generate Queries but with no success to solve this issue.
    Thanks again.

  • Conditional formula in report painter.

    Hello.
    I create new CO-PA report in KE31 transaction which is based on a form.
    In transaction KE35 I define the new form and in this form I want to create formula.
    This formula should be conditional. How to define conditional formula in that kind of form.
    I can also define key figure scheme in transaction KER1 but in this transaction I also don't see possibility to define
    conditional formula.
    Conditional formula means that some value fields should be summ and some value fields should be substract
    depending on the value of characteristics.
    How to solve this problem in R/3 4.6C?
    I am waiting for help.
    Best regards
    Bogdan

    Hi,
    I don't think that we can put the conditional formula. but we can do the calcualtion by row wise or column wise.
    Thanks.

  • Universe on Bex Query with Condition

    Hi,
    I'm working on creating a WebI version of a Bex Report. I've created a universe on top of the Bex Query and then a WebI report based on the Universe. The Bex Query contains 4 conditions. They allow optional filtering of two measures, Less Then or Equal and Greater Then or Equal. The conditions are applied at the employee level of the results set, so for example, if an employee's total sales is greater than 50 and the user enters 50 for the condition then none of that employee's rows of data will appear.
    A single filter was created in teh Universe containing all four conditions. I had to update the syntax as they were all brought in using Equals instead of the GreaterorEqual and LessOrEqual. I also updated the filter key to use the @Select and the correct dimension.
    In the WebI report, only the two using LessOrEqual are functional. The two conditions that utilize GreaterOrEqual will only remove individual rows, not the enter set of rows for that employee. I've set the aggregation to sum instead of Database Delegated for the two affected measures.
    If anyone has any input on how to get the GreaterOrEqual conditions functioning properly, or a workaround that will remove all rows for an employee when their sales are not above a cert number, it would be greatly appreciated.
    Thanks,
    Jeff

    Also here is the syntax for one of the filters that is not functioning properly.
    <OPTIONAL><FILTER KEY="@Select(Total Quantity of Adjustments\Total Quantity of Adjustments)"><CONDITION OPERATORCONDITION="GreaterOrEqual"><CONSTANT CAPTION="@Prompt('Minimum Quantity of Adjustments','N',,mono,free)"/></CONDITION></FILTER></OPTIONAL>

  • Usage of formulas in conditions in BEx Query Designer

    Hi guys,
    does anybody of you guys know, if it's possible to use the results of formulas in conditions? I tried it, but the result of the query was "No applicable data found", but there are data for the selection.
    When I'm defining the condition with the key figure (no restricted or calculated key figure), then the query can be executed.
    In my case, I like to define a condition based on a formula result. The value should only be displayed, when the result is greater than 30.
    Any ideas or are there any bugy in the BEx Query Designer?
    Thanks a lot + best regards,
    Clemens

    Hi Clemens,
    I have created a condition in my own system based on formula and it works perfectly fine. Please check following points in your condition change mode,
    1) Condition is marked as Active.
    2) In the block "Evaluate condition below for" you will have to select "All characteristics in drilldown Independently". If you have selected combination of characteristics then you will have to maintain proper sequence otherwise your condition will not work.
    3) In the next block when you set the condition, click on new, in the first block select your Formula from dropdown and set the proper operator in your case you will have to select "Greater than" in the next column set the value of key figure and just trasnfer it.
    Now you are ready to use the condition.
    Regards,
    Durgesh.

  • Suppress 0 in a formula field in BEx query

    How do I suppress a field value if its zero in BEx query?

    thanks.
    But where in the general tab.
    Under Display> Hide> If I select 'Always Hide', its hiding the field description also, but I just want to supress the value.
    and the formula field is part of the structure.
    Edited by: AbiUdhay on Mar 11, 2011 5:08 PM

  • Bex Formula with Condition - Creation

    Hello All,
    We need to create a formula, and the condistions are provided below.
    if (A > B) and
    if (C > (A - B)) then X = (A - B) * D
    else
    X = C * D
    else
    X = 0
    In Excel the formula is defined as,
    X = IF(A>B,IF(C>(A-B),(A-B)D,CD),0)
    Can someone provide the Bex solution for this?
    Kind regards,
    Edited by: Jith136 on Oct 6, 2011 1:44 PM

    HI ,
    You cannot use if condition in bex query designer.. instead try the same with Boolean operator in three new formulas ...
    formula1  (A > B .and. C > (A - B) ) (A - B) * D
    Formula2 (A<=B .and. c<(a-b))  C * D
    formula3  formula1+formula2...
    when you are creating formula on right pane you can see boolean operator use them to meet your requirement .. I don't have access to my server rit now so i am not able to check the same , if you feel to change operator accordingly. 
    Thanks
    BVR
    Edited by: binu v. rajan on Oct 6, 2011 6:00 PM

  • How can we remove the commas from the Formula value in SAP BW BEx query

    Hi All,
    How can we remove the commas from the Formula value in SAP BW BEx query
    We are using the formula replacing with characteristic.The characteristic value needs to be display as number with out commas.
    Regards
    Venkat.

    Do you want to remove the commas when you run the query on Bex Web or in RSRT?
    Regards

  • Message in BEx Query Designer Formula

    Hi Experts,
    I need to display message based on the value of the formula result. For Example:
    If K.F1 =<2.5 Then <Message: ODD>
    ElseIF K.F1 >2.5 Then <Message: Even>
    Else
    <Message: Determine the value>
    EndIF
    Thease above messages would be build in the formula column of BEx query designer
    Thanks and really appreciate your response.
    Regards,
    Waseem

    Hello,
    I have done the same funtionality with the help of workbook.
    May be experts can guide us how to display  messages in the formula column of BEx query designer.
    Thanks.
    With regards,
    Anand Kumar

  • BW query conditional formula

    Dear SAP Gurus ...
    I would like on a BW report create a formula as following
    If (characteristic version = B10)
    then (Formula 1)
    else (Formula 2)
    Translate in the BW language it could be something like that :
    ( 'Planning Version' == 'B10' )
    ( formula 1 )
    + ( 'Planning Version' <> 'B10' )
    ( formula 2 )
    My issue is that I don't arrive to create condition Version == 'B10' ... I have the impression that we could create condition only on keys figures value but not on characteristic value .
    The solution is it only in the user exit ? or could I resolve my issue in the query designer ????
    Thnaks a lot

    Hi,
    1)First of all define a variable(Zvar1) for 'Planning Version' characterstyic with replacement path as processing.
    2) Create a new formula in query as follows
    (zvar1 == 'B10' )* ( formula 1 )
    + (NOT (zvar1 == 'B10' )* (FORMULA2)
    1 ) FOR FURTHER INFORMATION ON CREATING A VARIABLE FOR CHARACTERSTIC WITH REPLACEMENT PATH
    refer service.sap.com/bi
    infoindex --> how to calculate with attributes of charactestics.
    2) for Conditional Calculations (IF-THEN-ELSE)
    refer
    http://help.sap.com/saphelp_bw32/helpdata/en/f1/0a5a2ee09411d2acb90000e829fbfe/frameset.htm
    with rgds,
    Anil Kumar Sharma .P

  • (Sub) formula not found error produced by BEx query

    Hi
    I have upgraded my BEx Query Designer and Analyzer to the new BI7 version.  Some of my BEx queries created prior to this upgrade do not work anymore in this latest Query Designer.  I received error messages 'The (sub) formula is not available' and 'Program error in class SAPMSSY1 method: UNCAUGHT_EXCEPTION'.  My BI7 system is currently on Support Pack 10.
    Does anyone have a clue what went wrong?
    Please let me know if you do.
    Many thanks,
    Anthony

    What happened then?
    BR
    Stefan

  • Bex Query- Use of ABAP code in Calculated Keyfigure/formula

    Dear Experts.
    I am wondering if there is any way to use ABAP in the formula editor of the Bex Query desinger.
    I have to build a report with very complex formulas (a lot of key figures, comporations, If then else ) an I think it would be easier to build all then in ABAP.
    So what I am looking for is any kind of user-exit/Badi that allows to calculate a Calculated Key figure/fomula in ABAP with the same data that is availabe in the fomula editor.
    If SAP is not providing this, this is clearlly a must for next releases.
    Thanks a lot and best regards,
    Alfonso.

    Dear Ananda.
    Thnaks for your reply, but could you please extend your answer a little bit more?
    As far as I know, Formula customer exit variables are only called once and they don´t provide the rest of the keyfigures and characteristic use in the drilldown level, so for my needs they are useless.
    Regarding IF-then-else statement in the formula, I already know about it. Actually what I am trying to avoid is to use them. In order to build my query I might need to build really big formulas with a lot of If-then-else, making it quite complex what the formula is doing. This is the reson I want to do it on ABAP.
    Please any other ideas?
    Thanks a lot.

  • BEX query formula

    HI,
        We want to write below formula in bex query, Kindly guide me, for inital(no value) i dont know what i have to use in query formula.
    if(temp = inital)
    elseif(temp>0)
    Thanks

    We can't check for SPACE, NULL, INITIAL in bex.... And the IF statement you can include keyfigure only.
    If you want to check for characteristics, then you have to go for Virtual characteristics.
    Search in the forum, you will get lot of thread on Virtual Characteristics.
    --- Thanks...

  • Using master data attribute in BEx Query u0096 formula

    Hello,
    I want to use the master data attribute (Eg. Customer master 0CUSTOMER, 0ALTITUDE (Geo Location Height)) in query formula calculation. How do I do this?
    Please help me.
    Thank you
    Subbu

    Hi Subramaniam,
    You can definately use the master data attributes in the formula calculation if that is a numeric value (logically u can use a characteristic in formula).
    for e.g Net weight from 0MATERIAL can be used through formula variable in formula but Color is a characteristic and there is no point in using that in a formula.

Maybe you are looking for

  • How get all photos from photo streams without iPhoto

    Hi to make A long story short, I lost a Hard Drive with iPhoto on it... Including all my baby's pics ... However I can still see them in the photo streams on my idevices.. First off without that Mac how can just grab all the photos off photo stream w

  • Error while viewing the PDF

    Hi, Can I get any solution to the below issues. When I open the pdf and scroll down I got the error message Could not find the Extended Graphics Stage named 'GS1'.  After this all the pages are shown as blank. And I can not able to view any content o

  • Compnant video to VGA adaptor will this work with appleTV

    I don't suppose anyone has anymore info than I do. However my TV has DVI input which is in use with my DVD player and no Component Video input. It does however have a spare VGA input and a spare YUV scart input what ever that is. eBay has lots of Com

  • Automatic app updates in iOS7:  How do you know what's been updated?

    Once you turn on the automatic/background updating of apps in iOS 7, is there any way to know which apps have been recently updated?  For example, there may be new features in an app that you would want to know about. Thanks,

  • Does the printer T770 print on card stock

    I need to know if the printer series T770 prints on card stock. If so, where can the card stock be ordered?