APEX Interactive Report - sum multiple columns table1 X with table2 value

I have a challenge in oracle apex, were i want to sum multiple columns to give 3 extra rows namely points, Score, %score. There are more columns but chose only few for now.
Below is an example structure of my data:
Town | Sector | Outside| Inside |Available|Price
Roy-----Formal----0----------0----------1------0
Kobus Formal--0 ---------0--------- 1------0
Wika ---Formal----0----------0--------- 1------0
Mevo----Formal----1----------1---------1------0
Hoch----Formal----1----------1---------1-------1
Points--------------2----------2----------5-------1
Score-------------10---------10---------10------10
%score-----------20---------20---------50------10
Each column has a constant weighting (which serves as a factor and it can change depending on the areas) in this case the weighting for this areas are the ones in the first row for the sector Formal:
Sector |Outside| Inside |Available|Price
Formal----1----------1 ----------1-----1
Informal--1----------0 ----------2-----1
I tried using the aggregate sum function in apex but it wont work since i need the factor in the other table. Which is where my challenge started
To compute the rows below the report:
points = sum per column * weighting factor per column
Score = sum of no of shops visited (in this case its 5) * weighting factor per column
% score = points/Score * 100
The report should display as described above. With the new computed rows below.
I kindly ask anyone to assist me with this challenge as i tried searchin on the internet for solutions but havent come across any.
Thanks a lot for your support in advance!!

>
Please update your forum profile with a real handle instead of "823433".
I have a challenge in oracle apex, were i want to sum multiple columns to give 3 extra rows namely points, Score, %score. There are more columns but chose only few for now.
Below is an example structure of my data: Use <tt>\...\</tt> tags as described in the FAQ when posting code and sample data and layouts. Please edit the OP and reformat the example using <tt>\...\</tt> tags so it's clear.
Town | Sector | Outside| Inside |Available|Price
Roy-----Formal----0----------0----------1------0
Kobus --Formal----0 ---------0--------- 1------0
Wika ---Formal----0----------0--------- 1------0
Mevo----Formal----1----------1---------1------0
Hoch----Formal----1----------1---------1-------1
Points--------------2----------2----------5-------1
Score-------------10---------10---------10------10
%score-----------20---------20---------50------10Each column has a constant weighting (which serves as a factor and it can change depending on the areas) in this case the weighting for this areas are the ones in the first row for the sector Formal:
Sector |Outside| Inside |Available|Price
Formal----1----------1 ----------1-----1
Informal--1----------0 ----------2-----1I tried using the aggregate sum function in apex but it wont work since i need the factor in the other table. Which is where my challenge started
To compute the rows below the report:
points = sum per column * weighting factor per column
Score = sum of no of shops visited (in this case its 5) * weighting factor per column
% score = points/Score * 100
The report should display as described above. With the new computed rows below.
I kindly ask anyone to assist me with this challenge as i tried searchin on the internet for solutions but havent come across any.How critical to the solution is using an interactive report? It would be much easier to do this in a standard report where you've complete control over the query SQL and the report structure.
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

