Need To Create a Calculation

Hi
I am developing a discoverer report, I'm working with Oracle Discoverer 3.1 - User Edition, Version 3.1.26.01 (dce.dll 3.1.83) Oracle End User Layer 3.1.13.0.0.0
I got a column (Open Time) with date and time "DD-Mon-YY HH:MI AM", and I need to create a New Column (Closed Time) as a calculation. The first Closed Time is one minute less than the second Open Time.
And continue with the same procedure, Second Closed Time is one minute less than the third Open Time.
The Queue Job Num. "90" is when the job is completed.
Here is an example of the table:
Id Num ----     Country ----- Tel Num ---------- Open Time ---------------- Closed Time ---------- Queue Job Num ---- Time In Queue Job
----1 ------------ PR ------ 7870502397 ---- 10/22/20074:56 PM ------------ ???? ------------------------- 56 ----------- (Open Time) - (Closed Time)
----1 ------------ PR ------ 7870502397 ---- 10/23/2007 8:50 AM ----------- ???? ------------------------- 26 ----------- (Open Time) - (Closed Time)
----1 ------------ PR ------     7870502397 ---- 10/24/2007 10:40 AM --------- ???? --------------------------76 ------------ (Open Time) - (Closed Time)
----1------------- PR ------     7870502397 ---- 10/26/2007 2:24 PM ----------- ???? ------------------------- 46 ----------- (Open Time) - (Closed Time)      
----1 ------------ PR ------     7870502397 ---- 10/26/2007 4:15 PM -----10/26/2007 4:15 PM ---------- 90
I tried make a calculation,but I failed..
Pls, help me out.
Regards
NVega54

Thank you Nilesh, to try to help me.
I don't have access to the database. I'm working with Oracle Discoverer 3.1 - User Edition, Version 3.1.26.01 (dce.dll 3.1.83) Oracle End User Layer 3.1.13.0.0.0. Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production.
The only information that I have is the Open Time of each Queue Job Num. And I need to create a calculation to get the Closed Time of each Queue Job.
The Closed Time in the first row is one minute less than the open time of the second row.
Id Num ---------- Open Time ---------------- Closed Time ---------- Queue Job Num ---- Time In Queue Job
----1 -------- 10/22/20074:56 PM --------------- ???? ------------------------- 56 ----------- (Open Time) - (Closed Time)
----1 -------- 10/23/2007 8:50 AM -------------- ???? ------------------------- 26 ----------- (Open Time) - (Closed Time)
----1 -------- 10/24/2007 10:40 AM ------------ ???? --------------------------76 ------------ (Open Time) - (Closed Time)
----1--------- 10/26/2007 2:24 PM -------------- ???? ------------------------- 46 ----------- (Open Time) - (Closed Time)
----1 -------- 10/26/2007 4:15 PM ------10/26/2007 4:15 PM ------------ 90
Thanks anyway for your help.
NVega54

