calculation in the PivotTable field

Hi all, in obiee answer in PivotTable when calculating the percentage of the Total row, it shows 1.0. Is there a way to show 0.3 in this cell and see the rest line adding the values in the table?

Cat Total percentage value

A              8        10           0.8

B             10       50           0.2

18 60 1.0 total

View you want:

Cat Total percentage value

A         8        10           0.8

B         10       50           0.2

18 60 0.3 total

Thanks, Sushil

Try this for your percentage formula.

(SUM(Value 1) /SOMME (CAST (DOUBLE value 2))) * 100

Tags: Business Intelligence

Similar Questions

  • Realizing automatic calculation in the form field Oracle Apex.

    Hi all

    I m facing a problem in my Apex Application.

    I have three ActualAmt, CommAmount, and Comm % fields in my form.

    My requirement is when % ActualAmt and Comm is entered then automatically CommAmount should be calculated on the basis of ActualAmt and Comm %, in the second case, when I enter ActualAmt and CommAmount Comm % should be calculated on the basis ActualAmt and Comm %.

    I have included my formula in Post calculation calculation but does not.


    Please help find the solution.


    Concerning

    Thanks, Mindmap, it worked.

  • Calculation of the 2 fields without a script error.

    Is it possible to perform a calculation of two fields does not calculate until the 3rd field is reached.  I have a calculation that takes (Field1/Field2) * 100.  Once the user puts in Field1, she raises a script error, which is annoying.  Anyway around this?

    Thanks for your help.

    You need to test to do that there is first a value in the fields.

    Using FormCalc:

    If ((field1) HasValue and HasValue (field2)) then

    $ = field1 / Field2 * 100

    endif

    Or JavaScript:

    If (! field1.isNull &! field2.isNull) {}

    this.rawValue = field1.rawValue / field2.rawValue * 100;

    }

  • Calculation of the date fields

    Hello

    I have three fields. 2 are formatted with the date field, and the third for the calculation of the difference between 2 date fields.

    For example, Field1 said August 2012, and field 2 said Sep 2012. Is it possible that I can do field 3 dipslay the 1 (month) response?

    Any help would be greatly appreciated.

    Thank you

    Yes, you use the date object JavaScript extract fields of the whole of the year and the month, create a common denominator for the month and year, and do the math.

    The event of calculation for the number of months:

    Delete the result value

    Event.Value = "";

    get field values

    var sStart = this.getField("Date1").value;

    Send var = this.getField("Date2").value;

    process if we have data

    If (sStart! = "" & send!) = "") {}

    convert date objects date strings

    var start = util.scand ("mmm yyyy", sStart);

    oEnd var = util.scand ("mmm yyyy", sending);

    get the full date and month year beginning

    var nStartFullYear = oStart.getFullYear ();

    var nStartMonth = oStart.getMonth ();

    convert data from start of month

    var nStartMonths = (nStartFullYear * 12) + nStartMonth;

    Get the complete year end date and month

    var nEndFullYear = oEnd.getFullYear ();

    var nEndMonth = oEnd.getMonth ();

    convert data from end of month

    var nEndMonths = (nEndFullYear * 12) + nEndMonth;

    do the math

    Event.Value = nEndMonths - nStartMonths;

    } / / end have given

    You will need to adjust the names for the start and end dates.

  • Calculation of the numeric fields radio button and checkbox-based response

    I am to change a form that was created by someone else.  I added checkboxes and radio buttons based on the need to form. I would like for the amount of check calculate automatically based on the selection of a radio button.  I've implemented some numeric fields to play with adding the amounts and placed them in the field 'Amount to check', but I can't seem to calculate.  Once I have to calculate correctly, I need to know how to automatically enter a number in the appropriate digital field based on the option button or check box selected.  Here is a picture of what I've put up.  Help, please!  I read all the forums, watched the videos and tried everything.  I'm so frustrated.

    MemberStatusHelp.jpg

    Don't know if I have the layout if correct me if Im wrong. I assume you have a radio button group on the top line for the first 3 check boxes and boxes (when the user selects one) for the following 2 lines (where the user can select independently of the other 3 above) with a final calculation at the end to check the amount field.

    You can either place the code on each change of each checkbox/radio button event to recalculate or just do it on the final checksum field. I tried putting a calculate on the last field to check the quantity, and it seems to do what it takes.

    Try this in the case of calculating the amount of check field

    var membershipAmount = 0;
    if ( (RadioButtonList.rawValue == "2") || (RadioButtonList.rawValue == "3") )
    {
        membershipAmount = 35;
    }
    
    if (CheckBox1.rawValue == "1" )
    {
        membershipAmount += 15;
    }
    
    if (CheckBox2.rawValue == "1" )
    {
        var txtAmount = TextField3.rawValue;
        var amt = 0;
        if ( (txtAmount != null ) && (! isNaN(txtAmount) ) )
        {
            amt = parseFloat(txtAmount);
        }
    
        membershipAmount += amt;
    }
    
    this.rawValue = membershipAmount;
    
  • Calculation of the text field

    On a form, I'm working on when I'm trying to implement a culculation of text (formatted as numbers) fields to do the subtraction of one field on the other.

    In the properties of the calculation tab it gives only options of the sum, product, average, Max and Min.

    I need to remove, how do I go about this? I'm guessing that it would be scripted, which I am naïve.

    You can use JavaScript to the option of simplified field notation. For JavaScript, it can be as

    as simple as:

    Event.Value = getField("text1").value - getField("text2").value;

    For the simplified field notation, it would be:

    Text1 - Text2

    Google "Acrobat field simplified notation" for more information. If you use this, your domain names are limited in some respects (without space, for example).

  • Fill a field value based on the calculation of the other fields

    I have two fields of n serial and serial no two are of lov after the user selects the two values that the following amount of field has to be filled automatically

    If serialno is 100 and the 200 serial No.

    Then in quantity is 200-100 = 100

    This should come in the quantity field

    If the quantity is an attribute in your view object, you can use the following expression groovy to calculate the difference:

     - 
    

    and remember not to update the quantity field series and on the basis of no field

    Jean Lou

  • Order creating the calculated in the PivotTable item

    Hello evereybody!

    I have a question about pivot table.

    When I created a new calculated item in the pages on PivotTable section always appear down the list. Can I have any order?

    Example: I put in the section of the page: Dim departments and I have 25 departments. I create something calculated to get the sum of all (like all the choices on command prompt), but this element appears in the last position. I would like to see in the front row. Is possible?

    Thank you!!!

    Hello

    Instead of using a new element calculated , using Total (click the sigma Pages option) > front

    Now, it shows that as first values in the drop-down list.

    Thank you & best regards
    Kishore Guggilla

  • Fill in the multiple fields based on the checkbox

    (other questions newb...)

    You want to fill several form fields from or not a checkbox is enabled.

    I now using scripts calculated in the work field. for example:

    If (this.getField("checkbox").value == "Off") {}

    Event.Value = null;

    } else {}

    Event.Value = "ABCXYZ";

    }

    However, it is possible to assign values only from the field box itself?

    Yes, you can do so from the MouseUp event of the checkbox field. It will look something like this:

    if (event.target.value=="Off") {
        this.getField("Text1").value = "";
        this.getField("Text2").value = "":
    } else {
        this.getField("Text1").value = "ABCXYZ";
        this.getField("Text2").value = "123456":
    }
    
  • Get the field to remain Virgin until the user enters the value in the previous field used in the calculation

    I work on a PDF form and am stuck on one of my calculations. There are two fields 'desired Start Date", which is a date entered by the user. The "desired end" date is one year from date entered by the user. I figured out - however, before the user enters a date, I want this field remains empty. Currently, it fills with 01/00/000. How can I get this field to calculate not unless a date is entered by the user? So far, I tried this but can not get the blank to stay:

    If the field 'Desired Start Date' is empty, leave 'to' field blank

    var myStartDate = new Date (this.getField("Desired_Effective_Date").value);

    If (((myStartDate == 0) & & (getField("myStartDate").valueAsString = "")) {event.value = "";})

    If the field "Desired Start Date" is an effective date, use the date to calculate one year after the date of entry.

    }

    else {this.getField("to").value = util.printd ("mm/dd/yyyy", new Date (myStartDate.getFullYear () + 1, myStartDate.getMonth (), myStartDate.getDate ()))}

    Try the following than the calculation script custom field "to".

    Get the value of the date field beginning

    var sStartDate = getField("Desired_Effective_Date").valueAsString;

    If the start date field is not empty...

    If {(sStartDate)

    Converts a date in a date object string

    Kai = util.scand ("mm/dd/yyyy", sStartDate);

    Add a year

    oDate.setFullYear (oDate.getFullYear () + 1);

    Set this field to the calculated date value

    Event.Value = util.printd ("mm/dd/yyyy", anyway);

    } else {}

    This field blank because the input field is empty

    Event.Value = "";

    }

    You may need to change the date format "mm/dd/yyyy", I used to match the formats of date fields.

  • How do I create a custom calculation for the portion of the tax of a subtotal field?

    The calculation must be the number x 3 divided by 23 (for example 100 x 3 divided by 23 = 13.0435). I think we should have code written for it, but I don't know what it should be, and how I should do this.

    You have really no code. Use Simple field Notation (the

    a second) the calculation of the target on the field tab and enrolled him

    (Assume the name of the field that contains the number of variables is

    Text1):

    Text1 * 3 / 23

    The game, may 12, 2016 at 06:05, justineh55480397, [email protected]>

  • Problem with the calculation script - dividing one field (a number) but another field (a number that corresponds to a sum of other fields)

    I have a table that contains the users to enter the number of books in a type of food (Fruits & vegetables, products dairy, protein, grains, etc.). There are 8 fields whose amounts are totaled in a field (PoundsTOTAL) using the calculation of "value is the sum...". ».

    The question that I am running is that for each type of food, there is also a percentage field that indicates the percentage of the total books that represents the type of food. If I used the simplified field notation (PoundsDairy / PoundsTotal * 100) I get the dreaded "the value entered does not match the format of the field" because the PoundsTOTAL field is 0 until someone between numbers in the fields above him. I tried using the code I found on this forum, but it does not work for me (I do not know I did something wrong). I enter a number like 500 in the field of the PoundsFV and the PercentFV field shows nothing.

    Here is the code I use for one of these calculations:

    (function () {}

    Get the field values as numbers

    var lbsfv = + getField("PoundsFV").value;

    var lbsttl = + getField("PoundsTotal").value;

    Perform the calculation and the value of this field will cause

    If (lbsttl! == 0) {}

    Event.Value = lbsfv / lbsttl;

    } else {}

    If lbsttl = 0, this field blank

    Event.Value = "";

    }

    })();

    For reference, the referenced fields are shown in this image:

    .FormCalcs.jpg

    Your domain is named PoundsTOTAL, not PoundsTotal.

  • I cannot select the names of the fields calculated field options. When I try to use the simplified field Notation: change, there is no "OK" button after typing my calculation. Why I don't see these features. I have Adobe Acrobat XI - v11.0.13

    I have Acrobat XI and I'm not able to create calculated fields. When I use the value matches the section, then click on choose to select the fields, it does not select unique fields. I can click Select all or deselect all the... but that's all. So I tried using the simplified field notation and click on modify... the Java script box opens. I can type the script... but there is no options down to say OK or cancel. I don't see any of these options. Why I use this feature?

    Kimberly

    To select a single item from list click on it and then press the SPACEBAR.

    The other question is very strange... Try to run a repair installation.

    On 27 October 2015 14:06, "kimberlyf63795453" [email protected]>

  • I'm trying to create one named calculation in a field, but not able to select only the required fields, other than all or not.

    Hi all

    I installed "Acrobat Standard DC".

    I've been working on a PDF file to filliable form.

    Then tried to make a calculation in a field, but wasn't able to do.

    When you set up, I was not able to select only the necessary fields.

    field-select_0.pngfield-select_1.png

    I have only be able to select all or not!

    Is that what I'm doing wrong?

    Even trying in "simplified... field. "it doesn't work.

    Thanks for any suggestions!

    Use the space bar to select a single box.

    Wednesday, July 29, 2015, at 14:16, supporth66519991 [email protected]>

  • Trigger a calculated field to display the different fields

    I have a calculated field (rate) that is used to calculate a total value if the quantity field is exceeding a certain amount would then display one of the 2 hidden fields, but I don't know how to trigger the amount field code

    Here are a few examples. They would go in the event your amount field calculate

    Say there is a threshold of $5,000 for the field to be visible.

    if (this.rawValue > 5000) field1.presence = "visible";
    else field1.presence = "hidden"; //to rehide if the amount drops below your threshold.
    

    If there is a second threshold for the another hidden field like $2,000 for Field1 and 5,000 for the Field2.

    if (this.rawValue > 5000) field1.presence = field2.presence = "visible";
    else if (this.rawValue > 2000) {
      field1.presence = "visible";
      field2.presence = "hidden";
    }
    else field1.presence = field2.presence = "hidden";
    

Maybe you are looking for

  • Is there a Windows 10 driver for Apple's USB keypad?

    Boot Camp drivers allow the keyboard works but not the digital side keys.  Also, the Magic Mouse seems finger roll reverse to use normal iMac.

  • HP Color Laserjet 2605dn: Print is washed out/completely wilted on printer 2605dn

    We have a Laserjet 2605dn HP color printer has intermittent printing problems. Most of the time, the quality of the printed output is very well, but from time to time, the print quality deteriorates completely. After a while, printing then returned b

  • How to copy "c" for the largest hard disk drive?

    My 'c' drive is full, and I need to move to a bigger drive. They do a free program like superduper for mac? I don't want to go through the hassle of reinstalling xp and everything.  My xp disk is one of the originals and it takes forever to do all up

  • idle problem

    I had to reinstall windows on my labtop and after that I made and updated all updates and service packs and all patches computer and implemented to date, I still have a problem, I can not understand. After that the computer is idle and you try to get

  • Transport.More () throw a ControlledAccessException when BB bridge is installed

    Hello I have an application which interecepts the specific emails and displays. It was work fine until I had a customer with BB bridge. Enforcement would take only a fraction of these emails, throwing "ControlledAccessException: no unauthorized attem