Cannot summarize my calculated field(number)

Post Author: bwebb
CA Forum: Formula
I am using Crystal Reports XI  version 11.5.3.417
My calculated field formula is:
IIF({bw_spread.fy_period}=totext(dateadd("m",3,{@max_data_date}),"yyyy.MM"),{bw_spread.actual_cost},0)
bw_spread.fy_period (string) and typical data = 2008.04
@max_data_date (datetime) and gets 3 months added, then turned into text in the same format as fy_period
bw_spread.actual_cost(number)
It takes a text field that has the Fiscal Period and compares it to the a Date that has been re-formatted as text, then returns the actual cost if they are equal else zero.
The formula works and returns a number and shows up nicely in the report.  The problem is, that I cannot SUM this field in the group footers.

Post Author: V361
CA Forum: Formula
This may not directly apply to your situation,  but here is something I found.
Create 3 formulas as below ;
Formula 1 :- RunningTotalName
WhilePrintingRecords;
CurrencyVar Amount;
Amount := Amount + {Customer.Last Year's Sales}
Place the above formula on the details section . and suppress this
formula if u dont want to display .
Formula2 :- Display
WhilePrintingRecords;
CurrencyVar Amount
Place this formula on PageFooter Section
formula3 :- AmountToReset
WhilePrintingRecords;
CurrencyVar Amount := 0;
place this formula on PageHeader section and suppress the same.

Similar Messages

  • Cannot Summarize Number

    I haven't used Crystal for a few years now and am testing it out for my new company and I must say I am extremely frustrated so far, I don't remember ever having so many problems with Crystal in the past.
    I have a parameter field set up as a 'number'. I enter the number 40. I want to summarize this parameter field in my group footer 1. But, I do not have this field as an option in summary and when I attempt to create a SUM formula I get the message 'this field cannot be summarized'.
    What am I doing wrong? I've tried converting the field to a number, but it just isn't making any sense to me why this isn't working. This is probably the simplest piece I have in the report I'm trying to evaluate and so far the eval is not going well.
    Thanks in advance.

    here's my scenario: the parameter is the number of hours for the week. So, each user in each department has a number of hours. I want to know the total number of hours for each department and then total over all departments. I can get the number to appear for individual users, but it will not summarize in the department group or the total for the report. Maybe I'm doing something else wrong (it has been awhile since i had to set up a report in Crystal).

  • How to keep a calculation field blank until the user enters a number?

    I am building a sales sheet for a school that sells scrip as a fund-raiser. I have the document set so that when the user enters the number of scrip certificates he wants (say, two $25 gift certificates at Lowe's), the program will automatically calculate that this user owes $50 for that scrip category. However, there are more than 100 companies that one can choose from, and if the user doesn't enter a number, the calculated field shows $0. Is there a way that each field can stay blank until the user enters a number bigger than zero? By the way, I'm using this calculation to determine the value (borrowed from a user on this forum): event.value = 50 * this.getField("Lowes").value
    Thanks!

    There are two approaches. You can either add the following Validate script:
    // Custom Validate script for calculated field
    if (+event.value !== 0) event.value = "";
    Or you can change your custom Calculate script and set the Format type of the field to "None":
    // Custom Calculate script
    (function () {
        var v = +getField("Lowes").value;
        event.value = (v !== 0) ? util.printf("$%.2f", v) : "";

  • Again: Number Format, Decimals in calculated fields

    My customer wants to know how he can have calculated fields in his reports.
    I've found out that e.g. this works for the calculation:
    <?format-number:((SALARY) div (../../DEPTSAL));'#,##0.00'?>
    But there is no way that I can get a precision of two decimals. All given formats are ignored.
    Maybe this is an issue with the european decimal sign , (Comma).
    How is this to be fixed?
    The use of the translate function was recommended somewhere. I have no idea how to bring it together with my calculation formula.
    Thanks in advance,
    Kai
    Message was edited by:
    kai

    Hi kai,
    First you need to remove comma from your amount field then you can get your result.
    If you have any comma in your amount field then xml number format does not work.
    Look this forum:
    Re: How to indicate number percission in a template?
    Thanks
    Ravi
    Message was edited by:
    Ravi Tripathi

  • Calculated Field to get Total Number of Records does not work

    Hi,
    For some reason, calculated fields aren't working in my business rule.
    What I did:
    In deficiency criteria, I added the calculated field "Total Val".
    In conditions and calculations I chose "Grouping/Aggregation".
    For Select Group Fields, I chose "Plant and Material Number".
    For Aggregation Method, I chose "Count".
    Result when "Apply Rule" is used:
    The filtered records are still shown. The "Field Names" (names within the table such as MATNR instead of material number) are shown instead of the field labels.
    I'm trying to determine the cause of this issue and how to resolve it. Does anyone have a suggestion of what it is and what can be done?

    Hi Arif,
    Thank you for the response.
    Is there a way we can further pin down the ABAP problem that is being experienced?
    Best Regards, 
    Raphael

  • How can I validate that a calculated field equals a specific number?

    Thanks in advance for your input and advice. I have a calculated field that adds up the sum of two percentages (e.g 25% and 50%). I want to validate the sum of those percentages equals 100%. Thanks, Any help would be appreciated.

    Thanks for your response. If the sum of the values in the calculated field does not equal 100%, an alert should appear to indicate that the sum of those fields must equal 100%. As far as checking whether both of the fields being calculated, that is not as important; only one of those fields could have an entry as long as it equals 100%.  Does that help? Thanks again for your help.

  • Problem with Math In Calculated Fields

    I am calculating a group incident rate for data returned from
    a query. The formula is Number of cases multiplied by 200000
    divided by number of hours worked. Cases in my report is the
    calculated field: calc.CaseSum (the sum of cases for the group)
    Hours is calc.SumHours (the sum of hours for the group). The actual
    values for these variables (for the first group are 48 and 29427171
    respectively. When I create the following calculated field called
    rate using the formula: (calc.CaseSum * 200000) / calc.SumHours,
    Cold Fusion Generates a Runtime Error:
    Invalid ColdFusion expression in report. If the expression is
    a string, ensure that it is within quotes. Error: (calc.CaseSum *
    200000) / calc.SumHours is not a valid ColdFusion expression.
    If I use the constant value "29427171" as the divisor, the
    report works albeit only for the first group. Any ideas; is this a
    bug, or am I misusing the product?
    Addition: I forgot to mention I am using CF8. Also this
    formula worked fine as a Report Total before I introduced grouping
    and modified the calculated fields to reset on the change of a
    group.

    Sorry, I've been on another project for awhile. This problem
    will certainly be a "show stopper" for me if I cannot resolve it.
    As I mentioned in my original post, I used a constant in the
    formula in lieu of the variable and the calculation worked. This
    would suggest that CF does not have a problem with a large number.
    In spite of that reasoning, I tried Tony's suggested (thanks
    by the way!) with the identical outcome, only difference is the new
    formula is displayed in the error message.
    Tony, you also suggested that I set the variables using
    CFSET... How would I do this within the report writer environment.
    I had tried a similar approach: to perform half the calculation
    i.e. that within the parenthesis, and assign that value to a
    separate "calculated field: and then perform the rest of the
    calculation on that variable with the same outcome.
    I think that I may be dealing with a CF bug here, I'd like to
    find a workaround... I've noticed that CF8 has a new patch, perhaps
    after I apply it, I may be able to get this thing to work. I'm on
    another project right now so it will be a few days before I can
    test this theory, I report the result.
    Should this fail, and no one can come up with a workaround, I
    will report this to Adobe.

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

  • Calculated field won't display on canvas

    I am importing login and logout times to Xcelsius v 5.4.0.0 using a web service.  Once the data is imported I am calculating the minutes between the login and logout by subtracting the login from the logout in the Xcelsius spreadsheet.
    I import DATE, USER, LOGIN, & LOGOUT to columns A:D in  my spreadsheet.  Column E contains the formula D2 - C2 to calculate the minutes, where D2 is the logout and C2 is the login.
    I cannot get the calculated times to display on the canvas.  I have tried both a list view and a spreadsheet table.  I set the DISPLAY DATA property of either the list view or spreadsheet table to columns A:E in my spreadsheet.  When I do Preview and import my data, all the data shows up EXCEPT THE MINUTES CALCULATION.  That field is always blank.
    I tried displaying the raw data tab, and the minutes calc is always blank. I created another tab named display data, added formulas to it to copy over the info from the raw data tab and tried displaying that instead.  I thought perhaps the actual calculation was causing a problem.  That didnu2019t work either.  The minutes calc column is always blank.
    I tried changing the format of the labels in the spreadsheet table or list view from general to numeric to time, but it makes no difference.  There is no data in the column to format.
    If I paste data into the spreadsheet while in design mode, the calculated minutes DO APPEAR in the list view on the canvas.  If I then go to Preview mode, the data is still there, including the calculated minutes. However as soon as I give it a new date range in Preview mode and refresh the data through the web service, the minutes column is again blank.
    Since the list view does display the calculated minutes if I paste data in the spreadsheet in design mode, and since the exported spreadsheet snapshot contains the correct calculations when I import data using the web service,  it appears that the data is being displayed on the canvas before the time calculations are taking place, resulting in a blank column.
    Has anyone else experienced this?  What am I doing wrong?  I am sure I should be able to do this, but evidently donu2019t understand how. Iu2019ve attached the exported spreadsheet snapshot as a reference.
    Thanks!

    Hi there - I checked your site on my PC and it does not display. I've found this on a number iWeb created site, so you are not alone.
    However, I have found iWeb created sites that display well on PC's, they are http://leapfrogenterprise.com and http://donandkasha.com - if you view the 'source', notice they used frames to display their site... Best wishes on your project, Rick
    iMac G5 iSight 20" - 30G iPOD - HP Pav 15" WS and Toshiba Sat 17" WS   Mac OS X (10.4.7)   Canon 20D & A620

  • Calculating fields in C4C

    Hi Experts,
    I am looking into the Extension fields on an opportunity, and we would like to have the following on our opportunities.
    Project Probabilities: Shows the percentage that the project will start (Not that we will win it, but the possibility that this project will start)
    Expected Value 2: A value that is calculated on Project Probabilities * Weighted Value
    First obstetrical is that I cannot create a field that is marked as a percentage.
    Does anyone know, if it is possible (With application studio), to create a field similar to the standard Probability field?
    Next thing I did, was I tried to create a calculating field (Percentage Project Probability), that would take the number I typed into Project Probabilities and then divided with 100 (This should be a hidden field). I that way I would overcome the limitations with not being able to create a probability field similar to the standard probability field.
    Then I created another calculating field, multiplying my hidden field (Percentage Project Probability) with the Weighted Value. This was not possible, as the hidden field (Percentage Project Probability), was not shown when I choose to mark the field as calculating.
    Does anyone have an idea or hit how to fix this, or has ideas how to perform the calculation ( Project Probabilities * Weighted Value = Expected Value 2 )?
    Best Regards
    Anders

    In C4X there are only a few standard business object data types that are enabled, so "percentage" is not a standard data type. To see the complete list of support standard business object data types, look in the SDK help for "Custom Business Object" data types or enter adaptation for a UI and try to add an extension field. The "type" field that lists the various types data such as text, drop down list, email, integer, etc... are the supported data types.
    To achieve your specific use-case, I would suggest using either text or number data types extension fields, and then write some script for the business object that is triggered by the on save or before modify exits/BADIs to calculate the values.

  • Weekday & Weekday Name Calculated Field giving error

    Hi all,
    I'm trying to learn how SSRS works, but I've reached an issue or error I just cannot find the solution for.
    What I'm trying to do is create a calculated field that shows me the number of the day of the week and the name of the weekday. The problem: instead of calculating for example 14/06/2002 as the 5th day of the week Friday, it calculated it as the 6th day, Saturday.
    Below is the example of my problem:
    Can somebody please explain to me, how can I overcome this issue?

    Hi Ellie55,
    According to your description that the you want to get the number of the weekday and also the name of it, but when you are using the expression in the calculated fields, the result always show the value one more days ahead of the exact day, right?
    I have tested in my local environment and can reproduce your problem, the problem related to the method WEEKDAY(date) you use in the expression which Week begins on Sunday (1) and ends on Saturday (7),This article will give details information:
    WEEKDAY Function
    WeekdayName Function
    So you will get the day one more ahead. You can take below expression for reference to do a little modification to your expression:
    Get the weekday number, we can make the “WEEKDAY(Date)-1 “ and make the Sunday to be the number of 7,then the number will be Monday(1)and ends on Sunday(7) :
    =IIF(WEEKDAY(Fields!YourDate.Value)="1",7,WEEKDAY(Fields!YourDate.Value)-1)
    Get the weekday name(This method base on the exact date, it is not based on the number of the week, so will not have the problem you have faced ):
    =WeekdayName(weekday(Fields!YourDate.Value),true)
    If you still have any question, please feel free to ask.
    Regards
    Vicky Liu

  • IF statement in Calculated Field for Share point, doesnt calculate sum in my Excel Pivot table.

    Hi Everyone
    I used this in SP calculated column field.
    =IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
    Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
    Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
    Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
    Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))    
    it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
    Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
    Thanks,
    Norman

    Hi Everyone
    I used this in SP calculated column field.
    =IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
    Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
    Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
    Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
    Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))    
    it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
    Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
    Thanks,
    Norman

  • DAX Dynamic Banding | Calculated Member based on Calculated Field

    Good morning,
    I've created a Power Pivot model that measures the blood glucose levels of clinical patients at specific times of the day. The requirement is that this metric, let's call it GlucoseLevel, is always averaged as it wouldn't make sense to sum up the values.
    To meet this first requirement, I set the "Summarize By" property of the GlucoseLevel column to "Average".
    The second requirement is to band the GlucoseLevel values so that groups of people can be measured by this band rather than by the individual measure values. I created a banding table in Excel and then imported it into the Power Pivot model. The banding table
    has three columns (BandName, MinValue and MaxValue) and has the following values:
    VERYLOW: Min Value = 0; Max Value = 3.99
    OK: Min Value = 4; Max Value = 6.99
    WARNING: Min Value = 7; Max Value = 10.99CRITICAL: Min Value = 11; Max Value = 30.00
    It is at this point where I face my challenge. I have a GlucoseLevel measure and I have a banding table. Great. The challenge is: How do I create a calculated, dynamic
    member that will look at my GlucoseLevel measure (at whatever level), do a lookup to my banding table, and then return the "BandName" column from the Banding table at that specific level? So to clarify what I mean by level: I want to be able
    to view the bandings at Year level, or a Month level, or even at a week level. Then depending on what level I am at, my measure should have a Band associated to it.
    I've tried to solve this issue in a couple of ways:
    Attempt 1
    Create a calculated column in my fact table that contains a nested IF statement to manually band my GlucoseLevel values. This works fine if I view my data at the lowest level of granularity, however
    it does not work if I start looking at my data at the day, week, month etc. levels
    Attempt 2
    1.) Create a calculated field (not a calculated column) that averages my GlucoseLevel measure. This is cool because it will average my measure at whatever level I am viewing it at. Let's call
    this field Bob...
    2.) Band my measure Bob by creating another calculated field (called PatientBand). This field uses my banding table (described earlier) in conjunction with my calculated field Bob. This works perfectly, except for one big flaw: Excel sees this banding field
    as a measure, and not as something that I can use as a column / row...
    So my question is: Can I trick Excel into viewing my PatientBand calculated field as an attribute, and not as a measure? And if not, how do I get around this challenge? Here is the DAX formula that I used to create my second calculated field "PatientBand":
    PatientBand:=CALCULATE(
        VALUES (Bandings[BandName]);
        FILTER (
            Bandings; 
            Test[Bob] >= Bandings[MinValue]
         && Test[Bob] <= Bandings[MaxValue]
    Thanks!

    So there are 2 ways that I can think of for doing that.
    1) if you are only using MDX clients like Excel or Reporting services you can create a text based measure that returns the banding name. (Note that this sort of approach does not work at the moment with PowerView as it only displays numeric measures). This
    would effectively let you show a label next to a reading as opposed to moving the reading under a given banding column.
    Banding Name :=
    CALCULATE (
        VALUES ( Bands[BandName] ),
        FILTER (
            Bands,
            [Average of GlucoseReading] >= Bands[BandMin]
                && [Average of GlucoseReading] <= Bands[BandMax]
                && NOT ( ISBLANK ( [Average of GlucoseReading] ) )
    2) This next approach will show the results exactly as you had them in your sample screenshots. It just takes a slight bending of the DAX. I'm using a SUMX here, not because I want to sum anything, but because the "X" version of SUMX basically loops over
    every row in the specified table and sums the expression in the second parameter. I have setup the second parameter so that it only returns a single value for the average if it is in the appropriate banding. 
    Banded Average:=IF (
        HASONEVALUE ( Bands[BandName] ),
        SUMX(
            'Bands',
            IF (
                NOT ( ISBLANK ( [Average of GlucoseReading] ) )
                    && [Average of GlucoseReading] >= MIN ( Bands[BandMin] )
                    && [Average of GlucoseReading] <= MIN ( Bands[BandMax] ),
                AVERAGE(Readings[GlucoseReading]),
                BLANK()
    ,AVERAGE(Readings[GlucoseReading])
    http://darren.gosbell.com - please mark correct answers

  • New Calculated field question. Complicated I think.

    I have managed to create this table from a MySQL database: http://ppbm5.com/DB-PPBM5.php
    The field 'Total' is a calculated field using this SQL query:
    $query_Recordset1  = 'SELECT *, `Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE  Off`) As Total, `CPU`*`Cores` As Phys_Cores FROM `Personal_data` WHERE 1  ORDER BY (`Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`)),  `Date & Time` ASC';
    So far, so good, but as you may have  noticed, there is a next field called 'Rel. Perf.' which only contains  blanks. And that is where my problems start.
    The table is sorted by 'Total' and the first record shows these figures and field names that are relevant for my question:
    Fields: 'Total'  'Disk I/O'  'MPEG2-DVD'   'H.264-BR'   'MPE On'   'MPE Off'
    Values:  131,        67,              21,                  37,              6,              64
    In addition, I use four 'weight' figures, let's say these are 0.27 , 0.30 ,  0.20 and 0.23 denoted as W1, W2, W3, W4.
    First step is to calculate four temp values, using a formula like this resulting in T1, T2, T3 and T4:
    T1 = W1 x  Total /Disk I/O; T2 =  W2 x Total/MPEG2-DVD ; T3 = W3 x Total/H.264-BR ; T4 = W4 x Total/(IFNULL(MPE On, MPE Off)
    Note that this only applies to the top record and here the SUM(T1, T2, T3, T4) results in 131, equal to the Total.
    The result of 100 x SUM(T1, T2, T3, T4)/ Total = 100 should be the 'Rel.Perf.' result for the top record.
    Now  is gets difficult. Let me call the records R1, R2, R3, ..., Rx. Now, in  the previous step we have established that the figure 100 should into  R1.
    For R2 the result of the 'Rel.Perf.' is 100 x SUM(T1 x Disk  I/O(2), T2 x MPEG2-DVD(2), T3 x (H.264-BR(2), T4 x (IFNULL(MPE on, MPE  Off)))/ Total(2)
    For R3 the result of the 'Rel.Perf.' is 100 x  SUM(T1 x Disk I/O(3), T2 x MPEG2-DVD(3), T3 x (H.264-BR(3), T4 x  (IFNULL(MPE on, MPE Off)))/ Total(3)
    etcetera for all the rest of the records in the table.
    A  complicating factor is that the reference point of the top machine  should remain fixed at 100, but when doing queries, the top machine may  not be in the query results, but all the query results for the Rel.Perf.  should be derived from these scores. Life would be infinitely easier if  one would be certain that the top machine is fixed, but that is not the  case.
    Sorry to make this such a long and complicated post, but  for those who have struggled through this long message, if you have any  suggestions on how to make this work, I would appreciate it.
    Thanks in advance.
    Harm, while non is intended.
    PS. I have been trying to generate a SQL query, using the following code:
    $query_Recordset1 = 'SELECT *, FORMAT(`Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`),0) As Total, FORMAT((54.661*`Disk I/O`+161.25*`MPEG2-DVD`+71.66666*`H264-BR`+645*IFNULL(`MPE On`,`MPE Off`))/129,1) As RPI,`CPU`*`Cores` As Phys_Cores FROM `Personal_data` WHERE 1 ORDER BY 54.661*`Disk I/O`+161.25*`MPEG2-DVD`+71.66666*`H264-BR`+645*IFNULL(`MPE On`,`MPE Off`), `Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`) ASC';
    For static work it is OK, but not when a new top performer submits his data.

    Hi William,
    Per my understanding that you want to count the number of the value in the field wait which is smaller then 15, right?
    I have tested on my local environment and that you can add the calculated field (Count) using the expression as below:
    =IIF(Fields!wait.Value<15,1,0)
    Insert an outside group row and then get the total count by using below expression:
    =SUM(Fields!Count.Value)
    Preview you will get the result like below:
    If your problem stil exists, please try to provide some sample data and the exprect count result you want.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Calculation Field to be mapped to different data object's column name in Oracle BAM 12c

    Hi,
    I am having a challenge to enable drill down to 2nd level report by passing calculation field as parameter.
    As an alternative, I am thinking to point calculation field to another data object’s column name and generate report so that I would be able to pass that as parameter to drilling report view.
    Is there any way to map calculation field to different Data object’s column name? Thanks in advance.
    Regards
    Amik Basu

    1. Yes, you can.
    SQL> create table ÜÝÞ( ßàá number(10));
    Table created.
    SQL> insert into ÜÝÞ values (10);
    1 row created.1.1 and 1.2 and 2. You can choose UTF as your default character set. It allows the user of non-English characters in VARCHAR columns in your whole database. It is not per tablespace.
    SQL> create table ÜÝÞ( ßàá varchar2(100));
    Table created.
    SQL> insert into ÜÝÞ values ('âãäçìé');
    1 row created.

Maybe you are looking for

  • Muse site not displaying correctly when 'Published' to BC

    Hi all Strange incidents happening with a Muse site I'm designing for a client. When I use the Publish feature (which uploads the site to the default Business Catalyst domain you get with the Muse subscription) it throws  the elements all over the pl

  • "Unable to purchase" message

    Every time I downloading something from AppStore, message appears "Unable to purchase" with text "2GIS and 25 other items could not be purchaces at this time. Please try again later." But programm "2GIS" is installed and working. Anf in my account pu

  • Unable to download any programs from Creative Cloud

    I've been trying to install a number of apps via the Cloud (mainly Illustrator, InDesign and Photoshop - trial versions) however the installs keeping failing.  They all get to between 30%-55% and then go back to 0% and start again and then get to the

  • SSID not visible (EA6500)

    Just installed my new router, and got a problem with the SSID for 2.4ghz. It's setup in this way that this is visible (at least according to the control panel) but none of my non-5ghz devices "see" the SSID. I have to input it manually. It does show

  • LPX 10.1 Online User Guide Link

    http://help.apple.com/logicpro/mac/10.1/ Thanks to David Nahmani at LogicProHelp