Calculate two column in bi publisher

Hi all:
I have one group,and then i sum two column in this group,and get sum1,sum2,when i want to display this result of sum1 MINUS sum2 in bi publisher,for example:
the value of sum1 is 800,the value of sum2 is 600, in the rtf ,i put sum1-sum2 ,and get the display 800-600,but i want to get the result 200,not the expression 800-600,
how can i achieve this?
thank you!

Hi,
instead of <?1-1?> use <?xdofx:1-1?> (see http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm)
<?sum(column1)-sum(column2)?> works for me, but you can try <?xdoxslt:sum(column1)-sum(column2)?>
Regards
Rainer

Similar Messages

  • Formula that calculate two columns/text

    Good afternoon Everyone,
    I am trying to write a formula (if it exists) that will allow me to look at two different columns of data and calculate 3 pieces of information:
    1. Open items per consultant
    2. Closed items per consultant
    3. Percentage of open items based on total of open and closed items per consultant.
    example: I want it to calculate Stacy has x amount of total open items from the list. Here's part of my spreadsheet. The columns (Open Actions, Closed Actions and % Open Actions) will be a seperate table.
    Item #
    Requested Date
    Main SME
    Target Date
    Status
    Open Actions
    Closed Actions
    % Open Actions
    1
    4/28/2014
    Stacy
    6/27/2014
    Open
    2
    4/28/2014
    Stacy
    6/27/2014
    Open
    3
    4/29/2014
    Stacy
    5/29/2014
    Closed
    4
    4/29/2014
    Stacy
    5/29/2014
    Closed
    5
    4/29/2014
    Stacy
    5/29/2014
    Closed
    6
    4/29/2014
    Stacy
    10/1/2014
    Deferred to Design
    7
    4/29/2014
    Stacy
    5/29/2014
    Closed
    8
    4/29/2014
    Stacy
    5/29/2014
    Closed
    9
    4/29/2014
    Stacy
    5/29/2014
    Closed
    10
    4/29/2014
    Stacy
    5/29/2014
    Closed
    11
    4/29/2014
    Stacy
    5/29/2014
    Closed
    12
    4/29/2014
    Stacy
    6/6/2014
    Closed
    13
    4/29/2014
    Eric
    7/11/2014
    Open
    14
    4/29/2014
    Mukund
    7/11/2014
    Open
    15
    4/29/2014
    Rao
    7/11/2014
    Open
    16
    4/29/2014
    Stacy
    6/27/2014
    Open
    17
    4/29/2014
    Sriram
    5/29/2014
    Closed
    18
    4/29/2014
    Sriram
    5/29/2014
    Closed
    19
    4/29/2014
    Sumit
    6/13/2014
    Open
    Thanks in advance, Cicely

    Open items:
    =COUNTIFS(C:C,"Stacy",E:E,"Open")  
    or use a cell reference with the name "Stacy" - use this if you have a list of names you want to use and want to just copy the formula down to match the list:
    =COUNTIFS(C:C,G2,E:E,"Open") 
    Closed items
    =COUNTIFS(C:C,"Stacy",E:E,"Closed")
    Percentages:
    =Cell1/(Cell1 + Cell2)
    where Cell1 and 2 are the cells with the formulas.

  • How to get the difference between two columns in a column group

    Hi All,
    My first time here and really new to programming. I would like to get the difference between 2 columns that are inside 
    a column group.
    Here is my sample table below: The Column Group is PeriodNumber and can only choose 2. like 1 and 2.. I would like to have a third row which will simply calculate the difference between the amounts in PeriodNumber 1 and 2.
                                PeriodNumber          
    Account                    1                            2     
    1) Cash                10,000                15,000
    2) Receivables      12,000                11,500
    3) Equipment          5,000                  5,500
    Total Assets          27,000                32,000

    Hi yabgestopa,
    From your description, you want to get the difference between two columns in a column group. After testing it in my environment, we can use custom code to achieve your requirement. For more details, you can refer to the following steps:
    Copy the custom code below and paste it to your report. (Right-click report>Report Properties>Code)
    Dim Shared Num1 As Integer
    Dim shared Num2 As Integer
    Public Function GetAmount(Amount as Integer, Type as String)
    If Type = "1" Then
    Num1=Amount
    Else
    Num2=Amount
    End If
    Return Amount
    End Function
    Public Function GetDif()
    Return Num1-Num2
    End function
    Right-click the second column to insert a third column with Outside Group-Right.
    Then use the expressions below in the matrix.
    =Code.GetAmount(Fields!Amount.Value,Fields!PeriodNumber.Value)
    =code.GetAmount(Sum(Fields!Amount.Value),Fields!PeriodNumber.Value)
    =Code.GetDif()
    The report looks like below.
    If you have any questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Split calcutated keyfigures itnto two columns depending on their value

    Hi everybody
    I have the following request:
    During runtime of a query I calculate the difference between two values (keyfigures). In another column I should show the sum of those differences if they are lower than X (lets say lower thant 2) and in a third column the sum of those values if they are greater than X (lets say greater equal 2). But and this is important I only have to show the overall sum of it. There is no possibility to show every single entry of the data as it is over a million records.
    01: type
    02: contract
    03: sum1
    04: sum2
    05: difference between sum1 and sum2
    06: differences ge 2
    07: differences lt 2     
    Example Data:
    01 *  02.*  03 * 04  
    A   *   1  *   20  *  19                                             
    A   *   2  *    50 *   48                             
    A  *    3  *   10   *   6                                 
    B   *   4  *     9 *     7                                
    B   *   5   *  25 *   24                                             
    so for type A the differences are 1, 2 and 4 and for type B the differences are 2 and 1. So in the result lne I should have for A a columne that shows 1 for the difference lower than 2 and in the other column 6 for the two differences that are greater than 2 etc.
    what the report should show:
    001    003 004  005  006  007
    A   *   80 *  73 *  7  * 6  *  1
    B   *  34  *  31 *  3  * 2  *  1
    How can I realise this splitting of the calculated keyfigure into two columns? The X is a Variable on the selection screen so the user can select how he wants the values to be splitted.
    Can I get the keyfigures to behave like this or do I have to do the calculations already during the dataload  and save the difference as an infoobject and use it as characteristic in the query?  I would like to avoid this if possible.
    Thanks for your ideas and help!
    Have a great day
    best regards
    Christophe

    Hi,
    Yes ofcourse you will get this in query designer
    suppose i have data like
    salary
    10
    20
    30
    40
    50
    now i want to split this into 2 coloumns like >25 into one column <25 into another column
    first salary
    10
    20
    30
    second salary
    40
    50
    in first column take (salary < 25)*salary
    in second column take (salary > 25)*salary
    why we are multiplying means > value gives 1 if it is ok and 0 if it not ok in order to get data we multiply with salary.
    goto query properties suppress zeroes.
    Assign points if it helps,
    thanka,
    pavan.

  • Add Two Column in report ,Download and Delete

    Hi Friends,
    i have one item File Browser to use browse :P1_file_browser and i have create a Report
    My Table Is
    CREATE TABLE  "ARM_DOC_CER"
       (     "ID" NUMBER,
         "NAME" VARCHAR2(500),
         "MIME_TYPE" CLOB,
         "BLOB_CONTENT" BLOB,
         "SUBJECT" VARCHAR2(500)
    i jus want to add two column in my report
    1--Download
    2--Delete
    When i click on download then download file and when i click on delete then delete corresponding file.
    How can i do this.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    You can use concat function or also '||' to combine two columns.
    1. with concat-
    concat("D4 Product"."P01 Product","D4 Product"."P02 Product Type")
    2. With '||' operator
    "D4 Product"."P01 Product" || '-'||"D4 Product"."P02 Product Type"
    (Remove '-' if not required)
    This should resolve. Hope this helps
    Regards
    MuRam

  • How do I compare two columns of data in Numbers to find the unique results?

    Hello all,
    I'm looking for a way to compare the data from two columns so I can find the unique results and display that data in a third column. To be specific, here's what I'm doing.
    Column A is a list of email addresses for people I have already written. Column B is a list of email addresses for people I would like to contact. I am not sure if there are email address from Column A in Column B, but there may be and if there are, I must find out so that I don't send a second email to these recipients. How can I have Numbers look at both columns and tell me which email addresses in Column B are not in Column A?
    Thanks for the help!!!

    gfmp123,
    Here's an alternate use of MATCH to find duplicates. I hope you find one of the two solutions, Wayne's or this one, useful for your case.
    The expression in Column C is:
    =IFERROR("Dup in Row "&MATCH(B, A,0), "")
    Regards,
    Jerry

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Count first two columns

    Hello,
    I have a count requirement that i havent been able to solve by searching sdn.  Maybe someone can help.
    I have a query built on a multiprovider that points to two basic cubes.  The basic cubes do not contain a count key figure.  The first two columns of my query are characteristics.  My requirement is to count the occurences of the combination of the first two column (characteristics).  I am looking for a way to do this in the query so i do not have to reload the cubes as they have large volumes of data.  All the suggestions i have been able to find on sdn seem to be only for counting a single characteristic.  Is there a way to count the combination of two?
    Regards,
    TMS

    Hi Create a count using the formula or calculated ket figure for the count unique id like client id for your infocube.
    so you will have a count for each row now. place this count object in your column.
    now select the two char or the group whatever you want a count in your row.
    select query properties and select the display tab and make sure the option - hide repeated key values is selected (normally by default it is selected). Then select each of the char in rows and in free char and set the option under display tab result rows - always suppress.
    Execute the query now. you will get the list of char and their count. sort the count by descending to get the most duplicate entries by their highest number on top in the count coulmn.
    you can also ignore the rows which donot have a duplicate i.e count more than 1 by creating a new condintion on the count key figure > 1 and restricting the condition  by only the group of char you have given in the column. so that you can also do a drill down by free char in your query and it will only show the duplicates group.
    Hope it helps.
    regards,
    Siva

  • Export option in ALV report downloades first two columns blank

    Hi ,
    Before posting this query I searched the solution in SDN but I did't find the solution.
    My problem is  After displaying report in ALV format ,if I press Export --> Local file --->spreadsheet ;  file will downloaded to excel sheet but first two columns(only heading no data ) will be blank  and next two columns with proper data.
    I checked field catalog defination it seems to be ok,  any other mistake ?
    Please suggest.
    Narayan

    Hi
    It's the option you have in the path System->List->Save->Local file
    I means it's the standard option to export an abap list into a local file, so you should try this path too and check if the resul it's the same
    I think you should choose  Export --->spreadsheet: here before saving the file an excel document will be open
    Max

  • Merge Two Rows of a table to One row but into two columns

    Hi
    I Am struck in writing a query to merge two rows into two columns of one row.
    Here is the Sample data i am working with,
    Col 1     Col 2     Col3 Col4 Col Col6
    5000     573-3000 2     0     Phone      
    5000     573-3036 1     0          Fax
    5000     893-5703 3     0     WOrk      
    3000     232-5656     1     0     Phone     
    3000     353-5656     2     0          FAx
    Here Col,Col3,Col4 form the Key.
    now wht i am trying to do is to Merge these type of rows put them into Columns P,F,W,E respectively to achive a Structure as below
    Col1      P     F     W
    5000     573-3000      573-3036      893-5703
    3000     232-5656     353-5656     
    Can you please help me how could i do this.
    I am pretty ordinary at writing SQL's.
    Thanks a Lot in Advance
    Message was edited by:
    Sreebhushan

    Search the forum for PIVOT and you'll find plenty of examples.

  • How to add two columns in criteria(OBIEE 11g)

    Hi,
    I am trying to add two columns in a criteria in obiee
    *"Fact - OLB Processed Invoices"."Invoice Amount - Functional Currency"__"Fact - OLB Processed Invoices"."AR Tax Amount - Invoice Currency"
    but the problem is :-
    The first column have 500000000 and the second column contains NULL values the actual table. I think this might be the problem when I am trying to add them it is giving no output.
    just a blank box.
    Can any one tell me how can we add columns in this condition.
    Thank to one and all.

    Try IFNULL(expr, value)
    for other column
    "Fact - OLB Processed Invoices"."Invoice Amount - Functional Currency"+IFNULL("Fact - OLB Processed Invoices"."AR Tax Amount - Invoice Currency",0)
    Edited by: Srini VEERAVALLI on Mar 20, 2013 10:02 AM

  • How to add two columns in OBIEE report?

    Hi to All,
    Can anyone tell me how to add two columns in OBIEE report and get that result in a new column?
    Thanks in Advance,
    Thenmozhi

    Assume you already have two columns SalesAmt1 and SalesAmt2, and you want to derive 3rd column say SalesAmt3 which would be the sum of SalesAmt1 and SalesAmt2.
    For this, as I mentioned above pull SalesAmt1 and SalesAmt2 columns in Report. Now pull another column (say SalesAmt1) and open the fx. Clear the contents of fx. Now locate the columns button in the bottom of the fx. From Here, first select SalesAmt1 and + sign and the select SalesAmt2.
    Now in this new column, the fx should look like SalesAmt1 + SalesAmt2.
    Let me know if you are looking for something else.
    Thanks

  • Retrieve of data from two columns into one column

    For eg: i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    Through a select i want the output of my data in one single
    columns, Well I can do this by using union.
    But my output should be like
    if I select by condition where A=2
    my output should be
    2
    1
    3
    7
    4
    because all these numbers are linked with 2 how do i do this
    because it is like searching the number 2 in two columns and wherever this number 2 is linked i should get all the data relevant to it.
    Hope u got my point what i exactly want
    Can anyone help me it is quite urgent.
    Regards
    Vamsi Mohan

    i do not a concatenated data
    i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    if my where condition is 'where A=2'
    my output should be
    1
    2
    3
    4
    5
    6
    8
    10
    i want my query to search as loop so that it keeps on searching
    for related data as in my case it is
    2 is linked to 1
    1 is linked to 3
    3 is linked to 4
    my query should keep on seaching for linked numbers till
    it does not find any mathing linked numbers
    and the resulted output should come in one single column

  • In Pages, how can I make one page have one column on part of the page and two columns on part of the page?

    What I am trying to achieve is a page with one column for all the text I write, but I also want to show two tables (one placed beside the other, not underneath the other) so on the part of the page where I am showing these tables, I would like to have two columns. Is this possible? Underneath the tables, there is more text that should be in one column only.

    Use a layout break.

  • Calendar --  How to view "to do list" in two columns per day in Month view?

    In OSX 10.6.8, my old Calendar would automatically go into two column view to show all my "to do" items, but 10.8.5 Calendar isn't doing this when I put over 12-14 items and just says "2 more..." instead of going to two columns and truncating them.  -- Is there a way to turn this 2x column view on?  or another way to show all of my to items?
    Any ideas/help appreciated.  TIA

    the "Employee Directory" shows you the photos by default. Should not be that hard to add an url via personalizations that points to that directory.
    good luck.

Maybe you are looking for

  • Thunderbolt to Firewire Slow

    I have a new MacBook pro with Retina display and I want to use the migration utility to tranfer my files from my late 2011 MacBook Pro. I bought the Thunderbolt to firewire adapter and connected it all up, but it's going very slow.  There is about 10

  • Unzip problemes with oracle 9.2

    Hi, everytime i try to unzip the cpio files with the command: cpio -idmv < (path) i get an error: cpio: read error: Is a directory Can somebody help me? Thank you

  • How can I edit my old iWeb-page?

    Started playing with iWeb in 08 and then forgot about it. Now I want to get started again and wish to use my old page. Is it possible to get all the info to my iWeb even though I don't have it on my computer? Or is the easiest thing just to start all

  • IPhoto 9.4.2 crashes everytime

    Running 10.7.5 on my iMac and iPhoto 9.4.2 crashes when I try to open it. I read the posts about PhotoStream being the culprit, which I still think may be true. I killed the corresponding iLife/photoStream prefs, restarted and it still fails. PhotoSt

  • Book Cover Error? wo have I to contact?

    Hi, i have become today the last book (the 5th of a serie) but with a problem: the Title of the book isn't printed on the side of the book... Yes, it is a little problem...but in my library I have 4 books with the title (South Africa vol.1, South Afr