Similar Messages

  • Change source (sql) of interactive report based on column value?

    I've got an Interactive report displaying 10 columns. What I'd like to do is show different columns depending on the value of the first column. All the rows in the result will have the same value in the first column.
    If value in column 1 (on any row) = 'aaaa' then
    display columns 1,2,3,4, 9, 10
    If value in column 1 (on any row) = 'bbbb' then
    display columns 1,2,3,4, 7, 8
    If value in column 1 (on any row) = 'cccc' then
    display columns 1,2,3,4, 5, 6
    Should i somehow make the sql query dynamically change or can I use apex to dynamically hide the columns I don't want in the interactive report?
    Appreciate if you could point me in the right direction...
    /A

    Hello Andy,
    You can solve that in your SQL query:
    select col1, col2, col3, col4
    ,   case col1
        when 'aaaa' then col9
        when 'bbbb' then col7
        when 'cccc' then col5
    end newcol5
    from tableYou may have to use to_char or to_number conversions when the datatypes of the col5,7 and 9 are different.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • What is the best way to display a Interactive Report having 20 columns

    Hi,
    I am having a Interactive Report having many columns (around 20).
    What is the best way to display that report...by default we have to scroll it horizontally to see all the columns.
    I want to avoid Horizontally Scrolling.
    Thanks,
    Deepak

    Hello Deepak,
    You mean apart from using a smaller font size or a bigger monitor?
    You can think about combining / wrapping columns (so more data in one column).
    Or hide some less important data and show that only on demand.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • APEX Interactive Report - CSV Export Limitations?

    Hello,
    I have an interactive report generated for some users.
    The issue I'm having right now is that the results that the users need is over 100k and the export to csv option caps out at 65,535 rows. Is this a limitation on APEX Interactive Report's side and is there anyway to get around it so we can send 100k records (or more) to the users without them splitting the report many ways?
    Thanks in advance.
    Ivan

    Ivan,
    I'm afraid that I can't answer your question. The APEX insiders will have to field that one.
    As one that dislikes voluminous reports, have tried swaying your users that you now have this great interface to drill to the data you need versus downloading gobs of data and filling up their hard drives. Ask if there is something else your application can do that they would do with all that data in Excel.
    Jeff

  • Setting the APEX interactive report items

    Hi,
    I need to reset the APEX interactive report items like apex_ir_APP_USER to some value.
    I put the below jQuery code in the javascript header page it did not work:
    <script type="text/javascript">
    $document.ready(function() {
    $('#apexir_APP_USER').val('NEW VALUE');
    </script
    Any suggestions ??
    Thanks

    The reason of me trying to set the apex interactive item is:
    For the interactive report, we enabled the subscription service, so that users can subscribe for the selective reports.
    So, when a user clicks the Actions button and selects the subscription option, then the couple of fields like email address, subject etc., are populated, with the default values.
    The email address field is auto populated with the user id like abc.efg.
    And, the email address field i would like to manipulate and change to [email protected]
    Now i was able to change the value of the hidden variable, apexir_APP_USER with the below code but when i select subscription option i still see the same user id populated in the
    email address field.
    <script type="text/javascript">
    $(document).ready(function() {
    alert('test'+ $("#apexir_APP_USER").val());
    $("#apexir_APP_USER").val("Value changed");
    alert('changed value '+ $("#apexir_APP_USER").val());
    </script>

  • APEX Interactive Report Compute Case with multiple conditions to highlight

    My ultimate is to highligt a row in an interactive report based on two conditions. I didn't see a way to use the highligt feature with two conditions. So I thought I would try to create a computation based on the two conditions. Then use that result for the highligting. Though I don't seem to be a be able to use multiple conditions in my computation Case statement. Is there a different syntax?
    Here is what I have:
    Case
      When  C = 'Open' and  I > 15 Then 'True'
      Else 'False'
    End The error I get is: Invalid computation expression. and
    Application Express 4.0.2.00.07
    Thanks!
    Edited by: cjmartin on Jan 10, 2012 10:57 AM

    I'm surprised no one responded to this. What I did to resolve this issue was create a nested case statement. I don't think this was a good solution, but I can't find anyone else giving input. I know I can create another computational column in the select statement for the report, but the 'Interactive Report' part is where this should be. I want my clients to calculate what they want. Kind of hard when you can not use an 'and' for a range criteria.

  • APEX 5 Interactive Report Link Hidden Column Pivot Report

    Hi,
    i have some interactive report (on table demo_orders)
    If i put a link on, lets say USER_NAME and pass parameter, lets say #CUSTOMER_ID#, i can see
    the value substituted correctly in the report link.
    Using the pivot feature, e.g.:
    Pivot-Coumns:
    customer_id
    Rowcolumns:
    Order_id,
    User_name.
    Functions:
    Sum - Order Total
    the substitution doesnt seem to work anymore, the link looks like this:
    f?p=43666:9:28969915122817::NO:RP:P9_CUSTOMER_ID:#CUSTOMER_ID#
    a demo is there:
    https://apex.oracle.com/pls/apex/f?p=43666:9
    (using open door credentials)
    thanks,
    gerald

    Hi Gerald,
    Thank you for reporting the issue.  This is logged as bug 20950850.  We will look into fixing.
    Regards,
    Christina

  • Interactive report search hidden column

    I have a comment column in an interactive report (form with report) and I want the user to be able to search records on that column but I don't want to display that column in the report - it's just too big and the user can click on the edit icon to see that detail anyway. Is this possible?
    Thank you!
    Virtual homemade cookies to the first response...
    Edited by: userRRRYB on Mar 3, 2010 9:53 AM

    ligongl wrote:
    Hi userRRRYB,
    Were you able to resolve this issue? If so would you please share?
    I am also looking for a way to search on all IR columns regardless of whether it is displayed or not.DO NOT post follow-ups to ancient threads. Posting follow-ups to ancient threads is NOT an effective way of getting help (especially when you have already posted a IR search on all columns:
    <li>Other users may ignore the thread as it appears to be closed
    <li>Your assumption that the questions are related may be incorrect, leading to confusion about the nature of the problem and potential solutions
    <li>Watches on the thread may have expired, so the original participants may be unaware of the new post, or they may no longer be active on the forum
    <li>You have no ability to mark posts as helpful or correct
    Post your question as a new thread, including at least the following information:
    <li>APEX version
    <li>DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) used
    <li>Links to related posts and threads using the methods in the FAQ.
    Please read the FAQ and forum sticky threads for more information on using this forum effectively.

  • Interactive report - exclude a column  from download

    We have an interactive report that is filtered, sorted, etc by the user to get the exact set of data that they need to download.
    We need to download only certain columns of the report.
    We don't want the users to have to hide columns.
    I'm looking for something like the "include in export" that can be specified for each column in a standard report.
    I don't see a place to set that in an interactive report.
    Is there a setting that I've missed?
    If not, any suggestions for possible solutions would be appreciated.
    thanks

    Hi,
    You can set column conditionally by request.
    E.g. columns that you do not like export set condition PL/SQL function body returning a boolean
    RETURN NVL(:REQUEST,'EMPTY') NOT IN('CSV','XLS','PDF','XML','RTF');I did example
    http://apex.oracle.com/pls/otn/f?p=40323:63
    EMPNO column is not exported from report
    Br,Jari
    Edited by: jarola on Jun 4, 2010 11:37 AM

  • Catch the onClick event on Interactive Report to access columns content

    Hi,
    I am using Apex 4
    I would like to display some rows into an interactive report. I have define a dynamic action on that report in order to catch the Mouse OnClick Event.
    The Goal is to display the detail of the row in a form region in the sidebar.
    To do this, I would like to get the content of a column of the row clicked and then execute a pl/sql block to get the detail of my row.
    I am stuck to get the content of the column I have clicked within the dynamic action to pass it to execute the pl/sql block.
    Any idee?
    Many thanks
    jko
    Edited by: user617942 on 29-Jul-2010 04:19

    Hello,
    Did I ask something stupid :-)
    Jko
    Edited by: user617942 on 29-Jul-2010 04:19
    Edited by: user617942 on 29-Jul-2010 08:34

  • Download Customization in Apex Interactive Report

    Hi All,
    I am using Apex 3.2.
    I have some requirement, for the download the interactive data into xl sheet we can go to action menu and download the report. But in the report there is one edit link ,I dont want down load edit link data. How to avoid this edit link data.
    Thanks,
    pnr
    Edited by: pnr on Mar 28, 2011 5:59 AM

    Hello Tony,
    Your suggestion on the other thread is interesting and will be helpful on some other reporting I am doing. However, I am still running into an issue. I am unable to get the 2nd interactive report query below 114 columns since I have to keep those fields together so they can look at those fields when they make computations.
    I never did say 100 + columns is "Always" needed. However, it is still a needed feature in my opinion. I been using APEX for 2 years. This is the first time I needed this many columns. I am currently working with Institutional Advancement, which by next month will want to have over 200 columns available to them since not only will they be looking at constituents but, they will want to look at corporations as well. Discover isn't an option at this time.
    "Maybe someone can build an ad-hoc report builder for APEX applications that can be attached to applications? We have such items in Oracle Forms application I maintain now.."
    That would be delightful...
    Regards,
    Kelly

  • ApEx - Interactive Report

    I have two issues with respect to Interactive Report in ApEx
    1. I used the Aggegrate Function to sum up the values. Though the Values are displayed, i want to have the Wordings " Totals". How to go about that
    2. In the Interactive Report, i use the Highlight option to color a set of rows based on some condition. Now after saving the report (primary), i as an end user still see the Query Part with an X. As a developer i dont want my end users to see that portion. From the end user point of view, he should be able to see the report with various colors as defined by me, but without seeing the X mark. (I got the answer to this through another forum,..thanks)
    But the first one still remains...
    Kindly help.
    Edited by: Vraj2k on Nov 25, 2011 4:50 PM

    Hello,
    Do you want some customers appear twice or not in your top 10?
    If not in your select you would need to specify DISTINCT (or probably look a bit more inside the query because you might have a cartesian product that makes the rows appear more than once).
    Next you can order by Value and then only show the first 10. You can do that dynamically with the interactive report or directly in your query. On Asktom you see some nice examples about top n queries: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2853107469873
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • Interactive Report Displaying Multiple Values (Chart)

    Hi guys,
    Is there a way to display multiple values into a chart report. Normally there is a combobox and you can only select one value. But i want to display multiple values into one chart and i have to use interactive report because sql report is not enough for me.
    Apex product build is 4.0.2.00.07.
    Thanks

    Any ideas ?
    Thanks.

  • APEX Interactive Report not shown complete on production system

    Hello,
    I have a problem with my Apex 4.1.1 application on customers production server.
    On our development system (Oracle 11.2.0.3) the Apex IR with the query down below delivers 1.500 rows and the page loading is finished after 3 seconds.
    On our customers production system (Oracle 11.1.0.7) the same IR shows only the first 800 rows and then page loading runs endless. When i add a pagination with 500 rows everything works fine.
    When i execute the Query in SQL Workshop the 1500 rows are delivered on both systems within 0,4 seconds.
    What could be the problem?
    kind regards
    Stefan
    Here the source of the Interactive Report:
    select o.oid, o.obj_id, o.obj_name, f.finanzst_oid finanz_kosten_oid, 'Finanzierung' art, fst.BEZ bezeichnung, f.grundstueck_bet grundstueckskosten, f.bau_bet baukosten,f.von_datum, f.bis_datum, f.sort
    from afa_objekte o, afa_finanz f, afa_finanzst fst
    where o.aktiv is not null
    and o.oid = f.objekte_oid
    and f.finanzst_oid = fst.oid
    union
    select o.oid, o.obj_id, o.obj_name, k.kostenst_oid finanz_kosten_oid, 'Kosten' art, kst.BEZ bezeichnung, k.grundstueck_bet grundstueckskosten, k.bau_bet baukosten, k.von_datum, k.bis_datum, null sort
    from afa_objekte o, afa_kosten k, afa_kostenst kst
    where o.aktiv is not null
    and o.oid = k.objekte_oid
    and k.kostenst_oid = kst.oid
    order by obj_id,sort nulls first,finanz_kosten_oid,von_datum;

    any ideas? anyone?

  • Interactive Report : Conditional Link Column

    Hi,
    I want my interactive report Link Column (Link to single row view) will be visible/active only when for the logged in current user.
    I am keeping the current user data in an "application_item".
    When ever I am trying to put Condition type as "Value of Iten in Expression1 = Expression 2" with
    Expression1 = CURR_USER (application item) and
    Expression2 = First_user (user_Name)
    the link column becomes invisible for the entire report.
    Please Please Please help.
    Thanks
    Neetu

    Hi,
    See if condition type "User is Authenticated (not public)" is what you looking for.
    Br,Jari

Maybe you are looking for

  • How can I know my purchased Creative Suites 6 is able to install in Windows 7 64 bits

    Hello, I have purchased a Creative Suites 6. But, I cannot find what type of the CS6 I have bought (32 bits or 64 bits). Where can I get this information? If I bought the 32 bits one, can I install 32 bit of CS into Windows 7 64 bits? Thank you, Bosc

  • Cant download/purchase from itunes. macbook pro error message -45054

    Am currently trying to download a tv program from itunes. When I try to purchase the item, I enter my username/password etc and it looks to begin downloading, i then get a pop up saying 'We could not complete your itunes store request. An unknown err

  • Error in  page which is using file system DC as source of data .

    Hi All, I have created file system connection using create content repository connection . I have exposed this file system as a data control. Form this data control i have creatd a jspx page by dragging and dropping . I am getting following exception

  • Oh Dear, here we go again!

    After cocking my capital one gift up for six weeks, Ovi strikes again. Purchased an album, tried to download it, it wouldn't. £9.99 was taken from my account. Tried again to download but the option to do so is greyed out. Emailed Nokia Care, they tol

  • How to boots up download speed in my Macbookpro

    Hi, I am new here, currently I have an internet packages at download speed 4mps and upload speed 1mbps.  I am using wireless for my internet connection, however when I downlaod  a file from internet, it only run at 470kb/ sec, therefore I would like