Interactive report unique row count

Hi,
I just want to know if there is a way to do a row count with a unique on an interactive report column.
What I mean is that I have a report that looks like that
Project Project type Hours
Project 1 Project type 1 1
Project 2 Project type 2 1
Project 1 Project type 1 1
Project 3 Project type 3 1
Project 2 Project type 2 1
I would like to do a unique on the project name. So, at the end, I would like to have a count that says that I have 3 different projects.
Is there anyway to do that ?
Thanks,
Chantale

Hi Chantale - did you manage to solve this one?
Example here (http://apex.oracle.com/pls/otn/f?p=11189:1) showing 14 rows, but only 7 distinct rows. These duplicates are valid, and the SQL cannot be changed. Is there a way through the IR to show a count of 7 (the distinct rows)?
Thanks,
Mike
Edited by: Mike, UK on Oct 2, 2009 12:04 PM

Similar Messages

  • Interactive report max row count

    Is there a way to set IR max row count dynamically?
    To improve performance, I would like to set this value to 200 when users run the report and set this value to 50000 when users download the report.

    A dirty solution to this could be , create IR report with rowum < 201 and then add a link to the region header for downloading report. Point this link to another page with the same sql query (classic report) and select the template as CSV.
    Hope this helps.
    Thanks,
    Manish

  • Interactive Report Pagination and count

    Hello,
    I have two situations I am hoping someone could help me with.
    Problem 1
    I am using interactive reports in APEX 3.2.1 and I have reports with rows >= 6000. currently pagination on reports is set to:
    X to Y of Z
    such that when the report is rendered it looks something like 1 - 15 of 6203 >.
    Is it possible to add 'objects' or 'buttons' that allow me to navigate directly to the last row or/first row e.g
    |<< < 1 - 15 of 6203 > >>|
    such that |<< or >>| navigates to the very end row while < or > navigates to the next set or rows? would this be javascript? if so, does anyone have code for it? unfortunately not only am I new to APEX, I am a novice at javascript as well.
    Problem 2
    Is it possible to have APEX interactive reports return a distinct count on fields that are not unique? All counts are equating to the count of the unique ID and has had me pulling my hair
    Any help is most welcome,
    Mufudzi

    Hi Mike,
    I have not managed to get 'Distinct count' to work. Unfortunately, the project I am working on for this neither has the time or budget to investigate further but hopefully I will be able to get a solution from someone as a "nice-to-know".
    Regarding the first problem I posted on, managed to come up with a solution using some html. Basically I created two html scripts (one above the report and the other below the pagination buttons at the bottom of the report)
    - for the top of report html I used the following code:
    +<td nowrap class="t13RegionBody"><>a href="#endofpage"<>End of Page</a></td>+
    +<td bgcolor="#EEEEEE" nowrap><a name="topofpage"><font color="#EEEEEE">Top of Page</font></a></td>+
    and called the script topofpage
    - for the bottom of report html script I called it endofpage and used the following code:
    +<td nowrap class="t13RegionBody"><>a href="#topofpage"<>Top of Page</a></td>+
    +<td nowrap bgcolor="#EEEEEE"><A NAME="endofpage"><font color="#EEEEEE">End of Page</font></A></td>+
    What the script does is when the "End of Page" hyperlink is clicked, it takes the user to the bottom of the screen/page and vice versa for the "Top of Page" hyperlink situated at the bottom of the page. Users will be educated on how to use the ROWS utility on the interactive report menu bar so that they can display all available rows on one page and use the links to navigate from top to bottom of page.
    Mufudzi
    Edited by: Mufudzi on Oct 2, 2009 12:20 PM

  • Interactive Report Unique Constraint Error

    Hi all,
    I have this error when trying to create an Interactive Report.
    ORA-00001: unique constraint (APEX_040000.WWV_FLOW_WORKSHEET_COLUMNS_UK2) violated
    Unable to create Dynamic Query page.
    I am not enabling Linkage to a single row, and I trid both UNIQUE key and ROW ID. The query runs perfectly on SQL COMMAND page.
    The query I am using is a little bit complex but not so much.
    SELECT wlji.LAST_UPDATE_DATE
    ,wlji.MODE_FLAG
    ,wlji.LAST_UPDATE_DATE
    ,wlji.LAST_UPDATED_BY
    ,wlji.CREATION_DATE
    ,wlji.CREATED_BY
    ,wlji.TRANSACTION_DATE
    ,wlji.FIRST_UNIT_START_DATE
    ,wlji.LAST_UPDATED_BY_NAME
    ,WLJI.CREATED_BY_NAME
    , (select organization_code from mtl_parameters where organization_id = wlji.ORGANIZATION_id) organization
    ,wlji.LOAD_TYPE
    ,wlji.STATUS_TYPE
    ,wlji.LOT_NUMBER
    ,WLJI.JOB_NAME
    ,( select msi.SEGMENT1 from MTL_SYSTEM_ITEMS_B msi where
    msi.inventory_item_id = wlji.PRIMARY_ITEM_ID and msi.ORGANIZATION_ID = wlji.ORGANIZATION_id) item
    ,wlji.START_QUANTITY
    ,wlji.SCHEDULING_METHOD
    ,wlji.ALLOW_EXPLOSION
    ,wlji.HEADER_ID
    ,wlji.WIP_SUPPLY_TYPE
    ,wlji.process_status
    ,wlji.GROUP_ID
    ,wlji.ATTRIBUTE11 ORIG_PARENT_ID
    ,wlji.ATTRIBUTE12 SEQUENCE_ID
    ,WLJI.ATTRIBUTE13 PREVIOUS_SEQUENCE_ID
    ,WLJI.error_msg || apps.MISWSM_SERUS_INBOUND_IFACE.get_tm_errors(OSFMLOG.TRX_TYPE,OSFMLOG.header_id) error_message
    FROM MISWIP.MISOSFM_INT_TRANSACTIONS_LOG OSFMLOG,WSM_LOT_JOB_INTERFACE wlji,WSM_INTERFACE_ERRORS wie
    WHERE OSFMLOG.STATUS IN ('E','F')
    AND OSFMLOG.TRX_TYPE ='LOT_JOB_CREATE'
    AND NOT EXISTS (SELECT 1 FROM MISWIP.MISOSFM_INT_TRANSACTIONS_LOG OSFMLOG2 WHERE
    OSFMLOG.PARENT_ID= OSFMLOG2.PARENT_ID
    AND OSFMLOG.SEQUENCE_ID = OSFMLOG2.SEQUENCE_ID
    AND NVL(OSFMLOG.PREVIOUS_SEQUENCE_ID,-1) = NVL(OSFMLOG2.PREVIOUS_SEQUENCE_ID,-1)
    AND OSFMLOG2.STATUS ='S')
    AND OSFMLOG.HEADER_ID = WLJI.HEADER_ID
    and WLJI.HEADER_ID = WIE.HEADER_ID(+)
    ORDER BY WLJI.ATTRIBUTE11,WLJI.ATTRIBUTE12,WLJI.ATTRIBUTE13;
    Why can't IR handle this joins?

    SELECT wlji.LAST_UPDATE_DATE
    ,wlji.MODE_FLAG
    ,wlji.LAST_UPDATE_DATEYou have wlji.LAST_UPDATE_DATE twice. No problem, but give the 2nd one a column alias.

  • To reference Interactive Report filtered rows in PL/SQL

    Hello All,
    I am using an interactive report on a page. I want a page process to reference the rows filtered dynamically by an end user. The report to be referenced is not saved but merely filtered from the primary report.
    How do I reference the filtered rows in pl/sql. I have searched through the forum and can't find a concise answer.
    Br,
    Ben.

    Hi Trent, Jari, Ben
    Update the IR's SQL to include APEX_ITEM.HIDDEN(1, primarykeyfieldname) || firstdisplayedfieldname columnheading and then use APEX_APPLICATION.G_F01 to loop through the results using PL/SQL to get the primarykeyfieldname values displayed and retrieve the rest of the data from there if necessary.
    That will still require that all records are displayed, though.
    Something like: http://apex.oracle.com/pls/apex/f?p=267:237
    The SQL is:
    SELECT APEX_ITEM.HIDDEN(1, EMPNO) || EMPNO EMPNO, ENAME
    FROM EMPand the process is:
    DECLARE
    vTEMP VARCHAR2(4000);
    BEGIN
    vTEMP := '';
    FOR x IN 1..APEX_APPLICATION.G_F01.COUNT
    LOOP
      vTEMP := vTEMP || APEX_APPLICATION.G_F01(x) || CHR(13) || CHR(10);
    END LOOP;
    :P237_SELECTED := vTEMP;
    END;which just outputs the EMPNOs showing on the page into a Display Only page item.
    Andy

  • Unique row count in table footer

    JDev 11.1.1.6
    Hi,
    In my current table, I am able to show total row count at a table footer by using #{bindings.<myVO>Iterator.estimatedRowCount}.
    I have a request from my user to show unique total row count. For example rows below:
    1 A
    2 B
    3 A
    4 C
    The footer should show:
    4 3
    The second column has A, B, and C where A is counted only 1 (unique). Is there a way to achieve this?
    Thanks.

    Hi RRA,
    This may work for a static # of rows (no filtering). In the table I use, I can do filtering and that certainly will make the count result be different if I use another VO for distinct result.
    Thanks.

  • How to show an icon in an interactive report against rows using a criteria

    Hi,
    I have an interactive report with customer and revenue details (let's say based on Table_A data)... I want to highlight the customers (via ICON beside the names) that has some collections related issues...I've stored these customers in Table_B... Please advice...
    Thanks in advance...

    Modify the IR region's SQL query for the emp name column by adding the HTML code for the image.
    For example
    SELECT <column 1>
          ,<column2 >
        ,DECODE(    (SELECT count(1) from table_b B where B.empno = A.empno)
                           ,0
                           ,emp_name
                           ,'<img alt="special icon" src="i/myicon.png">'||emp_name
                       ) AS EMP_NAME
    FROM <table a> A
    Note: In the code above, I have used a decode statement and an inner SQL to fetch the value from the other table. Modify it as per you case
    You also need to change the emp_name column in the report settings to be shown as "standard report column" (instead of display as ..)

  • Need to modify css for interactive report Single Row view

    I've tried to go through and find the code for the Single Row View css in the interactive reports, but have been unsuccessful so far. I would like to change it so the Grouping headers are larger than the column names that are grouped under them. Does anyone know what style I would need to override in order to accomodate that?
    Thanks!

    Hi,
    In the page's HTML Header, add in something like:
    &lt;style type="text/css"&gt;
    .worksheet .worksheet_detail th.group, .worksheet_detail th.group {font-size:18px;}
    &lt;/style&gt;
    If you use FireFox, I would recommend getting the FireBug add-in - this allows you to examine the contents of the page and shows the style class names used.
    Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Interactive report with row selector?

    I've just upgraded to APEX 3.1. I've been playing with all those amazing new features of interactive report but I miss one very important for me - a row selector. I used to have the traditional reports based on updatable queries with row selector that enabled multi-row-delete operations. Is it still possible to include a row selector to IRR so as to accomplish MRD?
    Thanks,
    Zdenek

    Hi,
    this circumstance --> "missing row selector" raises another big problem.
    My Question now:
    I can't do row-specific processes now as in v3.0 where i could start a single process for every marked row.
    Is there any feature (that i don't know yet) to integrate process-buttons for every row in a report? Mean this button should start a process for the row, where the button was pressed.
    I didn't find any information about this feature.
    Thank you!

  • Interactive Reporting and Row Suppression

    Is there any way to do a conditional suppression of a row in an IR report? For example, if the "Total Hours" column is 0, then I'd like to suppress that row in the report.
    Thanks.
    Terri T.

    Hello.
    Other way to do a custom filter is to "add a computed item" in the result set. This will help you to select the data that you want to be viewed in a new column. For example "Total hours greater than zero". The disadvantage is: the rows that doesn't match your new computed item will be empty. But this idea maybe will be useful for you.
    take care
    ales

  • Interactive Report Single Row View Error

    I am getting the following error on my Single Row View
    {"dialog":{"uv":true,"row":[{"V":"Widget Failure
    ORA-20001: SHOW error. ORA-20001: VIEW_ROW error. ORA-20001: GET_COLUMN_VALUE error. ORA-01722: invalid number,
    worksheet"}]}}Any clues?
    Shunt

    Shunt,
    Does this happen on every record? Have you tried to recreate the IRR on another page as a test? Do a SELECT * FROM table...
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Selecting a set of rows in an Interactive Report

    Hi,
    What I want to achieve is when a row is clicked in an interactive report that row (via a Primary Key/ROWID) is added to a list of IDs to be edited in one go, I will probably use a collection for this, although a colon delimited list might be quicker and/or easier. The two ways I thought of trying to achieve this was by bending the use of the Link Column and providing a Link to Custom Target or using a row selection technique described below.
    My initial thought was to make it a check box which then called some JavaScript/On demand process, similar to the one shown here. So far I've tricked it by making the image my check box and the link attributes being my function which returns false to stop the page redirecting when clicked. The problem is I can't seem to get the ROWID to appear, I've tried #ROWID# which simply puts that string as the input, so for example, my "image" is this: <input type="checkbox" value="#PK_ID#" name="f01"/>So, if I could get something meaningful in there instead of ROWID it would work a treat I think.
    The alternative method was to use a form of the row highlighting described in this Row Highlighting. The problem here seems to be that for an Interactive Report you cannot change the table row elements to add the onclick. Also when trying this (using Firefox to add the appropriate code to a TR element) it works, as in the function fires, but does not change the appearance of the rows. I lack the CSS/HTML skills to work out why so far.
    Worst case I can simply create a checkbox field in the query as per the example above, the only drawback is that the column might not always be available in the report if the user has hidden the column.
    Any ideas?
    Many thanks,
    Gareth.
    Edited by: gaz_stephens on Jan 16, 2009 12:09 PM

    Hi,
    If all of the records are displayed on the report in one go (that is, there is no pagination involved), then you can add the onclick after the table has been created. Add the following into the report's Region Footer setting:
    &lt;script type="text/javascript"&gt;
    function addEvents()
    var t = document.getElementById(gTable);
    var tRows = t.rows;
    var k;
    for (k = 1; k &lt; tRows.length; k++)
      tRows[k].onclick = function() {alert('Here');};
    addEvents();
    &lt;/script&gt;If pagination is involved, then any javascript will not be run when the next page is displayed. The alert('Here'); in the code would need to be replaced with some javascript functionality - probably calling a javascript function that works on the TR's "this" object reference.
    Andy

  • How I get the primary key in a interactive report?

    hi,I'm a noob of apex.
    I want to get a Interactive report's primary key or rownum,and I try to use the f01...but it doesn't work.
    how can I do this.
    zl

    Have a look at: Re: To reference Interactive Report filtered rows in PL/SQL

  • Dynamically set maximum row count in Interactive Report

    Hi,
    Has anyone worked out a way of dynamically setting (e.g. via select list) the maximum row count value for an Interactive Report, taking into account issues with order by when the report is filtered. I'm aware of solutions like this: http://www.talkapex.com/2010/10/apex-reports-no-limit-downloads.html but as far as I can tell this doesn't work when the report is filtered and the IR is rewritten in the background. Data sets then become unreliable because they are reordered.
    Thanks,
    Mike

    Hi Mike,
    You can do that with javascript
    gReport.search('SEARCH',100)the 100 you can replace for any number you like.I have a report with filter,sorting and groups and it is gives no problem there.
    any number means any number but not higher than the number you set at Maximum Rows Per Page.
    You probably can mix the solution from Martin and the above code.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.
    Edited by: kvlek on 24-apr-2013 12:29
    Edited by: kvlek on 24-apr-2013 12:35

  • Interactive Report - is there a way to find and change if necessary the unique column.

    While creating an interactive report I accidently entered the wrong "unique column" on the sql query page.  Is this a big deal and how can I find and change if necessary.
    Query Builder
    Link to Single Row View
    Yes
    No
    Uniquely Identify Rows by
    ROWID
    Unique Column
    Unique Column

    33ac2d45-960f-45af-acba-507f01d18e08 wrote:
    Please update your forum profile with a real handle instead of "33ac2d45-960f-45af-acba-507f01d18e08".
    While creating an interactive report I accidently entered the wrong "unique column" on the sql query page.  Is this a big deal and how can I find and change if necessary.
    Query Builder
    Link to Single Row View
    Yes
    No
    Uniquely Identify Rows by
    ROWID
    Unique Column
    Unique Column
    Yes. You can change this using the Uniquely Identify Rows by/Unique Column properties in the Link Column section on the Report Attributes tab of the interactive report definition.

Maybe you are looking for

  • Error wcreate billing with VF01

    Hi, I'm creating a debit memo via VF01 via Batch-input, and i have this message below :   CALL TRANSACTION 'VF01' USING bdcdata MODE 'A' UPDATE 'S'. Balance in transaction currency Message no. F5702 Diagnosis A balance has occurred in transaction cur

  • Problem opening photos with camera raw 7.1 with Photoshop CS6

    I am using Windows 7 32 bit system with 4GB ram and graphics accelerator. I have Photoshop CS5.1 installed in the same system at it works perfectly. What happens is when I use the B+W function, I get an error message saying that I have not enough ram

  • Problem-planned order start date in the past

    I use PP-PI - After MRP run, planned order was created and has exception message "06-start date in the past" its make me wonder because before this problem occur we already tested many time and never found this message(06). then i check in OPPR- fiel

  • FTP - Run OS Command before file processing

    Hi, I have a requirement wherein I need to FTP a file from XI to a folder in a FTP server . Now FTP Server is set up in such a way that I cannot put the file directly. Before transferring the file , I have to use CD ( change directory command ) to ac

  • Creating a DWMQY DIMENSION using Analytic Workspace Manager

    Hi everyone, I need some help creating a "time aware" (DAY, WEEK, MONTH, QUARTER, and YEAR) dimension using Analytic Workspace Manager. Let me give you some background. I'm coming from a traditional "Oracle Express" OLAP background where all our data