Using a calculated field

Hi
I am using a calculated field and show it in the “view”. I can’t change it without removing all the calculated fields shown in the “view”, only removing them all I can do it and afterwards I have to put them all back
This is problem?
Alexandre

When you go to Report | Group Sort Expert | then choose Bottom N for the sort you only have four "based on" to choose from and they are ALL simple SUMs (summary fields).
No running totals are available for TopN or BottomN due to the evaluation time of running totals.  Your formula (@OEE %) isn't available as it utilizes the {Total QTY %} formula and it utilizes group sums.
Basically, as I said before, one may ONLY do TOP or Bottom N's on simple sums (summaries) of values that exist in the detail section or are calculated WITHIN the detail section.  So for example, if you have a ITEM COST field and a ITEM TRANSPORTATION COST field and are grouping on customer and you want your top ten customers for total cost you can do a formula (IN THE DETAIL SECTION) that adds the ITEM COST and the ITEM TRANSPORTATION COST then you can insert a summary on that formula for the Customer group footer....then you can do a TopN or BottomN on that summary value.
But if you're calculating percentages you would have to grab totals from the report footer or group footers for the calculation to get the percentage.  The fact that this is being done eliminates that value from the list available in TopN or BottomN.
Again, the only other possible method would be to write a stored procedure that pulls the values in (including percentages) then report off the stored procedure.