Similar Messages

  • I need help! Need to create a calculator.

    Can someone tell me if it's possible to create a calculator on a website? I'm doing a website for a concrete company, and the owner wants a calculator on there for large scale jobs and I HAVE NO IDEA how to do it! Thanks.

    It is possible to create a calculator with Flash, to just about any complexity you like.  The key to alot of it is learning how to utilize input textfields and variables, and possibly the Math functions in your coding.  If the client will have options to choose from, like a drop list of material choices, then you'll also need to become familiar with coding and extracting selected values from components.

  • Help needed in creating a calculated keyfigure/query exit

    Hi Reporting Gurus
    Please someone give me a solution for my issue.
    I have two keyfigures
    Plan Finish Date(PFD)
    Actual Finish Date(AFD)
    I have one calculated keyfigure
    Delivery Status = (AFD<=PFD) .  When this condition is met it returns ‘1’ else ‘0’.
    But Delivery Status = (AFD<=PFD)  returns ‘1’  if AFD and PFD both exists and if the condition is met and also works (returns ‘1’) for the scenarios mentioned  below.
    1.     if AFD is blank and PFD is filled
    2.     if AFD and PFD both is blank.
    So I need  a solution for my issue in such a way that
    Delivery Status = (AFD<=PFD)  should return ‘1’ only if AFD and PFD both exists and only if AFD<=PFD.
    For rest of all the scenarios my calculated keyfigure should return ‘0’ , i.e.,
    1.if AFD is blank and PFD is filled
    2.if AFD and PFD both is blank.
    3.if AFD is filled and PFD is blank.
    How to achieve this?
    Should I have to write a customer exit variable and incorporate ABAP codes or should I have to write VB macros or can we have a calculated keyfigure with a necessary logic or is there any other way to achieve it.
    Please help me out.
    Thanks in Advance,
    Have a nice day
    Regards
    Sam

    You can create a new calculated key figure which calculates the result which looks as follows...
    =  ((AFD<>0) AND (PFD<>0) AND (AFD<=PFD)) * 1 + 0
        Please check the syntax when done. You can refer to the below link for more info abt using IF ELSE operations in calculated keyfigures. Please let me know if you come across any issues.
    http://help.sap.com/saphelp_nw04/helpdata/en/23/17f13a2f160f28e10000000a114084/content.htm

  • Need help with a calculated column - is there any way to reference a value in the current row?

    Hey guys,
    I'm a bit of a DAX newbie, and I'm running into a block. I'm creating a Power View report about IT tickets. We are going to be creating a cube to automate the data soon, I'm currently working with a flat Excel Data Table of data to demonstrate the Power
    View reporting capabilities to the team. I need the default display to show the top 4-5 items basked on the Ticket Count. The three applicable columns I'm using are the TicketID, the ContactReason, and the AssetCategory - all three are
    text. One slide will show the top five Contact Reasons by Ticket Count, and the other will show the top five Categories by Ticket Count. The users will see this default view, but will be able to change it to see differently ranked items or can clear the
    ranking slicer altogether.
    What I've accomplished so far is to create the Calculated Field [Ticket Count] = COUNTA(Table1[TicketID])
    And 2 other calculated fields:
    [Contact Rank] = RANKX(ALL(Table1[ContactReason]),[Ticket Count],,,DENSE)
    [Asset Rank] = RANKX(ALL(Table1[AssetCategory]),[Ticket Count],,,DENSE)
    If I were creating a Pivot Table, this would be great. These fields calculate everything the right way. The problem is, I need to have a Rank slicer on each slide and the calculation by itself contains no data - with no data, there's nothing to slice. I
    realized I need to actually have columns of data so I can create a slicer. I need each row of the table to show the same [Contact Rank] for every instance of a particular ContactReason (and the same for the [Asset Rank] and AssetCategory).
    The RANKX formulas pasted into the Calculated Column section only show a value of 1 - with no Pivot table summarizing the fields, it's counting each row's ticket once, giving every line the tied Rank of #1.
    I've solved the problem in Excel by creating 2 Pivot Tables on a separate sheet that have the data field and the calculated field for ContactRason and AssetCategory. Then on my Excel Data Table, I've added two columns that do a VLOOKUP and pull over a the
    Calculated Rank from each Pivot Table that match the ContactReason and AssetCategory fields. This works on the flat Excel Data Table now, but will not be a solutions when we start pulling the data from the cube (and there is no flat table).
    What I think I need is an Expression for the RANKX formula that can give me, for each row, the count of all of the times a ContactReason shows up in an entire column. There's only about 100,000 lines of data and each ContactReason or AssetCategory
    may show up several thousand times. But if I can get the expression to return that count, then the RANKX formula should work in the Column. If it wasn't a DAX formula, I'd use a COUNTIF and say 'Count the entire ContactReason column anytime it's equal to the
    ContactReason on THIS row', but in DAX I don't know how to reference a single value in a row. I've tried the CALCULATE() formula, but it seems like the filter needs a specific value, and doesn't work on a dynamic "cell" value.
    Any help would be greatly appreciated! (I hope it all makes sense!)

    If I've understood you correctly then the ALLEXCEPT function may be what you're after and it could be applied in a similar way to the following...
    =
    RANKX(
    ALL(Table1),
    CALCULATE(
    COUNTROWS(table1),
    ALLEXCEPT(Table1, Table1[ContactReason])
    DENSE
    If this has missed the mark, would it be possible to clarify the requirement further?
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com
    Blog: http://www.nimblelearn.com/blog
    Twitter: @nimblelearn

  • Need Urgent Help on Calculation items issue In Discoverer Plus

    Dear Discoverer Experts,
    I would need help on the below scenario:
    A
    147644.08
    147644.08
    Maximum: 147,644.08
    B
    142494.65
    5149.43
    Sum: 147,644.08
    C
    5149.43
    142494.65
    0
    Here A, B, C are columns and C column is Calculated Item(A-B) and Maximum and Sum are Totals items, everything working fine.
    The intent is that I would need the difference between totals items I mean Maximum and Sum , i.e Maximum-Sum (147,644.08 - 147,644.08) =0(in this case), but I am not able to get it, can anyone help me on this that would be greatly appreciated.
    Thanks
    skat

    Thanks Tamir for your response, i am getting ZERO
    But when i create new calculation item for examle TEST with calculation MAX(A) over () - SUM(B) over ()
    then i am getting new column next to C with name TEST and with two rows of data with 0 (Zero)
    like this
    TEST
    0.00
    0.00
    why am getting two rows of data, and that too can't we get this ZERO under C column at the same Row as MAX and SUM
    (Or)
    if not possible then after adding coumn TEST next to C column can we get ZERO in the row as MAX and SUM
    either way would be fine, can any one hlep on this issue.
    Thank you
    skat

  • Need to create filter in reports

    hi ,
    i need to create a filter on my report .
    the filter for field contract end date.
    for exammple - the object which i need to create the filters (HDREN_DT -
      Remove records with value < System Date
    ) this is the logic so what i need to do i want to go for customer exit or what
    need to create 2 CKF
    Earliest Doc Header End Date     Calculated KF     Min (HDREN_DT)
    Oldest Doc Header End Date     Calcualted KF     Max (HDREN_DT)
    Can anyone give some idea how can i go with this one.
    i choosen a formula variable with replacement path for the both the fields. whether this option is right or wrong.
    please help me in this one
    Regards ,
    vijju

    Hi,
    You have correctly identified.
    To achieve the filter on HDREN_DT, you can declare an exit variable & write the code behind. But here I'd suggest implementing logic like Date greater than or equal to System date (instead of removing dates less than System date as it will improve the querying.
    For the 2 CKFs, you can try the formula variable concept.
    --Akash

  • Help in creating MDX Calculated Member using attributes from multiple Dimension

    Hi All,
    First of all my knowledge on MDX is basic. In one of our projects, there is a requirement to create calculated member (similar to derived fields in SQL) which is more of a dimension attribute and not really a calculated member. Due to IP issues I cannot paste
    the actual queries but I will provide an SQL Query equivalent to what I am trying to achieve:
    Select P.Product, Case When ISNULL(FS.ArtistName,'') = '' Then P.ArtistName Else FS.ArtistName End Artist
     From
    dbo.FactMusicSales FS
    Join dbo.dimProduct P
    on P.DimProductKey =  FS.DimProductKey
    We are trying to replicate the logic for derving the "Artist" field using MDX script.
    We are running into issues while trying to build an MDX expression using the above logic. The main issue being that the new field/member "Artist" would not be calculated unless its elements are selected (FS.ArtistName, P.ArtistName). Besides this
    we are also unable to place this new member in a different folder other than a sub folder under the measures. Any pointers to solving this would be really helpful.
    Thanks in Advance,
    Venki

    Hi Venki,
    According to your description, you need to create calculated member (similar to derived fields in SQL) which is more of a dimension attribute and not really a calculated member, right?
    In your scenario, you needn't to achieve this requirement by using MDX. You can use a named query on your data source view. A named query is a SQL expression represented as a table. In a named query, you can specify an SQL expression to select rows and columns
    returned from one or more tables in one or more data sources. So in you scenario, you can use your query on the DSV, and then use the modified table to create a dimension.
    http://msdn.microsoft.com/en-IN/library/ms175683.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Question to create a calculation to add three table's cells for a grand total

    I need help with creating a calculation to add three tables.  Table, 6, 7 and 8.  The total of all tables should be in the last table where it says Total.
    I would appreciate any help.
    Thanks

    If this is the resultyou are looking for the attached will help.
    Steve
    Please post LiveCycle Designer ES questions in that forum in the future.

  • Need some help on Calculated Key Figures

    Hello All,
    I created a query on a multiprovider and trying to add a field to an existing Structure on rows.
    The new field is a combination of 5 differnt key figures.
    Eg: (KF1KF2KF3KF4KF5) / KF6 * 100.
    How can I add this formula field into the strucuture on rows. do i need to create a CKF ??
    Thaks in Advacne.

    Hello,
    Yes you can create a calculated key figure if you are going to reuse the calculation. However, if you're going to use this only once, you can just create a local formula. Just right click on the structure and then select New formula to create a new formula or create a new calculated key figure on the left screen panel to create a calculated key figure.
    Hope this helps,
    Juice

  • Need to create a a line after each subtotal-Smartform

    Hi I need to create a uline after each of the sub totals in my smartform.Like if theer are 7 items in the form and for each of the item there are 2-3 sub-items under it , I have calculated the sub totals for each of the item and to distingusih tjem separately i want to create a line after each of my sub totals for the items . How do i create the line after each of the items ?
    Thanks
    Aarav

    Hi Aarav
    Read this wiki.In the 8th step given there,GOTO the text element and give a ULINE there if needed.
    I think since this example is of tabular display you might not need a ULINE there.
    [https://wiki.sdn.sap.com/wiki/display/ABAP/SUBTOTALINSAP+SMARTFORMS]
    This defnitly will solve your problem.
    Regards
    Hareesh

  • Need to create report query to get latest open and last closed period for given application

    Hi All,
    I need to create a report query to get below result displayed in report output.
    1)   -   Application name
    2)   -    Ledger name
    -o/  -Operating Unit
    3)   -  Last Closed Period
    4)   -  Current Open Period
    5)   -  Date Closed – Last Closed Period
    6)   -  Date Open – Current Open Period
    I tr I tried to create the query below is the same. Please let me know if it looks fine.
    SELECT *
      FROM (SELECT fav.application_name ,
                   hou.name Operating_Unit_Name,
                   gl.name Ledger_name,
                   gl.latest_opened_period_name,
                   gps.period_name Period_Name,
                   DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
                   gps.last_update_date Last_status_modified_date
              FROM gl_period_statuses gps,
                   gl_sets_of_books   gsob,
                   fnd_application_vl fav,
                   hr_operating_units hou,
                   gl_ledgers         gl
             WHERE gps.period_name = gps.period_name
               AND gps.closing_status ='C'
               AND fav.application_short_name =
                   NVL('&p_application_short_name', fav.application_short_name)
               AND gps.application_id = fav.application_id
               AND gsob.set_of_books_id = gps.set_of_books_id
               AND hou.set_of_books_id = gps.set_of_books_id
               AND gl.ledger_id = gsob.set_of_books_id
               AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
               AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id) 
             ORDER BY gps.last_update_date desc )WHERE ROWNUM = 1 
    UNION ALL
    SELECT *
      FROM (SELECT fav.application_name Application_Name,
                   hou.name Operating_Unit_Name,
                   gl.name Ledger_name,
                   gl.latest_opened_period_name,
                   gps.period_name Period_Name,
                   DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
                   gps.last_update_date Last_status_modified_date
              FROM gl_period_statuses gps,
                   gl_sets_of_books   gsob,
                   fnd_application_vl fav,
                   hr_operating_units hou,
                   gl_ledgers         gl
             WHERE gps.period_name = gps.period_name
               AND gps.closing_status = 'O'
               AND fav.application_short_name =
                   NVL('&p_application_short_name', fav.application_short_name)
               AND gps.application_id = fav.application_id
               AND gsob.set_of_books_id = gps.set_of_books_id
               AND hou.set_of_books_id = gps.set_of_books_id
               AND gl.ledger_id = gsob.set_of_books_id
               AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
               AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id) 
             ORDER BY gps.last_update_date desc)
             WHERE ROWNUM = 1

    It is within the table I believe (I'm not a DBA or a developer) since I created a BLOB column and then used the file browse feature to allow users to attach a resume to the table in order to be able to perform a search of the attached documents.
    I'm just having a hard time pointing the link in the search results report to the document in the blob column.
    The information on that page is great if you're trying to create a link to the document on the initial report.
    But I created a query using Oracle Text to run a report that does a boolean search of the attached word documents in the table.
    When it displays the search results, it doesn't create a link to the document and I can't figure out how to do it.
    Here's a link the the instructions I used to create the initial search report with Oracle Text, mind you I only created the index and query, I didn't add in all the link data since they're using documents on websites and I'm using documents in a table.
    http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
    If you can help me with this I'd really appreciate it.
    Thanks again.
    Greg
    Edited by: gjones77 on Dec 2, 2008 8:14 AM

  • Help needed to create Quik Time VR movies, step by step

    Hello,
    thank you for your attenction.
    I need to create Quick time vr movies, and I need to know the exact sequance of steeps to do it, and if the starting point I use is correct.
    1) I shooted a sequence of photos with my digital camera (for example: www.stebianchi.com/quicktimevrhelp/still-photo.jpg).
    2) Then, with photoshop (CS4) I choose: Automate/photomerge and I select all them to joint them in a bigger 360° panoramic one (www.stebianchi.com/quicktimevrhelp/pan.jpg). If, untill here, all is correct, the first question: in photoshop Photomerge layout option, do I have to choose one voice "auto, perspective, cylindrical, spherical, etc..." rather than anoter one of these?
    3) from here, I really need your help.
    First of all: the great doubt:
    My photos can not cover a spherical panorama, they're only a "ring" around a center (and not a spherical texture). To cover all the surface (or almost all, ok...) of my ambient, do I have to use a wider lens on my camera or there is a different solution (for ex a vertical photomerge?).
    4) Done this, I think I shuold buy a software like Cubic converter, to set and export the QTVR movie. Right?
    Thanks a lot guys,
    all the best!
    Stefano

    You can call your local apple store(find one on the home page of apple.com) and they will give you instructions how to convert DVD to iPod. That is what they told me, but from what I heard, you may need more than Quicktime Pro. Just call and ask them, because if you make a manual of how to do it, it could help me a lot.
    (I'm looking for a good DVD converter, already know some, beside the internet download ones)

  • Need To Create a table in Sql Server and do some culculation into the table from Oracle and Sql

    Hello All,
    I'm moving a data from Oracle to Sql Server with ETL (80 tables with data) and i want to track the number of records that i moving on the daily basis , so i need to create a table in SQL Server, wilth 4 columns , Table name, OracleRowsCount, SqlRowCount,
    and Diff(OracleRowsCount - SqlRowCount) that will tell me the each table how many rows i have in Oracle, how many rows i have in SQL after ETL load, and different between them, something like that:
    Table Name  OracleRowsCount   SqlRowCount  Diff
    Customer                150                 150            
    0
    Sales                      2000                1998          
    2
    Devisions                 5                       5             
    0
    (I can add alot of SQL Tasks and variables per each table but it not seems logicly to do that, i tryid to find a way to deal with that in vb but i didn't find)
    What the simplest way to do it ?
    Thank you
    Best Regards
    Daniel

    Hi Daniel,
    According to your description, what you want is an indicator to show whether all the rows are inserted to the destination table. To achieve your goal, you can add a Row Count Transformation following the OLE DB Destination, and redirect bad rows to the Row
    Count Transformation. This way, we can get the count of the bad rows without redirecting these rows. Since the row count value is stored in a variable, we can create another string type variable to retrieve the row count value from the variable used by the
    Row Count Transformation, and then use a Send Mail Task to send the row count value in an email message body. You can also insert the row count value to the SQL Server table through Execute SQL Task. Then, you can check whether bad rows were generated in the
    package by querying this table.  
    Regards,
    Mike Yin
    TechNet Community Support

  • Need help with preforming calculations on a form

    i'm working on a form in desinger 7 and i need to proform some calculations
    thanks fred

    part of for below. its just basic but i have never done this before in desiner
    thanks fred

  • I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    do I need to create another account with a different email account
    Yes, the email addresses need to be unique to each device. You may use the same Apple ID on each device, but the email address used by each device needs to be different.

Maybe you are looking for

  • Recovering from a hard drive failure

    My HD recently failed, I just got my machine back from my friendly Apple Store. Thankfully, my iTunes library is on an external HD. I got my music up and running, but I can't get the TV shows I had back in my library. They are all in the iTunes Music

  • Trouble with downloading itunes in windows 7 pro

    trying to download the new version of itunes into my toshiba laptop with Windows 7 pro and it is giving me a error message and will not download.  Any suggestions.

  • Preview function doesn't work in Cap2

    I just installed Captivate2. In the project I'm working on, the Preview function doesn't work. Or rather, it works sporadically... sometimes it does, and --- much more often -- it does not. What happens instead is, the "generating slides" message app

  • Documaker : How to set the overflow repeated 3 times always.

    Hi Experts, I have 3 forms as follows. 1. FormA (contains Subform1) 2. Subform1 (contains Subform2) 3. Subform2 Subform1 on FormA is setting the overflow with the trigger by the XML. Search Mask (counter) : !/xxx/data/Repeats/Repeat I want to output

  • How OrderBy Works?

    hi can anyone tell me how order by works in oracle? here the company take has got few million records. select * from company ; i get the result in few seconds . select * from company order by company_id ; this takes long time to get the result .. is