Formula Querying....

Hi to All,
In col A ->2 dims(Periods,Scenario).From Period dimension I'm selecting Qtr1 to Qtr4.From Scenario
Actual And Budget.
Here i need to create a formula in col B as var(Actual,Budget) for Qtr1 only.
How to do this?
Like this way i need build the report for all Qtrs(Qtr1 to Qtr4).
any ideas...?

You should be able to use 6 columns in the report build, which should expand to 12 columns on the actual report:
Column A = Periods & Actual
Column B = Periods & Budget
Column C = column[A(1)] -column[B(1)] (Q1 var)
Column D = column[A(2)] -column[B(2)] (Q2 var)
Column E = column[A(3)] -column[B(3)] (Q3 var)
Column F = column[A(4)] -column[B(4)] (Q4 var)
Is this what you want to show? There's no way to have the calculation columns (C-F) in one column only.

Similar Messages

  • Error in formula(query designer)

    Hi guys,
    I have a formula in query designer.Its showing wrong value.Cannot understand why?
    Formula:
    (-1) * (Actual.present month < Actual previous month) + 1 * ( Actual present month >= Actual previous month )
    Actual present month and Actual previous month both are selections and are also shown in query.Eevnthough,Actual Present month is equal to Actual previous month,result is showing -1.
    I checked Sign settings in Formula properties but they have right settings for 'Keep +/- sign' as it is chosen.Exception aggregation is chosen as Total.I tested by changing it to standard aggregation but its the same.
    Is there any setting I need to change.
    Thanks for your help.

    Hi ravi,
    It didnot solve the problem.In my case ..  its working for all other company codes but failing only for this company code and that too from Januari this year....
    To other authors:
    Thanks for your replies.This is existing in our Production query and for this month,it started showing wrong value...for febraury,actual month value is equal to actual previous month(January)..so it should show 1 but its showing -1. so we noticed.I havent changed anything to log out and log in and check.Also,the result should be 1,-1...so I cannot use max funtion as mentioned by Jaya.
    Any different ideas of achieving this are welcome.

  • Customer built function in new formula (query designer)

    Hi we have got a problem, we want to built our own function that we  can use for different cubes and Queries. (like Operators)
    Did anyone knows a way to develop this?

    Hello Dirk,
          Its not about the visibility in the query about the 'Selection' but when i am trying to define a formula using a selection (which has both key figure and characteristic) and a key figure, the formula takes only the key figure in the selection but doesn't involve the characteristic. So i would like to know how to define a formula using a selection which involved both key figure and characteristic.
    Thanks,
    Anjali

  • Excel formula query

    Hi
    In cell Q21
    I have this formula =IF((O21-P21>0),(O21-P21),"")
    In cell R21
    I have this formula =IF((O21-P21<0),(O21-P21),"")
    In column O
    I have cumulative totals which adds up all cells from column D:N.
    In column P
    I need to type in the actual costs.
    As it is at the moment when no figures have been typed into column P, the figures in column
    O appear in column Q. Can I change my formula so the cells in column Q appears
    as blank until figures have been entered into column P?
    Thanks
    Viv Haig

    Hi,
    Just checking in to see if the information above was helpful. Please let us know if you would like further assistance.
    Cheers,
    Tony Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please contact
    [email protected]

  • APO-DP Macro formula query

    Hi SAP experts,
    I'm having a problem in a planning book in which a negative value appears in a consumed AATP in which negative value should not occur. Because of this a customised functionality was affected. This was the formula of the macro:
    Carry Over Alloc w = MAX (AATPw-1;0) + HUB Inventory Sat w
    Thus MAX (AATPw-1;0) means that if the value is in negative, the macro will calculate this as zero? For example -150 is the value of AATPw-1, Hub inventory is 200. Thus the macro having a automatically change this -150 to 0 and calculating it to:
    Carry Over Alloc w = 0 + 200
    Please help on what MAX (AATPw-1;0) means.
    Thanks in advance!
    Raymond

    Hello there...yes you are right...the function Max(1....n) will return the maximum value in the range 1....n and so from your example if u have -150 to 0 as your interval then Max would return 0..
    Hope this helps!
    Thanks!

  • ASO MDX query in outline??????

    Trying to write a MDX query for the Account member
    Hierarchy:
    Account
    A001
    A002
    A003
    A008
    Scenario
    AG00
    AG01
    AG06
    AG08
    AG09
    Organization
    ETCE
    E023
    E024
    E070
    I need to caluculate for the Account AG08 the value should be derived from AG07 and for the same account AG08 for the Organization member "E070" the value should be same as AG09 ( i.e AG09 = AG08 )
    I writen below query at the level "0" retrival query is good but when i use the Top level query "ETCE" parent level the value in "E070" is eliminating . Query writen below
    NONEMPTYMEMBER [A001],[A007]
    CASE
    WHEN (IS([Organization].CurrentMember, [E070])) THEN
    ([A009])
    WHEN (IS([Scenario].CurrentMember, [AG00])) THEN
    (([A007] * -1)/100)
    WHEN (IS([Scenario].CurrentMember, [AG01])) THEN
    (([A007] * -1)/100)
    WHEN (IS([Scenario].CurrentMember, [AG02])) THEN
    (([A007] * -3)/100)
    WHEN (IS([Scenario].CurrentMember, [AG03])) THEN
    (([A007] * -10)/100)
    WHEN (IS([Scenario].CurrentMember, [AG04])) THEN
    (([A007] * -20)/100)
    WHEN (IS([Scenario].CurrentMember, [AG05])) THEN
    (([A007] * -80)/100)
    WHEN (IS([Scenario].CurrentMember, [AG06])) THEN
    ([A007])
    ELSE
    Missing
    END
    At Bottom level "0" results are coming as expected but Its not working at the top level Organization ETCE level Please help ????
    Thanks
    Venu
    Edited by: user13351102 on Oct 28, 2011 5:19 PM
    Edited by: user13351102 on Oct 28, 2011 6:31 PM

    Guru's any help on this ASO Member formula query ??

  • Parameter Prompting and Oracle Driver Issues

    I am in the process of testing several reports for use in Glassfish/JSP viewer.  I am in need of clarification of:
    1.  Parameters are seen - but it does not prompt the user for the parameters on initial JSP page load.  Is this normal behavior or no?  If not, could you indicate what the causes are
    2.  I have not seen a specific JAR for the CRDB_ORACLE driver - is there one available or will ojdbc14.jar suffice?  If there is a specific Crystal Oracle Jar, could someone provide the URL for file download?
    3.  One of the parameters we are using, is derived from a formula/query to the underlying database.  As a result - the JSP viewer does not display the available predefined list of options for use with that parameter.  Is this normal and if not what would be the cause/workaround for it.
    Thanks for any prompt replies (in full or in part)!
    Michael
    Edited by: mroscoe on May 1, 2009 6:46 PM

    Hi Michael,
    You can find the list of relevant jar files for oracle alongwith the versions for which they are required on the following link:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101040.html
    Akshara.

  • How to use Index, Match, or lookup for multi cell data..

    Hey all,  I'm new to using numbers (any spreadsheet really).  I can't figure out how to make this work.
    What I want to do for example is lookup a weight value in (F) by matching all the criteria in (A),(B),(C),(D) & (E).  If possible I would like my search criteria to match everything exactly except the Temp in (E).  The search temp can be warmer or greater than the temp listed. 
    I've tried using Index and Match together but I can't figure out how to match more than one valvue.  If all the other criteria is matched there should only be one weight to return.  I can match one criteria valvue but it only returns the first or last match.  I need it to match each item and return one weight.  What am I doing wrong??
    Please help, and keep it simple for the stupid me.
    Thanks

    The difficulty here is that MATCH and VLOOKUP return the values from the single row with the first match best fitting the type of match specified. VLOOKUP searches from the bottom of the column, MATCH form the top.
    I'd suggest a rearrangement of your data to allow a search with fewer steps.
    Since you want an exact match for the first four columns and a 'smallest value equal to or greater than' match for the fifth column I would suggest concatenating the values in columns A through E into a single value in a new column F inserted after column E.
    For the part of the data table shown, this concatenated value would remain the same for 13 rows, while the temperature ranges in five degree steps from -20 to +45, then a single three-degree step to 48.
    One value in those concatenated then changes, and the new concatenated value repeats for the next 13 rows with the temperature passing through the same range with the same steps.
    If this pattern is consistent (or even reasonably consistent) through the whole table. then a rearrangement of the data as shown below will greatly reduce table size and search time.
    Each distinct set of values A though D is presented on only a single row, the four values are concatenated in column E, and are followed by the temperature values, one per column, in the header row, with the associated weights for those conditions and that temperature listed across that row.
    Note: weights in row 2 (runway 13) are taken from your table. Boredom with retyping then set in, so those in row 2 (runway 31) are formula generated to present a series of decreasing weights, but bear no other relation to those in your table.
    With the table presented in this form, the search is reduced to a single OFFSET expression, with the ROW offset determined by matching the concatenated value of columns A-D of the Query table with their exact counterpart in the Data table, and the column offset determined by matching the temperature in the Query with its closest less than or equal to match in row 1 of Data.
    Formula:
    Query::F2: =OFFSET(Data :: $A$1,MATCH(A&B&C&D,Data :: $E,0)-1,MATCH(E,Data :: $1:$1,1)-1)
    Not handled: What do you want returned for temperatures less than -20 or greater than +48 degrees? As written, the formula will return a not found error for -21 and below, and the value associated with 48° for 49 and above.
    Regards,
    Barry

  • 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

  • Basic functions (high) in query formula for highest # of days past due

    Hi All,
    I hope you can help.  I am trying to create a formula in a query for FIAR Line Item Cube (0fiar_c03).  I would like to calculate the hightest number of days past due for open line items.  There is an operator 'high' in basic functions within the query formula.  Is it possible to use this?
    Regards,
    Cheryl Adamonis

    There is a workaround usind conditions.That is you can try to filter the top 10 % or top 10 after calculating the no of days past.However this way you will not be displaying complete dataset

  • 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

  • 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.

  • Can we use formula column in lexical parameter in sql query ...

    hi
    can we use formula column in lexical parameter in sql query ...
    as example
    i want to give
    select * from & c_table
    forumula
    function c_table
    if :p_sort = 1 then
    return 'dept'
    else
    return 'emp'
    end;
    c_table formula column
    is this possible ...
    i have such example in oracle apps reports
    if i try in ordinary report usinf emp table it show error ..
    how we can give formula column...
    please help me in this regard...
    Edited by: 797525 on Feb 20, 2012 9:31 PM

    thanks sir,
    iam not exactly saying select * from &c_table but some thing that like columns in select stmt also will be populated in user_parameters ,there are lot of table select.......from     mtl_demand md,     mtl_system_items msi,     mtl_txn_source_types     mtst,     mtl_item_locations loc     &C_source_from &C_from_cat
    &c_source_from and &c_from_cat formula column and there are defined at report level only ......
    pl/sql code &c_source_from is
    function C_source_fromFormula return VARCHAR2 is
    begin
    if :P_source_type_id = 2 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id = 3 then return(',GL_CODE_COMBINATIONS gl');
    else if :P_source_type_id = 6 then return(',MTL_GENERIC_DISPOSITIONS mdsp');
    else if :P_source_type_id = 5 then
         if :C_source_where is null then
              return NULL;
         else
              return(',WIP_ENTITIES wip');
         end if;
    else if :P_source_type_id = 8 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id is null then
    return(',MTL_SALES_ORDERS      mkts,
    MTL_GENERIC_DISPOSITIONS mdsp,
    GL_CODE_COMBINATIONS gl ');
    else null;
    end if; end if; end if; end if; end if; end if;
    RETURN NULL; end;
    this is forumula column i hope that you understand what iam saying
    please help me in this regard....
    thanking you...

  • Formula Created in BI Query appears in Universe as Measure with No Data

    Hi,
    I have created the universe on top of SAP BI Query(Which is built on Infoset).
    There are some formulas created in BI Query as mentioned below:
    Eg: Status1=
                        If Completion Code = null then Status1 = 0 
                        If Completion Code = =10,11,18 then Status1 = 1
          Status2=
                         If Status1= 1 and Field Completion Date <= Regulatory Due Date then Status 2 = 3
                         If Status1= 0 and Report Date <= Regulatory Due Date then Status 2 = 4
    In the Universe I get Status1 and Status2 as Measures.
    When I use these Measure Objects in WebI report, I donu2019t see any Data for these objects in WebI Report. Both the columns for Status1 and Status2 appear Blank with no data in it, although I get the data in SAP BI Query for both Status1 and status2.
    Is there any issue with the formulas to be used in SAP BI Query?
    Are Formulas supported in Business Objects from SAP BI Query?
    regards,
    Nisha

    Hi Ingo,
    I tried running the standard test MDX in MDXTEST and I got the data for those calculations.
    But I wonder why there is no data in WebI for those formulas(Key Figures)?
    In Standard test MDX the MDX Query is as Follows:
    SELECT
    [Measures].MEMBERS ON COLUMNS,
    NON EMPTY [Z_WM_IS01___F98].[LEVEL01].MEMBERS ON ROWS
    FROM ZWM_M02/Z_ZWM_M02_Q001 SAP VARIABLES
    [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Based on above Query I created the WebI report which includes the objects as described below:
    one Dimension Object Notification Number which is equivalent to [Z_WM_IS01___F98].[LEVEL01].MEMBERS  from above query.
    Selected All the measures objects available in query which refers to [Measures].MEMBERS
    And  one Prompt on Region which is equivalent to [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Why there is no data for Calculation columns (Key Figures Status1 and Status2) in WebI Report???

  • Problem with formula in the query

    HI ,
    In cube I have 2 fileds EU date and US date .
    For example :
    In cube EU date  =07/02/2008
               US date = 23/02/2008
    In the query we have a formula with these 2 fields
    formula is DUE date =  DATE ( ( 'Enter 1 = US; 2 = EU - Asia' == 1 ) * 'Due date US' + ( 'Enter 1 = US; 2 = EU - Asia' == 2 ) * 'Due date EU' )
    In the varaible screeen we have a '"Enter 1 = US; 2 = EU - Asia' == 1"
    So if u enter 1 it takes EU date and display as due date if u enter 2 it take US date and display as due date.
    Problem is :
    When we give  "'Enter 1 = US; 2 = EU - Asia' == 1"---this value 2
    in the report in some cases we get due date as 02/07/2008 instead of 07/02/2008. This is not for all records only few we get like this . and for US  due date this problem  is not there.
    Please suggest what might be the problem.

    Hi,
    Please check again the cell value because it may contain correct value but display may be different.
    You can apply the common display property fot the whole column using the workbook properties and saving the workbook.
    Regards,
    Anil

Maybe you are looking for

  • Standby in Noarchivelog mode

    Hello, Standby Redo Log must be archived before the redo data can be applied to the standby database. If we put our standby database in noarchivelog mode, then standby database does not generate any archive.Because of this Redo data wont apply to the

  • 2 Trees on the same Page

    Hi! I'm using Apex Version: 4.2.1.00.08 I created a page with 2 tree regions. Both trees use different items and different queries. The first tree is displayed correctly. But the second one just contains the first item, if I don't display the first o

  • Fact table loading

    Hi all, We have two dimensions and one fact table as Dim 1 Geography Dim2 consumer geo_id town cons_id cons_name geo_id G1 ABC C1 A1 G1 G2 DEF C2 B1 G2 G3 GHI C3 C1 G2 G4 JKL C4 D1 G2 G5 MNO C5 E1 G1 C6 F1 G1 Fact FACT1 FACTI_ID GEO_ID CONS_ID F1 G1

  • How to create subfolders?

    Hi, Is it possible to create subfolders in the web gallery? How is that done? Thanks!!!

  • Help. Connecting Slingbox to Apple Airport ExtremeG wired to AEBSn to Cable

    Ok guys I need your expertise here. To make a long story short this is what i have. Cable modem to Apple Extreme N- and to Apple Extreme G through gigabit port. What i want to do is hookup the Slingbox Tuner to the Apple Extreme G through the single