Fact using two fields in the report to division.

Hello

I have two columns on my report TOTAL_REQUESTS AND ASSIGNED_SEATS. I want to divide ASSIGNED_SEATS by TOTAL_REQUESTS.

<? xdoxslt:IfElse (TOTAL_REQUESTS > ASSIGNED_SEATS,(ASSIGNED_SEATS/TOTAL_REQUESTS), 100)? >

When I do that, I get an empty field.

But when I add the columns together I get the result.

<? xdoxslt:IfElse (TOTAL_REQUESTS > ASSIGNED_SEATS,(ASSIGNED_SEATS+TOTAL_REQUESTS), 100)? >

What I am doing wrong?

Thank you!

Hi Kelly,

What if the value of these fields >?

Division by zero will cause this problem., add a condition or use option 3

 ASSIGNED_SEATS) and (TOTAL_REQUESTS > 0) and (ASSIGNED_SEAT>0), ASSIGNED_SEATS div TOTAL_REQUESTS,100)?>
or
 100), 1111 div 22,100)?>
or
 100), xdoxslt:div(10,0),100)?>

the second and third will work perfectly, since they got the correct hard-coded data.

Tags: Business Intelligence

Similar Questions

  • Help!  Calculate a percentage between two fields that the sum of columns

    Members of the forum good day!

    I'm hoping to get help with and model RTF I use to sum up the output of a query in PeopleSoft.

    I have a line with two fields of the query and a third field calculates a percentage using the query fields:
    Row1, Field1: EXPR14_14
    Row1, Field2: EXPR1_1
    Row1, Field3: <? xdofx: If EXPR1_1 <>0 and EXPR14_14 0 then (EXPR1_1 DIV EXPR14_14) <>* 100 or 0 end if? >

    I have a second row who has these fields:
    Row2, Field1: <? sum (EXPR14_14)? >
    Row2, Field2: <? sum (EXPR1_1)? >
    Row3, Field3: I need the third field to calculate the percentage of sum of two fields.

    I tried different ways to insert this calculation with no luck. It's my first time to create a rtf report and any help would be gratly appreciated.

    In advanced thank you for your help.

    Kind regards
    Raquel

    For the calculation of percentage you can use something similar to this (adjust the formula you need)

    For Row1, Field3:

    Hope that helps. If you need more help, send me the xml file and the [email protected] model

    Thank you
    Bipuser

  • How can I configure on a second two-factor authentication apple that isn't an icloud but rather my itunes account account ID? Only, I seem to be able to use two steps on the second account.

    How can I configure on a second two-factor authentication apple that isn't an icloud but rather my itunes account account ID? Only, I seem to be able to use two steps on the second account.

    You can not. Two Apple factor authentication is a feature of iOS and OS X, based on your AppleID being associated with iCloud account to send and receive authentication 6-digit codes. An AppleID that is not associated with iCloud account cannot be used for 2-factor authentication.

    For Apple ID - Apple Support two-factor authentication

    You can set up validation in 2 steps (which is different) with any AppleID - see frequently asked questions about check in two steps for Apple ID - Apple Support

  • Use two assistants for the acquisition of data at the same time

    Hello

    I want to read multiple data channels of analog inputs on my DAQ hardware. However, when I try to create two separate data acquisition assistants for each entry, it gives an error saying "is reserved for the specified resource. The operation could not be performed as indicated "." Can't use two assistants for the acquisition of data at the same time?

    I have to add different channels in the same assistant DAQ? I tried, but I couldn't separate the data in different graphs.

    How does this work?

    Kind regards

    Allard

    You can't have multiple tasks of the same type (in this case inputs analog) on the same device.  Just so having 1 DAQ Assistant read all your channels and separate your channels for individual transformation.

  • BlackBerry Smartphones using two BB with the same account of Blackberry.

    Currently, I have a BB 9900 and is considering obtaining a BBZ10. The 9900 has a standard sim card by which the Z10 I think a micro sim. (I still have to talk to my service provider relating to the regime of a sim 2)

    Is it possible to use two phones at the same time, if my provider allows, regarding BB services etc. using the same account etc?

    I thought that I have addressed this before first topic to contact my ISP.

    Thank you.

    Kind regards.

    You ask the subject from the BBID even on both devices?

    Yes, to a certain extent, on the data.

    E-mail and social accounts like Facebook and Twitter works perfectly.

    BlackBerry Messenger will use only a BBID on a device at a time... If you have the same BBID on both devices, you will need to choose which will be your active BBM.

    Of course, the main question to this is if your mobile operator will allow two SIM cards with the same account. Doubtful.

  • Code to not allow text to field two fields at the same time

    Hi guys,.

    I would like to ask for your help on a JavaScript code.

    I don't have much experience with JavaScript and I am trying to add a code for a pop up to warn the user that only one field must be filled.

    In the form, there are two main types of fields and the user must only fill one of them and not the two of them.

    Is there a way to add a code to each text field to alert the user of this single text field to fill?

    In the first text field, you can use a custom like this validation script:

    Script for custom text to validate field

    If the entry is not empty...

    If {(event.value)

    Refuse entry if the other field is not empty

    Event.RC =! getField("Text2").valueAsString;

    Display a pop-up message if the entry has been rejected

    If (! event.rc) {}

    App.Alert ("error goes here.", 3 ");

    }

    }

    but replace "Text2" with the name of the other field. Use the same validation script in the other field, but change the name of the field for the name of the first field.

  • Default value for the field in the report updated

    I am using an update report (form-> tabular). When I add a new line to a new record, I need set automatically one of the fields in the new record to a value of element. I don't want the user of having to hand enter this field (this is a foreign key to a related table iD). How can I set the value of this field in the new row when I click on the "add a line"?

    I hope the question makes sense!

    Thank you
    John

    John,

    You wrote

    When I add a new line to a new record, I need set automatically one of the fields in the new record to a value of element.

    Under report attributes > column attributes see the attributes of tabular form

    Default type element (application or name of the item page)

    The value default to your point value name.

    Jeff

  • Lookup field to the report area - small problem

    Hello guys!

    I have a report and a search box that is used to find a specific report column. Only I could get it to work using an instring function. However, in fact it should be an exact match. So when you enter "9"only the folder with ID 9 must be displayed.»
    The instring function logically returns all rows that have a 9 match.

    My problem is that nothing should be filtered if my Page-Item used for the statement of the chain and the number of input search is null.

    Is there a way with sql to return all the rows when normal: P8_POINTSEARCH is null?

    {code} select *)
    Select
    p.inv_pt_id_main as ptidm,
    p.inv_pt_id_main as p_bestand,
    p.inv_pt_id_main as p_schichtigkeit,
    p.inv_pt_id_main as p_entwicklung,
    p.inv_pt_id_main as p_verjueng,
    p.inv_pt_id_main as p_totholz,
    p.inv_pt_id_main as p_biotop,
    p.inv_pt_id_main as p_alter,
    p.inv_pt_id_main as p_beeintraechtigung,
    p.inv_pt_id_main as p_verjueng_aussen,
    p.inv_pt_id_main as p_seltene_ba,
    p.inv_pt_id_main as p_punkt,
    l.str_lebensraumtyp,
    p.str_gebiet_main as str_gebiet,
    p.str_lrt_main as str_lrt,
    l.str_kurzform_lrt,
    p.int_inv_pt_nr_main as punktnummer,
    p.int_be_main as bewertungseinheit,
    p.int_wg as wuchsgebiet,
    decode (int_status_sub, 1,' < img src = "#WORKSPACE_IMAGES #neu.png" > ', 2,' < img src = "#WORKSPACE_IMAGES #bearbeitet.png" > ', 3,' < img src = "#WORKSPACE_IMAGES #fertig.png" > ', 4,' < img src = "#WORKSPACE_IMAGES #unbrauchbar.png" > ', 5,' < img src = "#WORKSPACE_IMAGES #unklar.png" > ",)
    6, "< img src =" #WORKSPACE_IMAGES #Keine_Auswertung.png "(>') like bild,"
    i.str_status
    vt_punktdaten_join p,
    vt_tbl_status I,.
    vt_tbl_lebensraumtyp l
    where
    (p.int_status_sub = i.cnt_status) and
    (p.str_lrt_main = l.str_kurzform_lrt)
    and (p.cnt_gebiet =: p8_cnt_gebiet)
    and nvl(p.bool_show,0)! = 1) where)
    InStr (upper ("PUNKTNUMMER"), upper (nvl (: P8_POINTSEARCH, "PUNKTNUMMER"))) > 0
    ) {code}

    Otherwise, I tried to implement the query in pl/sql.
    However, I get an ORA-06550 error when you try to compile the following pl/sql code. Miserably, I can't find the error.
    Maybe you have an idea?

    {code} declare q varchar2 (4000);
    Start
    q: = ' select *)
    Select
    p.inv_pt_id_main as ptidm,
    p.inv_pt_id_main as p_bestand,
    p.inv_pt_id_main as p_schichtigkeit,
    p.inv_pt_id_main as p_entwicklung,
    p.inv_pt_id_main as p_verjueng,
    p.inv_pt_id_main as p_totholz,
    p.inv_pt_id_main as p_biotop,
    p.inv_pt_id_main as p_alter,
    p.inv_pt_id_main as p_beeintraechtigung,
    p.inv_pt_id_main as p_verjueng_aussen,
    p.inv_pt_id_main as p_seltene_ba,
    p.inv_pt_id_main as p_punkt,
    l.str_lebensraumtyp,
    p.str_gebiet_main as str_gebiet,
    p.str_lrt_main as str_lrt,
    l.str_kurzform_lrt,
    p.int_inv_pt_nr_main as punktnummer,
    p.int_be_main as bewertungseinheit,
    p.int_wg as wuchsgebiet,
    Decode (int_status_sub, 1, "< img src =" #WORKSPACE_IMAGES #neu.png ">", 2"< img src =" #WORKSPACE_IMAGES #bearbeitet.png ">", 3, "< img src =" #WORKSPACE_IMAGES #fertig.png ">", 4"< img src =" #WORKSPACE_IMAGES #unbrauchbar.png ">", 5, "< img src =" #WORKSPACE_IMAGES #unklar.png ">",)
    6, "< img src =" #WORKSPACE_IMAGES #Keine_Auswertung.png ">") such as bild,.
    i.str_status
    vt_punktdaten_join p,
    vt_tbl_status I,.
    vt_tbl_lebensraumtyp l
    where
    (p.int_status_sub = i.cnt_status) and
    (p.str_lrt_main = l.str_kurzform_lrt)
    and (p.cnt_gebiet =: p8_cnt_gebiet)
    and nvl(p.bool_show,0)! = 1)
    ' ;

    If: P8_POINTSEARCH is not null then
    q: q = |' where Punktnummer =: P8_POINTSEARCH';
    Another null.
    end if;

    Return to q;
    end; {code}


    Thanks for your comments!

    Brgds,

    SEB

    Edited by: skahlert the 19.07.2010 06:32

    This should give you what you need:

    SELECT *
      FROM (SELECT p.inv_pt_id_main AS ptidm, p.inv_pt_id_main AS p_bestand,
                   p.inv_pt_id_main AS p_schichtigkeit,
                   p.inv_pt_id_main AS p_entwicklung,
                   p.inv_pt_id_main AS p_verjueng, p.inv_pt_id_main AS p_totholz,
                   p.inv_pt_id_main AS p_biotop, p.inv_pt_id_main AS p_alter,
                   p.inv_pt_id_main AS p_beeintraechtigung,
                   p.inv_pt_id_main AS p_verjueng_aussen,
                   p.inv_pt_id_main AS p_seltene_ba, p.inv_pt_id_main AS p_punkt,
                   l.str_lebensraumtyp, p.str_gebiet_main AS str_gebiet,
                   p.str_lrt_main AS str_lrt, l.str_kurzform_lrt,
                   p.int_inv_pt_nr_main AS punktnummer,
                   p.int_be_main AS bewertungseinheit, p.int_wg AS wuchsgebiet,
                   DECODE
                      (int_status_sub,
                       1, '',
                       2, '',
                       3, '',
                       4, '',
                       5, '',
                       6, ''
                      ) AS bild,
                   i.str_status
              FROM vt_punktdaten_join p, vt_tbl_status i, vt_tbl_lebensraumtyp l
             WHERE (p.int_status_sub = i.cnt_status)
               AND (p.str_lrt_main = l.str_kurzform_lrt)
               AND (p.cnt_gebiet = :p8_cnt_gebiet)
               AND NVL (p.bool_show, 0) != 1)
     WHERE UPPER ("PUNKTNUMMER") = UPPER (NVL (:p8_pointsearch, "PUNKTNUMMER"))
    

    It returns all the lines if you do not enter anything and will match your entry if: p8_pointsearch is not NULL.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Can I use two cards at the same time on the same computer?

    Hello

    I have two graphics cards, one is integrated, i.e. HD 2500, Intel and the other is dedicated, i.e. Nvidia Geforce GT620. My question is that can I use both at the same time on the same PC. Whenever I try to connect via a VGA cable (per processor) and DVI (via graphic card) at the same time, the screen goes black and when I take off the DVI cable, the screen will return. When I connect the DVI again after log on, there is just the theme of Windows and folders that I opened all get reduced. When I disconnect the DVI cable once again, I opened the folder displays again.
     
    I want to make use of both integrated and dedicated graphics card, I read on the internet that two graphics cards give a performance gain. Also, I'm a gamer. But in time, I bought my PC, I had no knowledge about computers. I want to use two graphics cards. Please tell me a way by which I can use two graphics cards at the same time without the problem described above.

    Yes, you can use two cards graphics, combined to boost performance. But it depends on a condition: the two (or more) cards must be of the same brand. To make it clearer, you can use two or more NVIDIA graphics (thanks to SLI technology) or AMD graphics (with CrossFireX technology, supports up to four graphics card in a single PC).

    But, a mixture of graphics cards of different brand, as NVIDIA and AMD or NVIDIA and Intel or AMD and Intel or NVIDIA, AMD and Intel, can not be used for SLI or CrossFireX.
    On the black screen, please follow the following link:
    http://support.Microsoft.com/kb/976064
  • Transposition in order for the numeric field on the report

    On the report, there is some kind of transposition in the CSA for the number field order?
    I want the PivotTable to be in a State of the CSA by the number field.
    But it does not work.
    Thank you for your cooperation.

    How about sorting metrics in the step of step 1 (criteria define) first?

  • Is it possible to resize the content of at the same time multiple bounding boxes by using number fields in the toolbar?

    I'musing cs6 and need to resize an image and two text boxes on a specific pixel width.

    I try to select all the boxes and punching in 960 px in the resizing of the toolbar field, but only the bounding boxes and not their content get resized...

    Use the field of horizontal scaling (and include units) rather than the field width.

  • Bind a column to two fields in the spark DataGrid

    Hello

    IMED a spark datagrid that uses a GridItemRenderer with a RichText label display.

    the RichText column should display two or more fields of colors and sizes of diffrenet.

    How can I bind the column in two or more fields?

    any help would be great.

    Try changing

    lblData.text = data [column.dataField]

    TO

    lblData.textFlow = TextFlowUtil.importFromXML (XML (column.dataField));

    and also change the label function to wrap the back while

    While he will evaluate to valid XML

    HTH;

    Amy

  • DateDifference function using two fields of calendar from a dashboard command prompt

    Hello

    I have a command prompt with two input fields of user as a calendar type:

    Area 1: cast (' 01 / 01/2009 ' date)
    Field 2: cast (null as date)

    These fields are each captured in presentation variables. I'm trying to find the time difference between the two:

    TIMESTAMPDIFF (SQL_TSI_MONTH, CAST (' @{ST_DT}' AS DATE), CAST OFF (' @{END_DT}' AS DATE))

    I get this error message:

    Oracle error code: 1843, message: ORA-01843: not a valid month in the OIC call OCIStmtExecute: select distinct ROUND (MONTHS_BETWEEN (cast (31 December 2011' as DATE), cast off (' 01 / 03/2011 ' as DATE)))

    I guess that's due to the date format in the command prompt. The user enters something like 01/03/2011 but the system is perhaps looking for MMDDYYYY:DATETIME?

    Try this

    (TIMESTAMPDIFF (SQL_TSI_MONTH, EVALUATE ('TO_TIMESTAMP (TO_CHAR (%1), %2)'
    AS
    (00:00:00 TIMESTAMP,'@{Start_Month}{2011-01-01} ',' YYYY-MM-DD HH24:MI:SS'), EVALUATE ('TO_TIMESTAMP (TO_CHAR (%1), %2)'
    AS
    00:00:00 timestamp,'@{End_Month}{2011-01-31} ',' YYYY-MM-DD HH24:MI:SS')))

    Start_Month and End_Month are variables of presentation corresponding to the dates in the calendar by user entry.
    The column formula is below in the guest of dash board

    CASES where 1 = 0 then TEMP_RECORD. TRANSACTION_DATE of OTHER EVALUATE ('TO_DATE (%1, %2) {' as 00:00:00 DATE,'@{Start_Month}{2011-01-01} ',' YYYY-MM-DD hh) END

    CASES where 1 = 0 then TEMP_RECORD. TRANSACTION_DATE_2 of OTHER EVALUATE ('TO_DATE(%1,%2)' as DATE,' @{End_Month} {2011-01-31 00:00:00} ',' YYYY-MM-DD hh) END

  • Set the size of the field in the report and the interactive report

    Hello.

    I have 2 questions.

    1. How do I report and interactive report to broadcast 100% of the width of the screen, even with just 1 column?
    2. how to set the custom field size. For example, first field should be 100px 200px second and so forth

    Thank you.

    This is to answer your second question.
    Define the columns with a width of custom field?
    Go to declare attributes--> click Change next to the domain name-->
    Find the region column--> CSS formatting style:
    Enter the values you want to account for your specifications.

    Ex: CSS Style: Width: 100px
    or Style CSS: Width: 200px

  • Can I use two ipods with the same music from itunes

    I have now two iPods that I just bought one and the other with music on it I put on about 5 years. I don't have the original iTunes I got due to the evolution of computers. I want now to change music on the former and have the same music on two iPods that is possible please. I.e. synchronize them both to the music list an iTunes

    See recover your iTunes from your iPod or an iOS device.

    TT2

Maybe you are looking for