Report with multiple calculations

I learn the reports and the need of some inputs on how can I manipulate the following report

1. one of my region summarized in the report should show 5 amounts as a view table and the sixth column should be the sum of the first 4 columns (I get these 5 values with a query)
2. in the second row with an external condition is false, I need to put zeros under each column one ad the sixth also is zero
3. but if the condition is true, I need to calculate a new amount (multiply by %) and to show the title of each column that amount and again to add the new amounts in the sixth column

I don't know if I have to use forumla or place holders, please help me.

Thank you

user13432927 wrote:
Thanks for your suggestions and help. Finally I am getting good results in my aging report.
But I used formulas, can you suggest any other means other than the application and forms.
Thanks for solving the problem.

It is with pleasure that I can help someone in his work :) What is otherwise in oracle reports another sql then? All awards go to you, you did this thing to work.

Please mark she replied that someone else can use it.

And for the amount (EX: 500) I put symbol $, while I can get help how to do that?

Yes. You can. Use the properties of the field format mask. Choose the one right for you. For example

LNNNGNNNGNN0D00
$NNN,NN0.NN

Hope this will help you...

If someone useful or appropriate, please mark accordingly.

Tags: Oracle Development

Similar Questions

  • Report with multiple columns NUMBER of counts of the same table

    I am new to discoverer, so I'm a little lost.

    I work to create a report to show usage data and Knowledge Base of e-business. I have written using subqueries in SQL query that is in the format:

    Solution number | Soultion title | Solution views. Positive feedback | Negative feedback
    Title of 12345 _ 345 _ 98 34


    The entries 'Views', 'Positive' and 'Negative' are stored in the same table, so I do a count where setid = setid and usedtype = VS, then count where usedtype = usedtype and PF = NF

    Discoverer, I can get the number of solution, the title and THE totals but I can't seem to understand how to get an ACCOUNT for three different things from the same table in the columns on the same line.

    When I go on change map-> select the items once I select the option NUMBER of the UsedType column in the CS_KB_SET_USED_HISTS table, I can't select it again. I also found way now to add a column based on a query entered.

    If someone could help it would be much appreciated.

    Thank you

    Published by: Toolman21 on December 2, 2010 14:17
    _ to correct spacing added.

    Hello
    You can separate the column with a case or decode.
    for example to create 2 calculations:

    case
    When usedtype = "PF".
    then - that contain both
    0 otherwise
    end

    case
    When usedtype = 'NF '.
    then - that contain both
    0 otherwise
    end

    After that, you can create the aggregation count on those.

    Tamir

  • OBIEE report with multiple fact tables

    I want to build a report so that it will be have.

    Attribute columns in the dimension D1, D2, D3 tables.

    Measure the columns of the tables of facts F1, F2.

    F1 and F2 are attached with D1, while only F1 joined with D2 and D3.

    When I build this report and run, I see the correct data of F1 but get no matter what value of F2 that the query is not the column measure F2.

    Please help solve this problem.

    This is the point: why haven't you installation of hierarchies for D2 and D3 (when you say logic dimension, I assume that you mean the logical hierarchy as dimensionless, as if there is no D2 and D3)?

    To be able to say OBIEE how manage the absence of joins between D2 - F2 and F2 - D3 you need of them set at grand total level hierarchies and required parameters for the F2 values can be shown next to the F1, D1, D2, D3.

    PS: I assume that your report is D1, D2, D3, F1 and F2, otherwise what to talk of D2 and D3 in the first post?

  • Interactive report with Null columns

    I have a user who wants to export an interactive report, and there need to some columns will appear on export so that he can fill the data later (there is an intermediate step, while we work on getting all the data they need in the database). I created the report query, and there are a handful of columns null or empty (to keep the correct order for export). When I try to add this query to the APEX, in an interactive report, I get an "ORA-00001: unique constraint (APEX_040000.WWV_FLOW_WORKSHEET_COLUMNS_UK2) violated" error.

    Googling autour shows me that this happens because of the columns the same name, and the solution is to provide aliases for all columns. My report has alias on all columns, but I can't yet create an interactive report. I tried to change the columns null of empty strings, as well as encompassing the alias in double - quotes, but nothing works. However, I can use my original query to create a standard report, but due to export, this is not ideal.

    I was able to create the interactive report with a null and then edited the source column of the report to add to the others. This had to be done one at a time, given that you are trying to add several null columns at the same time gives the same error even once. Unfortunately, when I try and you run the page, I get a ' ORA-20001: get_dbms_sql_cursor error ORA-00918: column ambiguously defined "error.

    My original query:
    select customer.customer_name as customer,
           project.name as project_name,        
           trunc(project.estimated_end_dt) as due_date, 
           project_status.project_status_desc as status, 
           null as revenue, 
           project.baseline_effort as baseline_hours,
           null as projected_cost,
           null as est_gain_loss, 
           project.actual_hours as actual_hours,
           project.estimated_hours as projected_hours,
           null as projected_cost, 
           null as projected_gain_loss, 
           null as roi       
        from project, 
             customer
      where customer.customer_id = project.customer_id
      and project.inactive_ind = 0
      and project.customer_id is not null
      and project.estimated_end_dt >= :DTP_P50_STARTDT
      and project.estimated_end_dt <= :DTP_P50_ENDDT
    order by customer.customer_name, 
             project.estimated_end_dt;             
    Can someone tell me a way to create an interactive report with multiple null columns?

    Hi shimmoril,

    The problem is probably that you have two columns aliased as 'projected_cost' (columns 7 and 11).

    Hope this helps,
    John

    If you find this information useful, please indicate the 'useful' or 'correct' post so that others benefit. *

  • With multiple vcenter inventory

    Hi guys,.

    Try to get connected with multiple vcenter inventory,

    Have problems with the release of some VM are attributed to wrong Vcenter and running OS is not always correct.

    Can anyone help?

    Here's the script:

    $VmInfo = Foreach ($vcenter in $global: DefaultVIServers) {}

    ForEach ($Datacenter in (Get-Data Center |)) Sort - Object - property name)) {}

    ForEach ($Cluster in ($Datacenter |)) Get-Cluster | Sort - Object - property name)) {}

    ForEach ($VM in ($Cluster |)) Get - VM | Sort - Object - property name)) {}

    ForEach ($HardDisk to ($VM |)) Get-hard drive | Sort - Object - property name)) {}

    "" | Select-Object - property @{N = "VM"; E = {$VM. Name}},

    @{N = 'Vcenter'; E = {$vcenter. Name}},

    @{N = "OS"; E = {$vm. Guest.OsFullName}},

    @{N = 'Center'; {E = {$Datacenter.Name}}.

    @{N = 'Cluster'; E = {$cluster. Name}},

    @{N = 'Host'; E = {$vm. VMHost.Name}},

    @{N = "HostVersion"; E = {$vm. VMHost.version}}

    }

    }

    }

    }

    }

    $VmInfo | Export-Csv - NoTypeInformation - UseCulture-Path "D:\report.csv".

    Try like this.

    -What is produced fewer lines?

    $VmInfo = Foreach ($vcenter in $global: DefaultVIServers) {}

    ForEach ($Datacenter in (Get-Data Center-Server $vcenter |)) Sort - Object - property name)) {}

    ForEach ($Cluster in ($Datacenter |)) Get-Cluster-Server $vcenter | Sort - Object - property name)) {}

    ForEach ($VM in ($Cluster |)) Get-VM-Server $vcenter | Sort - Object - property name)) {}

    ForEach ($HardDisk to ($VM |)) Get-disk hard-Server $vcenter | Sort - Object - property name)) {}

    "" | Select-Object - property @{N = "VM"; E = {$VM. Name}},

    @{N = 'Vcenter'; E = {$vcenter. Name}},

    @{N = "OS"; E = {$vm. Guest.OsFullName}},

    @{N = 'Center'; {E = {$Datacenter.Name}}.

    @{N = 'Cluster'; E = {$cluster. Name}},

    @{N = 'Host'; E = {$vm. VMHost.Name}},

    @{N = "HostVersion"; E = {$vm. VMHost.version}}

    }

    }

    }

    }

    }

    $VmInfo | Export-Csv - NoTypeInformation - UseCulture-Path "D:\report.csv".

  • Reports on multiple virtual centers and export to CSV format

    Everyone,

    Does anyone know if possible a way for me to do the following in the following format.

    Requirements:

    (1) report on multiple virtual centers

    (2) export results to CSV or Excel with a title between each virtual Center

    (3) the need for Virtual Center Cluster belongs, name of the Cluster, host number of ESX and number of virtual machines. (Additional information can be added to the report later).

    It would be not so hard if I could just connect and report on all virtual centers and my results to export in this way.  However, each virtual server Center have a different purpose and that is how senior management wants to see the results.

    For example:

    VC3 VC1 and VC2 = service server environment

    VC4 and VC5 VC6 = service Workstation environments

    VC7 VC8 = environment of Cloud Computing Services

    What I would do is:

    (1) connect to the first 3 virtual centers and collect the above information.

    (2) I would like to create a title in the CSV or Excel named 'Standard Server environment summary'

    (3) then I would like to export these 4 columns with data for each cluster.

    Cluster is managed by this Virtual Center, the name of the Cluster, number # VM and ESX host

    I then unplug the 3 first virtual centres.

    Next

    (1) I would like to connect to the 3 next virtual centres

    2) add to the previous CSV or Excel with a title 'desktop environment summary.

    (3) export the same information as above in the CSV file

    Any help would be greatly appreciated.

    Try something like this

    $vcenters = @{}
    $vcenters["Server Environment"] = @("VC1","VC2","VC3")
    $vcenters["Workstation Environment"] = @("VC4","VC5","VC6")
    $vcenters["Cloud Environment"] = @("VC7","VC8")
    
    Set-PowerCLIConfiguration -DefaultVIServerMode Single -Confirm:$false | Out-Null
    $vcenters.GetEnumerator() | %{
      &{foreach($vc in $_.Value){
          $currentvc = Connect-VIServer -Server $vc      Get-Cluster -Server $currentvc | %{
            New-Object PSObject -Property @{
              "Cluster is managed by VC" = $currentvc.Name          Cluster = $_.Name          "# of ESX hosts" = @($_.ExtensionData.Host).Count          "# of VM" = Get-View $_.ExtensionData.Host -Server $currentvc |          %{@($_.Vm).Count} |          Measure-Object -Sum |          Select -ExpandProperty Sum        }
          }
        }} | Select "Cluster is managed by VC",Cluster,"# of ESX hosts","# of VM" |  Export-Xls -Path C:\report.xls -WorksheetName $_.Name  Disconnect-VIServer -Server $currentvc -Confirm:$false}
    

    You will have to render the Xls export function.

    Simplest is to include in the script with the code above.

    The name of the group is reflected in the name of the worksheet, having a separate line would be a little more difficult.

  • Create view opaque in OBIEE with multiple tables

    Hello

    I need assistance with the opaque view since I've never created in the past. I want to create an opaque view that retrieves data from several tables. Is it possible to do? Or y at - it another alternative available in OBIEE option? I read the blog following and other similar articles on views opaque but found no option to use for the query with several tables:

    Oracle Business Intelligence: A physical layer to OBIEE 10 g Opaque View Creation


    Also please advice how to join two tables from different databases in OBIEE?


    Kindly advice.


    Kind regards

    Andy

    Check also, it may be useful to you

    http://obinsight.blogspot.com/2010/05/reporting-against-multiple.html

  • Problem report of multiple pages for ppt export

    Hi, I'm using version 11.1.2.1.0.83 workspace. When I export a report of multiple pages for powerpoint (from file/export/powerpoint) the ppt file created has just one page, which is the last page of the pdf report.

    Someone knows how to fix this bug, which is to export the powerpoint with the same numebr of pdf report pages?

    You can use Smart View of powerpoint and get the report here. You don't need external program.

    Concerning

    Celvin

    http://www.orahyplabs.com

  • Advanced answer Options for multiple choice with multiple answers questions

    Is there a work around to provide feedback to questions multiple choice with multiple responses?

    For example, I am preparing a question with four ansers, B and D are correct. If users chooses only B, then the feedback will be "B is OK, but there is a right answer."

    Hello

    Burst in to give you a link to a post Articles with some articles that I have published on the creation of custom questions. If you do not have to report to an LMS, which will be the way to go to be in total control. You will find perhaps inspiration here:

    Customize your quiz

    I find also included widgets very useful for creating custom question slides. Here is another link:

    Widgets and custom questions - source list

    Lilybiri

  • El Capitan permissions bad for lib with multiple users

    On my Mac with multiple users and running El Capitan, I encountered a problem with an application (GoGlobal) failed to start with "errno = 13", which is a problem of permissions with usr/local/lib /.

    I determined that on Yosemite, usr/local/lib was owned by root and permissions: drwxr-xr-x. However, on El Capitan, usr/local/usr / local / lib lib is owned by one of the nicks (random?) and has permissions drwx-, which is the source of the errno = 13.

    I got around the problem by chmod 755 to lib /, but I fear that a future update will reset these permissions impassable previous values. Please correct these settings in install and update routines.

    GoGlobal isn't a request to Apple. You can send your message to the developer, who develops not only the Application itself, but the installation script that puts in place of its components.

  • I use 4 windows with multiple tabs, but I 'don't know why one of them (window) always close when I restar computer

    I use 4 windows with multiple tabs, but I 'don't know why one of them (window) always close when I restar computer

    Hello, by default the firefox session restore feature only allows you to save last 3 windows open. to change this, type on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.sessionstore.max_windows_undo. Double-click it and change its value to 4 (or more).

    http://KB.mozillazine.org/browser.sessionstore.max_windows_undo

  • Can bookmarks be portable to multiple computers? Is it an option to connect and use my favorites with multiple computers and locations? Thank you

    Can bookmarks be portable to multiple computers? Is it an option to connect and use my favorites with multiple computers and locations? Thank you

    https://support.Mozilla.com/en-us/KB/what-Firefox-sync

  • How to export to pdf 1 sheet in a document with multiple sheets

    As the title says, my numbers document has several sheets.  I need to export one of these sheets as a pdf document, but instead it exports all sheets in a single PDF with multiple pages (1 page per sheet).

    Grateful for your help!

    Hi Michele,

    Instead of export, go to the sheet you want and use the Menu > file > print.

    In the Print Setup Panel, choose this sheet.

    Click on print... to see the print dialog.

    At the bottom left, click on the PDF pop up.

    You can open a PDF in preview (and print it from there), or print in PDF format.

    Click done to return to your document.

    Kind regards

    Ian.

  • Indicator of waveform data dashboard with multiple locations

    I have a chart in waveform with multiple locations on my main VI running.

    I use the Application Dashboard data 2.2.1 on my Ipad to monitor table of wave shape of my running app.  I placed a marker on my Ipad and also related waveform with my waveform array variable.  I can't play my data dashboard application because it shows unable to connect to the server.  I noticed that it is because of multiple plots being plotted on my table of waveform.

    I could only play the App data dashboard when it is just a single parcel related to an indicator on the App.

    My question is if it's possible to have a graphical indicator of waveform on a data dashboard that has several plots being plotted and not only a single square, and how to configure it?

    Thank you.

    Click on Bravo and select as an accepted answer.  You are welcome.

  • How creat a summary report with txt.

    Hi all

    I want to create a summary of the report with .txt, and I disabled the feature of report generation in teststand.

    I created a complex sequence, includes some sub-sequences, example: the UUT is tested on three different temperatures and four different voltages conditon. So I creat three subsequences (different temperatures) there are four steps (different voltages), then mainsequence invoke three subsequences to excute test.

    I only want to get the fail-no summary, include: name of the step-fail, status

    How do I? Thank you very much

    You can use Parameters.Step.Name to get the name of the step failed. You can also use something like Parameters.Step.StepType.Name is 'NI_MultipleNumericLimitTest' to the different types of filter steps.

    To the extent where the string any failure...

    You can check RunState.CallStackDepth to see callers how you deep. Based on this information, you can use RunState.Caller.Caller. (in sequence but of many appellants deep, you are). RunState.Step.Name or. Sequence.Name

    So if the CallStackDepth is 1, you can only use a caller. If it was 2, need to recursively would you use 1 caller and then 2 appellants and so on.

Maybe you are looking for

  • Satellite L650-1JT - speakers low noise

    Hello. I bought this computer a few days ago. I wanted to watch a movie and realized that the speakers do not have a normal sound. I used to have a CV (with about 10 years), and the volume was much better. I already checked the sound level and tried

  • Add line last 2d array index

    OK, I m already curse this bloody language for its illusion of "simple". I m doing the EASIER operation of any language: filling in a line down to a 2D array.  I have just can´t find a way to do it. I m create a table 1 d with data of type string res

  • the analysis of a multi-track cue sheets recording in files vs

    I have a large mp3 to records that contain a lot of songs (tracks).  Some songs are get together, others are not, in the same file.  The songs are NOT indexed in the file.I use WMP11 for playback, as well as other mp3 players (portable, car, etc.)In

  • How can I activate remote admin on my ea6900

    There is no option for it where I expect it in connectivity > administration Just bought this thing and updated the firmware of the box is on 1.1.42.161129

  • Updates, updates and more

    for the past six weeks, my Dell Inspiron 1721 with Windows Vista Home Premium wants to do an update EVERY time I stop. Seems to be only when I have access to the internet. I'm going online for 30 seconds and the menu closed red icon asking to stop an