Similar Messages

  • What is better to use a calculation field or to use stored procedure

    Dear All
    i want to know what is better to use a calculation field on oracle forms , or to do the calculation using a stored procedure at the data base level and fetch the results to the fields on the form
    Best Regards

    Hello Mohannad
    the stored procedure approach might be more readable and maintainable when the calculation gets complicated.
    And it might be easier to reuse when it's needed in another part of your application.
    Bernd

  • Creating and using a calculated field in business rule from the currency conversion of another field.

    Hello,
    I'm creating a calculated field with a set currency for a business rule. I'm planning to use it as a deficiency criteria. I want the values to come from the currency conversion of another field. Can someone provide me the step by step procedure on how to do it?
    Some documents would be great.
    I've been trying to do it on my own but I've gotten lost.
    Thank you.

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

  • SSRS Using WHERE in a calculated field

    Hi All,
    Im having a real issue with something that seems like it should be easier than it is.
    In my tablix I want to add the expression =Sum(Fields!ID20.Value)-Sum(Fields!ID20.Value) BUT I need to determine if another criteria is met.
    EG - I want =Sum(Fields!ID20.Value WHERE [InOut]="In")-Sum(Fields!ID20.Value WHERE [InOut]="Out")
    Many Thanks for any help

    Hi LB79,
    In Reporting Services, Aggregate functions cannot be used in calculated field expressions, since the data for calculated fields will be based on individual rows not on group basis. As a workaround, we can directly add the expression to a textbox of the tablix
    instead of using that calculated field. For detail information, please refer to the following steps:
    Right click the text box which you want to insert the calculated field, then click Expression.
    In the Expression text box, refer to the following expression:
    =sum(iif(Fields!InOut.Value ="In", Fields!ID20.Value,0),"DataSet_name")-sum(iif(Fields!InOut.Value ="Out", Fields!ID20.Value,0),"DataSet_name")
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Using a "Sum" Calculated Field on a "Count" query column?

    Here's my query using the Query Report Builder:
    SELECT Col1, COUNT(Col1) AS Count_Column
    FROM Table
    GROUP BY Col1
    It generates a report that lists all the values of column
    "Col1" and how many times each value was used in Col1
    For instance, if Col1 contained the value 'A' 12 times, 'B' 6
    times, and 'C' 19 times, the report would generate this:
    A - 12
    B - 6
    C - 19
    What i need as a column footer is the total count of all the
    values, which in this case 12+6+19=37
    I am using a calculated field, setting the data type to
    Double, the calcuation to Sum, and the perform calculation on to
    'query.Count_Column'. Reset Field When is set to None.
    When I run the report, it doubles the last number in the
    report's Count column (19) and displays 38 on the page. I tested
    this with another column and it doubled the last number in the
    report as well.
    How can I get it to properly Sum my Count_Column?

    Hi,
    You need to check note 208366.1 which explains why totals can be blank. Without knowing the detail of you decode function it is hard to say what needs to be changed. Try putting a sum in front of the decode e.g.
    sum(decode(period, 'Jan period', value, 0))
    Hope that helps,
    Rod West

  • Use calculated field(s) in other report

    Hi everyone,
    Is there a way to use a calculated field by itself in another report? I don't want to insert a sub report because it takes up too much space.
    I just need to use few fields in other calculations in the new report.
    Thank you

    The only way I can think of doing this without subreports is to save the values in a database somewhere.  In order to do this, the values would have to be calculated in the report's SQL Command data source.  (I'm guessin' that's probably not what you're looking for, but using subreports is the only other way I can think of...)
    HTH,
    Carl

  • Trouble when attempting to Sum Calculated Field.

    I had to create a calculated field called RI_Limit which contains static data.  (Developers/DBA could not enter it into the database at this time, so this was a work around. 
    The calculated field is setup as such:
    =iif(Fields!Location_LOCATION_NAME.Value = "a", 8, iif(Fields!Location_LOCATION_NAME.Value = "b",2, iif(Fields!Location_LOCATION_NAME.Value = "c",0, iif(Fields!Location_LOCATION_NAME.Value = "d",0, iif(Fields!Location_LOCATION_NAME.Value = "e",1, iif(Fields!Location_LOCATION_NAME.Value = "f",1, iif(Fields!Location_LOCATION_NAME.Value = "g ",0, iif(Fields!Location_LOCATION_NAME.Value = "h",0,iif(Fields!Location_LOCATION_NAME.Value = "i",4,iif(Fields!Location_LOCATION_NAME.Value = "j A",0,iif(Fields!Location_LOCATION_NAME.Value = "k",0,iif(Fields!Location_LOCATION_NAME.Value = "l",7,iif(Fields!Location_LOCATION_NAME.Value = "m",0,iif(Fields!Location_LOCATION_NAME.Value = "n", 1, iif(Fields!Location_LOCATION_NAME.Value = "o",0, iif(Fields!Location_LOCATION_NAME.Value = "p",1, iif(Fields!Location_LOCATION_NAME.Value = "q",3, iif(Fields!Location_LOCATION_NAME.Value = "r",1, iif(Fields!Location_LOCATION_NAME.Value = "s",1, iif(Fields!Location_LOCATION_NAME.Value = "t",3, iif(Fields!Location_LOCATION_NAME.Value = "u",5,iif(Fields!Location_LOCATION_NAME.Value = "v",0,iif(Fields!Location_LOCATION_NAME.Value = "w",0,"NA")))))))))))))))))))))))
    and I setup a textbox with that expression and the numbers fill in correctly with its cooresponding site name.
    However, when I go to sub total or total, I get a much larger number than expected. (See screenshot)
    I have searched the internet on a way to calculate both the total by Location Level 2 and LOB total, but nothing that pertains to the specific issue where by calculated field contains static data.  Nothing I try produces an accurate sum.  Any suggestions?

    Hi Katherine,
    Sorry for taking a few days to reply.
    I tried the suggestion, but it it still not summing my calculated fields.  The total row will calculate my other cells okay but not the calculated fields that I had to add to the report.  When I attempted to write an expression to sum the calculated
    fields I get the following error message. 
    The expression used for the calculated field '=sum(iif(Fields!Location_LOCATION_NAME.Value = "test", 8, iif(Fields!Location_LOCATION_NAME.Value = "test1",2, iif(Fields!Location_LOCATION_NAME.Value = "test2",0, iif(Fields!Location_LOCATION_NAME.Value = "test3",0, iif(Fields!Location_LOCATION_NAME.Value = "test4",1, iif(Fields!Location_LOCATION_NAME.Value = "test5",1, iif(Fields!Location_LOCATION_NAME.Value = "test6 ",0, Fields!Location_LOCATION_NAME.Value = "test7",0,Fields!Location_LOCATION_NAME.Value = "test8",4,Fields!Location_LOCATION_NAME.Value = "test9",0,Fields!Location_LOCATION_NAME.Value = "test10",0,Fields!Location_LOCATION_NAME.Value = "test11",7,Fields!Location_LOCATION_NAME.Value = "test12",0,Fields!))' includes an aggregate, RowNumber, RunningValue, Previous or lookup function. Aggregate, RowNumber, RunningValue, Previous and lookup functions cannot be used in calculated field expressions.
    The Espression for the calculated field I am attempting to sum is the following:

  • What is a Calculated Field?

    Hi,
    I have an assignment which requires me to use a 'calculated field' in a query.
    Despite searching and looking in the books I have, I find no reference to the term.
    I'm guessing that it may mean something like:-
    WHERE CUSTOMER.CustomerID > 3 * min_orders
    The " 3 * " being a calculated field.
    Is this it? Or does it mean something else?
    Many thanks for any assistance.

    This question has nothing to do with the Installation forum....
    Post this to the appropriate forum (Forms , Discoverer forum ..to name some).
    Greetings...
    Sim

  • Model Binding and Calculated Field Syntax for "class" Attribute

    Hi,
    I tried to use the calculated field syntax from SAP UI5 to change the CSS class attribute of an element based on some model property, i.e., I wanted to change the class in the corresponding formatter function based on the currently bound value. However, my formatter function is not called. When I use the same syntax on a text attribute, it works.
    I also tried to use normal property binding, but it did not work on the class attribute either (it just put class="{property}" in the rendered HTML).
    Is there anything I missed or is it just not possible to use property binding and calculated field syntax for class attributes? Did anybody try something like this before?
    I think it is a standard use case to change the CSS class based on some model property. So, if anybody knows how to do that, could you give a short example?
    Best regards
    Svenja

    They have a class property. At least, I can do the following in an XML view:
    <Button
                  icon="sap-icon://add"
                  press="onButtonPress"
                  class="my-button-class" />
    I would expect the following to work as well, but for me it did not:
    <Button
                  icon="sap-icon://add"
                  press="onButtonPress"
                  class="{/customClass}" />
    This renders the following HTML (cropped to the important parts):
    <button type="button" class="sapMBtn {/customClass}">
    </button>
    It seems like the class attribute is something special although I don't see a reason why. Other HTML templating engines, for example, support things like that.

  • Calculated Field is Disable while using PowerPivot to access multiple sheet column in a single pivot,

    Hi,
    I am trying to add a calculated field in my power pivot table to show the percentage on the basis of 2 columns, please let me know why this is not appearing and how can i fix it.
    Any other way if i can add a calculated field in the pivot table will be very helpful.
    Thanks
    Aman

    Thanks KR for the response,
    Yes I loaded multiple tables in the data model and using PoewrPivot ,
    i have a rating column, in that i have 0,1,2,3,4,5 rating numbers and we call it "Total expected occurrence",
    a single person can get same rating multiple times, if a person is getting >=4 rating no. we call it "Occurrence >= 4". now i have to find out the total
    count of "Occurrence >=4" for a particular person from "Total expected occurrence" column,
    once will get the  net "Occurrence >=4" for everyone, it should divide
     "Occurrence >=4"/ "Total expected occurrence" to take out the percentage of rating 4 for a particular person  
    Best Wishes,
    Aman verma

  • Can I create calculated fields using formscentral on a locally created, fillable PDF form?  If so, how?

    I am using Acrobat XI Pro to build a fillable PDF form that can be used by customer who have Adobe Reader installed.  I would like to create calculated fields, including the summation of two or more currency fields and the product of a currency and number field.  The procedure for creating these escapes me.  Does anyone have any insight?

    Hi Gilad,
    thankyou! - yes it seems though I was using the text tool when I had this problem: When I had created a few fields in the 'form edit' mode I then may later have added some normal 'comment' fields of text in the normal mode to highlight certain aspects on a form - I used the text tool thinking that was the right way in to add or edit text - I can now see I double click with the hand tool to still be able to access any text field I want to. Yay!
    Many thanks for your kind assistance - I shall try this method later on a new form I was trying to create and which was giving me grief.
    One last thing then: what is that default text field that can't be deleted actually for - why is it there? After all, a 'blank pdf' should surely be a truly blank pdf? Perhaps this is one for mighty Adobe....?
    Kind Regards,
    Pete

  • Using Calculated Field in Multi Value Field

    In Siebel Application
    Sales Order---> List
    There is a field call "Sales Rep" which displays an "USERID" of Order Sales Team Mvg Applet.
    But We want to display the Last Name and First Name (combined).We got the first and last name using calculated field (Active Full name).
    When I try to get the full name, the system display the name based on the "Primary position", if I step out of the particular row and come back again
    Is there any way to display the full name without step out any rows for Sales Rep field

    Your description is a little confusing. For performance reasons it is always best to set the use primary join on multi value links. This means that when multi value fields are displayed in applets they always show the primary by default. If you want to display something other than the primary what is your rational behind this and why not make the record you want to display the primary?
    Message was edited by:
    Richard@AXA

  • Using AGO function in calculated fields in Analysis

    Oracle BI 11g.
    Hi!
    I have time-hierarchy and try to use function Ago in calculated fields. I created Analysis and add columns Year, Revenue, Revenue (1 year ago). In formula of column "Revenue (1 year ago)" I wrote:
    AGO("Sales"."Revenue", "H Calendar"."Year", 1)
    "H Calendar"."Year" - is level in my time Hierarchy "H Calendar".
    But when I clicked [OK], I got error: [nQSError: 27037] Unresolved level: "H Calendar"."Year".(HY000)
    What I do wrong?

    Hi,
    I think it's a bug, try this.
    If Analysis you have a time folder with this object dimension:
    Time Hierarchy
    Total Time
    Year
    Quarter
    Month
    Week
    Day
    And a measures 1- Revenue try to calculate the criteria like this (write in the level the formula "Time"."Time Hierarchy".Year)
    For example:
    AGO("Base Facts"."1- Revenue", "Time"."Time Hierarchy".Year,1)
    If you have the sample sales of the 11g installed try this on A - Sample Sales
    SELECT s_0, s_1, s_2 FROM (
    SELECT
    0 s_0,
    "A - Sample Sales"."Time"."T05 Per Name Year" s_1,
    AGO("A - Sample Sales"."Base Facts"."1- Revenue","Time"."Time Hierarchy"."Year",1) s_2
    FROM "A - Sample Sales"
    ) djm ORDER BY 1, 2 ASC NULLS LAST
    For me it works.
    Regards,
    Gianluca

  • Answers - would like to use calculated field's name, not expression

    Hi Everyone,
    I'am trying to make several calculated fields in a single query in Answers. Each field references the previous one, and the expression of the first one is already 5 rows long.
    Now I reference it in the second calculated field by using "Edit Formula" -> "Column" -> 'Colum name'.
    My problem is, that it puts the expression of the previous field, not it's name. I have to use it for almost 10 times in this single expression, so -although it works fine- it is totally unreadable, and very hard to debug for example.
    And after all, I should use this field again, in several next calculated fields.
    Does anyobody have an idea, how to make calculated fields having only the name of referenced other fields in it?
    The repo is set for ad hoc reporting also, so using session variables which need to be set in Administrator Tool, is not an option.
    Thanks for help in advance.
    Tom
    Message was edited by:
    user608765

    Hi Venkat,
    thanks for the response. It would work, no doubt, in this special case, the problem is, that users use the repo for ad-hoc reporting aswell (and they don't have access to repo administration of course), so one can count on it, that there would be a new request of this kind every day to change the repo with customized user variables. I would like to avoid this of course.
    Having the name of a referenced field in a new expression would be a simple solution. Is it possible, that it can't be done?
    Tom

  • Problem faced when using calculated field as filter

    Iam using an Oracle External Data Source.The external table contains a timestamp field and I add this to my data object.The year,month etc. functions work well on this field and results appear on list views.But when I try to generate a filter for this field and display the view I get errors.
    SQLSYNTAXERROREXCEPTION_REPORTSERVER_STREAMINGLIST_INITIALIZE
    Exception Message ORA-00904: "MONTH": invalid identifier
    So,I tried out with the call center data object found in bam samples.This had a datetime field.Filters on calculated fields work fine here.
    Is the former problem due to timestamp datatype or external datasource or anything else?
    Thanks,
    Raghuram

    Answer to following questions will help me narrow down the problem:
    1. Which version of BAM are you on - 10g or 11g?
    2. What condition are you using in filter i.e. "is equal to", "is less than equal to", "is like"...etc?
    3. In which format is the timestamp data being given in the filter? (by format, I mean mm-dd-yy HH:MM:SS etc)
    4. Can you give the exact datatype of the DB in which this timestamp data is stored?

Maybe you are looking for

  • Cannot browse to actual photos in finder but all there when I launch iPhoto

    Trying to browse to photos to select for misc. uploads to other sites. When I browse in Finder => Pictures => iPhoto Library , I see the iPhoto Library icon, but when I click, it just launches the program versus displaying the folders with the pics i

  • BADI on Opportunity saving

    Hi all, is there someone that can help me about a badi on opportunity saving ? Look, i just used "CRM_OPPORT_H_BADI" definition, but this enhancement in not valid for all fields....i mean, that badi doesn't called everytime you modify a field, but on

  • Cant export to a Quicktime movie! Export fails.

    Im trying to export to a Quicktime movie. I keep getting the error message, "Operation could not be completed. OSStatus Error -9459." I got the export to work once and since that I keep getting the error message and failure. The slide show originally

  • Se Desincroniza Video y Audio en Encore CS5.5

    Mi problema es como dice el titulo, cada vez que importo una pelicula formato avi como linea de tiempo me desincroniza el audio con el video. Cuando ejecuto el avi en el media player todo esta sincronizado perfectamente, ademas son peliculas que ya l

  • [SOLVED] Troubleshooting slow wireless [ath9k/samsung r540 laptop]

    I'm working to resolve an issue I've been experiencing on my laptop. My wireless internet is unacceptably slow- here are some test results via speedtest.net- [arch/kde/konqueror]: 1. ping: 19 ms / download speed: 2.22 mbps / upload speed: 0.18 mbps 2