Need to use Formula to add a formula

Hello Experts,
In one of the requirement, I wrote a formula to calculate Level  from the Hierarchy of a particular Dimension.
Now, I need to prompt user input for the 'Level' and filter the report comparing "Prompt Level" and "Calculated Level". Im getting an error while writing the formula for this "This filed can be only used in a print-time formula".
What can be the reason? Any alternatives for this? Any help appreciated.
Regards,
arjun

Hi Arjun,
Well, HierarchyLevel, GroupingLevel are all Crystal functions and they cannot be used in selection formula to filter the records off. The records will be there so the only thing you can do is suppress the groups.
So let's say the user selects 2 as the Input Level, what do you want the report to show? The groups with HierarchyLevel <2 or =2 or > 2? Whatever the condition is, you should be able to refer the formula in the Suppress condition for the Group.
So, you could perhaps write a suppression formula like this:
HierarchyLevel(GroupingLevel(<Dimension>)) < 2
This will suppress all the groups with HierarchyLevel less than 2.
Hope this helps!
-Abhilash

Similar Messages

  • Hi, what formula would I need to use to show current age?

    I'm not a big numbers user and have very little concept of how to use it.
    What I need is a formula to calculate an age in years and months based on a date of birth in a previous column.
    Many thanks in advance for your help.
    Kate

    Kate,
    You can use the DATEDIF() function which will return the difference between two dates (selectable what the return units are as "Years", "Months", "Days", etc).  Then compute the age in years and months.
    I suggest a method where you compute the age in months, then translate that to years and remaining months as follows:
    cell B2 = DATEDIF(A2, NOW(), "M")
    cell C2=INT(B2/12)& "Y "& MOD(B2, 12)&"M"
    select cell B2 and C2, then fill down.
    the formula in Cs is broken down as follows...
    -  the "&" operator concatenates the things on the left and right (that is it connects them into a single thing
    - the INT() function computes the integer value of the division which will be the whole number of years
    - the MOD() function is modulo and returns the remainder os B2/12
    I hope this helps

  • Using formula in Print Design Layout

    I need to use the formula fields in teh print design layout procedures. I would like to create a field which displays a content conditioned on another field. IF-THEN-ELSE
    suppose Field_88 needs the formula
    IF(Field_87=="mom") THEN display "Hi Mom" ELSE display nothing
    Regards
    Henrik Lyder

    Henrick,
    You are on the right path.  From what I understand about your requirement I am giving below the steps.
    Step1:  Add a formula field and in the Field Properties window of that field in the Content Tab.  Reference the field whose Value you are checking.
    Let us suppose Field_89 is your new formula field and in the Contents Tab you will have Field_87=="mom". 
    NOTE:  There is no need for the <b>IF</b>.  Just <b>Field_xxx=="value"</b>. 
    Now in Field_88 properties in the General tab select Field_89 as the <b>Link to</b> field.  When you do this if the Formula in Field_89 is TRUE then this field will appear.  If you want <b>Hi Mom</b> to appear then define Field_88 as a Formula field too and in Content tab set function  <b>Concat("Hi ",Field_87)</b>
    Let me know if you have questions
    Suda

  • How to use FORMULA in ABAP for calculation

    hi all,
    i have to do some calculation in my report and because of this reason i want to use formula. Could any body tell me the best way to use of formula for calculation purpose in ABAP or any other way?
    Thansk,
    abapfk
    Moderator Message: You don't need to open a thread to know the answer for this basic question. A simple search or using ABAP Help will help in getting the answer.
    Edited by: kishan P on Oct 4, 2010 11:20 AM

    There is another option to do the same thing.
    What can be done is, create running total. You can create running total from field explorer by right clicking and then new. Create Running Total Field dialog box appears. In that, provide the following:
    i)     Field to summarize - provide the field to maximize (i.e. id)
    ii)     Type of summary u2013 Maximum
    iii)     Evaluate u2013 On change of field (provide the name)
    iv)     Reset u2013 Never
    Keep this Running total field on the details section and suppress if you do not want to show it in the details section. Place this field wherever you want in the report.
    Hope this helps you. Let me know your comments.

  • How to use formula variable in customer exit

    Hi all,
            I just want to use formula varible in customer exit
    For eg,
             I have created formula variable with user manual lnput eg: ZFM_V01 = 30
    Another char variable  with user manual input eg: 0keydate = 28/02/2011
    Required output,
    I just want to read my ZFM_V01 value in customer exit
    Result = 0KEYDATE - ZFM_V01
    EG:
    result = 28/02/2011 - 30
    Required result = 29/01/2011
    Kindly guide me how u get formula varibale value into customer exit(CMOD) and find the required result. please help me.
    Thanks & Regards,
    R. Saravanan

    Sorry, Bhanu,Ashwin need more info
    As my understand ::
    Function module RSW_CURRENCY_TRANSLATION uses the following parameters
    Import parameters
    I_CTTNM : Currency translation key (optional)
    I_AMOUNT: Amount in source currency  (not optional !!) (data type: floating point !!)
    I_SCUR : Source currency (optional) I_TCUR : Target currency (optional)
    I_TIME_IOBJVL : InfoObject for determination of the time reference (optional)
    I_SCUR_IOBJVL : InfoObject for determination of the the source currency (p.eg. 0COMP_CODE) (optional)I_TCUR_IOBJVL : InfoObject for determination of the the target currency (p.eg. 0COMP_CODE) (optional)
    I_PERIV : Fiscal year variant (optional)
    I_RATE : Exchange rate (optional)
    Export parameters
    E_AMOUNT : Amount in target currency (data type: floating point !!)
    E_RATE : Exchange rate
    E_SCUR : Source currency
    E_TCUR : Target currency
    I created a Currency key(ZXX) which takes CAD and converts to GBP on Planned Exchange rate (P) with time reference 0CALMONTH.
    In my case :
    Currency Key : ZXX (Confused here)
    Source Curr :CAD
    Target Curr :GBP
    I need a Variable ,which takes time reference and gives back the exchange rate .
    ,,I am I missing some thing ?
    Sudh

  • Possible to use formulas in chart series data?

    Hello, I need to build chart series from manual values. This is possible but Excel accepts only raw values. When I try to use a calculated value, excel rejects the series format.
    =SERIES("Supply";(Sheet1!$A$97;Sheet1!$H$47);(Sheet3!$B$10;Sheet3!$B$10);4)
    is accepted. I need to adjust it to something like
    =SERIES("Supply";(DATEVALUE("31.12.2014");MAX(Sheet1!A:A;Sheet1!H:H));(Sheet3!$B$10/365;Sheet3!$B$10/365);4)
    this however doesn't fit. Does Excel provide a format for inline evaluating without need to use auxiliary cells?

    It is not possible to evaluate formulas within a Series formula. You can use Names to calculate individual values from formulas, return an array of values or use a dynamic Name to return an array of cells and use Names in Series formulas.
    However for your purposes I don't think even use of Names would help; from your first example your formulas return multiple cell areas (albeit only one cell in each area) and your second example aims to return an array with each formulas calculating each
    element, you'd need a Name of Names which I don't think would work.
    Even if you could do it the way you want I think it would be a bad approach. Why not make use of cells, there's no shortage of them and it would make things much easier for maintenance.
     

  • Need help adjusting formula on time sheet

    I am using this formula to show OT hours worked based off N21 being the total hours for the day. It needs to use the DUR2HOURS or it doesn't work properly.
    =MAX(DUR2HOURS(N21)-8, 0)
    I have another cell to calculate double over time, which is anything after 12 hours.
    How can I adjust the above formula to show the OT hours but not the DOT hours?
    Thanks in advance for any help!!!

    For the specific case of the duration in N21, the above expressions would be:
    Standard Pay...
    =DUR2HOURS(MIN(N21, "8h"))
    OverTime...
    =DUR2HOURS(MIN(MAX("0h", N21−"8h"), "4h"))
    Double OverTime...
    =DUR2HOURS(MAX("0h", N21−"12h"))
    Jerry

  • Linking using formula column

    I've tried several ways of doing this, and this seems to be the easiest way. Basically, depending on the type of record, I need to use one of two columns to link to another query. So, if a row in query A has type 1, I need to use column X to link to query B. If a row in query A has type 2, I need to use column Y to link to query B.
    I thought the easiest way to do this would be to create a formula column in Query A that was the value of column X or Y as appropriate and then link to Query B using this formula field. However, I can't seem to link queries using a formula.
    Does anyone have any ideas how I can accomplish this? I'm new with Oracle reports, so go easy on me :)
    Thanks,
    Julie.

    What error are you getting?
    Is it: REP-1297: Data link child column 'CF_1' must be a database column?
    If so, the reason is the child column cannot be a formula column. The parent column, on the other hand, can be a formula column.
    If I understand your data model correctly, "A" is your parent query/group and "CF_1" is the formula column in query/group "A".
    "B" is your child query. "FK_1" (the foreign key column in query "B") is your child column.
    You should be able to link "CF_1" in "A" to "FK_1" in "B" by doing:
    - click on the link tool
    - click on "CF_1" in "A"
    - drag to "FK_1" in "B"
    - A link should be created. Double click on it to bring up the property palette for that link and you'd see the link properties.
    Hope that helps...

  • Filter using formula

    Hi everyone,
    I m in need to use a filter with a formula and I m not being able to do it. The situation I have is I have a DO that I use as lookup and there is all my "integrators", so the case is I need to have in this filter only the integrators that have the word M4U on it. Well the second problem is having only these M4U in my dropdown filter option if I choose ALL how do I filter in my main DO only the records that have the word M4U on it?
    I thought something like this:
    If(pSelectIntegrador = "ALL") Then ("M4U") Else (pSelectIntegrador)
    where pSelectIntegrador it is my parameter that I create at parameters, but it didint work. Any help?
    Thanks
    Mario Mesquita

    Hi cleglik,
    Thanks for trying but this solution didint work. Because I get a message saying that pSelectIntegrador it is not a field, and in fact it isnt, pSelectIntegrador it is a parameter and I couldnt find a way to use parameter in this case.

  • Need to create formula '%GT' on Bex or Universe.

    Hi all,
    WE have a Bex query which uses formula based on function "%GT" [SUMGT].
    Thus, external access cannot be enabled for the query & universe cannot be built on it.
    Is there any wasy to create/calculate the formula %GT on BI side or at Universe?
    We need to create WEBI reports on this.
    Many Thanks.

    lakshman all your queries are answerd??with out any replys i can see answered...
    If you know the sol..please update the solution and as well as close as solved..it will be helpful to others
    Regards
    Srini

  • How to use formula in enterprise custom field "Work" or "Cost"

    Hi there,I am using MS Project 2010 and I am looking for a way to customize enterprise
    custom field such as "Work" and "Cost" field where I was to use a formula (eg: Number1+Number2).
    I came to know I need to use VBA to perform that task.Could anyone please suggest if there
    is any way I could do that.I will really really appreciate your advice.Thanks in advance.

    robeenclarke,
    On the surface it might appear that it would be easy to look at the Start and/or Finish fields of a manual task and see that it is blank, but in reality it isn't so easy. The blank field you see is a view presentation only. Internally Project does in fact
    have a default date in those "blank" fields and that's the date you see when you query the date using VBA. If the Start field of a manual task is blank, then internally both the start and finish dates of that task take on the Project Start Date.
    If the Start field of a manual task has a date but the Finish field is blank, then internally the finish date is the same as the start date. And to make it even more interesting, the internal finish date of a manual task will track with the duration and/or
    the Work field.
    So the bottom line of this is, "what you see is NOT what you get". Certainly some assumptions could be made based on the above and those assumptions could be integrated into a macro to populate the "blank" Finish field but I wouldn't
    say it would be foolproof. If you have some very defined characteristics for those tasks with a blank finish date (i.e. also no start date, and/or no duration, and/or no work), and those characteristics are consistent throughout your whole file, then a simple
    macro could be developed.
    With respect to the "If Not t is Nothing Then" statement. The purpose of that statement is to avoid a runtime error is the file has blank task lines. Some users like to visually separate parts of their plan by inserting blank task lines between
    major sections, so a good practice when writing Project macros is to always include that statement in the loop.
    Update: However, after writing all the above verbiage, I believe I may have a workaround. As it turns out, even though you can't directly query the Start and/or Finish field of a manual task, you can transfer that blank string to a text field and then query
    that text field, so you can get there from here with an extra step.
    Try this process. First customize the Text3 field with the following formula:
    Text3 = [finish]
    Now run this macro:
    Sub SetFinishDate()
    Dim t As Task
    For Each t In ActiveProject.Tasks
        If Not t Is Nothing Then
            If t.Summary = False And t.Manual = True And t.Text3 = "" Then
            t.Finish = t.Date1
            End If
        End If
    Next t
    End Sub
    John

  • Is there any way to change waveform generation using formula with user defined formulas

    Hi,
    I need to build a VI that has in input a formula (Exen(w*t)) and output a waveform.
    The waveform generation using formula.Vi that comes with labview has Defined formulas and theu are not dinamic I don't want that.
    I try to change with a text control but VI dont generate the graph.
    Can someone help me with this please?
    Best regards
    Ricardo
    Attachments:
    test.vi ‏18 KB

    Hello.
    If you want to change your formula with a textbow, you can use the Eval Formula Node.vi if you have a full version of LabVIEW.
    see http://digital.ni.com/public.nsf/allkb/C5DBAA3A788​271EE86256B02007DD6B3?OpenDocument
    Best regards

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

  • I need to use a Driver Version 1.4 for my my Sharp printer.  When I add the printer, it is driver version 1.3?

    I need to use Driver Version 1.4 for my Sharp printer.  When I add the printer it says Version 1.3?

    Have you asked Sharp whether they have a driver that is Mavericks compliant?

  • Using Formula in Pages Table (Syntax error)

    I thought this would be simple, but I get a syntax error:
    My Table
    Date Start Date End Bytes Redo Rate (Mbps)
    20/06/2010 11:00:00 PM 21/06/2010 03:00:00 AM 850,648,576 0
    21/06/2010 11:00:00 PM 22/06/2010 03:00:00 AM 561,487,360 0.4456
    22/06/2010 11:00:00 PM 23/06/2010 03:00:00 AM 486,454,784 0.3860
    23/06/2010 11:00:00 PM 24/06/2010 03:00:00 AM 1,239,929,344 0.9840
    24/06/2010 11:00:00 PM 25/06/2010 03:00:00 AM 1,365,600,256 1.0838
    In the Redo Rate column I want a simple formula: ((C2/0.7)*8)/1000000
    The current value in the last column I hand calculated, but the 0 (zero) is where the formula is supposed to be.
    I enter it using Formula Editor as: =((C2 / 0.7) * 8) / 1000000 -- and there is the syntax error...
    Can someone please help me... this was supposed to be simple...
    Using Page '09
    Thanks in advance for your attention and replies.
    Andries

    Here it behaves flawlessly.
    I inserted the Bytes values without the thousands separators then applied the separators.
    I'm running a French system so I can't test the behaviour of the English format.
    I'm not sure that you are allowed to enter the commas by yourself.
    Check if the cells are deciphered as Numbers.
    I guess that they are treated as text.
    Yvan KOENIG (VALLAURIS, France) mercredi 30 juin 2010 14:06:38

Maybe you are looking for

  • SSO for JDeveloper application -- how?

    Hello, I am developing a servlet with JDeveloper & Struts, and I am curious whether it is possible to configure SSO and JDeveloper so that when I DEBUG the project and the embedded OC4J server starts, my application gets protected by the Single-Sign-

  • How big of a hard drive can I use?

    Hi Folks, I would like to upgrade as the 160Gig drive I have is plum full.  How big can I go in a T41,, 500, 650, 1T?  Am I at the limit now? Thanks!

  • Unable to store data into the Table(R/3)

    Dear All, our requirment is to store few records into the Table in R/3. We have update RFC which takes input arguments as AbstractList , the following is the code used to store data in the table(R/3) Zhr_Update input = new Zhr_Update(); AbstractList

  • In design download

    I am having trouble downloading Id what's up? first it wouldn't load then I have IdCC(64bit) and IdCC What's the difference did I load it twice?

  • Itunes ne voi pas mon ipod

    itunes ne voi pas mon ipod et je c plus koi faire , jai essaye plusieur truc quil dise ici mais rien ne fonctionne