Interactive Reporting - Counting Records in a Non-numeric Column

I have created a report that shows open trouble tickets, the group they are assigned to and the status of the ticket. I would like to create another report based on the first one that shows each group and the number of tickets they have in each status category. For example:
Group Assigned Testing Closed Total
Bus. Analysts 2 5 0 7
I.T. 6 2 3 11
Is there a function in IR that can count number of rows/records?

depending on how you have your data you can use a Pivot section.
If the data is 1 row = 1 record then add computed column to your results with a static value of 1 and use that as your fact within the pivot with your Ticket Type as a top label and group as a side label.
Wayne Van Sluys
TopDown Consulting

Similar Messages

  • Sorting non numeric column based on numeric column value

    APEX 3.1 - RDBMS 10Gr2
    In this example, I have a report with 2 columns: (1) numeric IP address (no periods embedded) and (2) varchar IP address (IP address with periods). I would like to display the varchar IP column on the report but sort by the numeric IP address values when the user attempts to sort on the displayed (varchar IP) column in the report.
    I would like to do this in Interactive Reports (if possible) but am willing to do this using the conventional report (non IR).
    Any thoughts are appreciated. Thanks in advance.
    Barry D.

    Barry:
    You and do this in a classic report as follows
    1) Report query -> Select f1_num, f2_char from table
    2) Report Attributes -> Edit Column f1_num - > HTML Expression -> Set to #f2_char# -> Apply Changes
    3) Report Attributes -> Uncheck 'Show' for f2_char
    Varad

  • When using a interactive report I go to aggregate and no column are there

    When using a interactive report I go to aggregate, sum and go to choose my columns but I have no column there what am I missing

    Just a guess, but have you checked to make sure there's a numeric column in your report (and not, for example, a varchar column that happens to have numbers)?
    -David

  • Interactive Report - is it possible to stop a column being hidden?

    I have an interactive report region where i have a column that has a link that performs an action, in this case it links to a screen where the user can then add a row. I want to make this column mandatory and not let the user hide it. I can remove other functionality, but cant seem to control the hide/show functionality.
    anybody got any ideas?
    craig
    [oracleapplicationexpress.com|http://www.oracleapplicationexpress.com]

    Dear Hemanth,
    To your question:
    "Is it possible to stop a campaign from being cancelled if it has purchase orders attached to it, using standard functionality".
    This might be possible with a BADI implementation. In enhancement spot CRM_MKTPL there exist a BAdI CRM_MTKPL_OL_OBJ where the interface method CHECK_BEFORE_DELETE is offered.
    Regards,
    Anik

  • Interactive Report - sort strings/numbers in the same column

    Hi all,
    I have an interactive report and have a column value.
    It has type varchar2 in Database.
    Problem: There are existing numbers and chars in this column.
    Now I want to sort as numbers as chars.
    Now it's like this:
    10
    2
    23
    3
    no
    yes
    I want like this:
    2
    3
    10
    23
    no
    yes
    How can I receive this???
    All suggestions are welcome.

    without regexp option:
    select vc
    ,      case when instr('#1#2#3#4#5#6#7#8#9#0#',substr(vc,1,1)) = 0 then 1 else 0 end sort_column
    from 
    select '10' vc from dual union all 
    select '2'     from dual union all 
    select '23'    from dual union all 
    select '3'     from dual union all 
    select 'no'    from dual union all 
    select 'yes'   from dual union all
    select 'yas'   from dual
    order by 2,lpad(vc,'9',0)  --First sort on numbers, then on characters

  • Interactive Report  count selected rows

    I have a I/R report with a checkbox is column 1 of each row using:
    HTMLDB_ITEM.CHECKBOX
    (1,R.RESEARCH_ID,
    decode(:Pxx_SELECT_ALL_ROWS,'Y','CHECKED',
    decode(instr(nvl(:Pxx_SELECTED_IDS,0),R.RESEARCH_ID),0,NULL,'CHECKED'))
    AS select_flag
    I want to use Javscript or a Dynamic Action to "count" how many selected rows there are, when a UPDATE button is pressed.
    Right now, the UPDATE button "submits" the page, then a page item computation runs the following code to get a count:
    DECLARE
    v_cnt number(9);
    BEGIN
    v_cnt := 0;
    FOR i in 1..htmldb_application.g_f01.count
    LOOP
    v_cnt := v_cnt + 1;
    END LOOP;
    return v_cnt;
    This works... but I dont want to submit (and rerun the report) just to get this count.
    I have copied this loop into a Dynamic Action using the Click action of the UPDATE button, but it doesnt seem to recognize htmldb_application.g_f01.count .. so my value returns as 0.
    Any ideas - thanks!

    I am not that strong in javascript, so I put a few alerts in the function you provided, to try to understand it better.
    My example query returns 2 rows.
    document.wwv_flow.f01.length returns a value = 2.
    I checked both rows, then called the function.
    I put an Alert inside the FOR loop in your example, it never executed.
    The FOR loop in your example used a “>” sign, which never would evaluate as true, since i=0 > 2 is immediately false.
    I changed the operator in the FOR loop to “<”.
    The loop executed 2 times,
    I displayed the with variable i : values = 0, 1
    I displayed the value of document.wwv_flow.f01.id, it was NULL both iterations.
    The $x(curr_id).checked is never true, so count remains = 0
    function f_count_checked ()
    var counter = 0;
    for (var i = 0; i > document.wwv_flow.f01.length; i++) ---- I changed this to “<”
    {var curr_id = document.wwv_flow.f01[i].id;
    if ($x(curr_id).checked==true)
    {counter = counter + 1;}}
    alert ('You have checked: '+counter+' rows.');

  • Can interactive report have 2 "special" columns?

    I have an interactive report on which I have placed a column for redirecting to a detail form. But I want to, also, put a column that will contain a button which will perform an action (update 2 columns in db). This way if the user wants to close the entry on the db they can click this button without having to go to the detail screen. So, they can go to the detail screen and close the entry or they can just click on the button to close the entry. I would love to have it be done with a right-mouse click menu but I suspect that is too much to ask which is why I thought the button might be ok.

    I took a different approach but this might work for you...
    On the interactive report, defined column1 as 'CheckBox' using this syntax:
    Select APEX_ITEM.CHECKBOX(1,c.s_id) "s_id_checkbox", column2, column3 etc. from my table - Note: APEX_item.CHECKBOX can create the checkbox as 1st item on the IR report
    once the item is defined, set the item header in the 'Report Attributes' tab to: <input type="checkbox" onclick="$f_CheckFirstColumn(this)" title="Select"/> and column type: Standard Report column - This will give the each row of the IR check/uncheck facility for the user. Make sure when you run the IR in developer mode, to 'Select' the newly defined 'checkbox' column in the 'Actions' menu and Save the report as 'Public' report. Also, move the newly-defined 'check-box' column as 1st column to display on the IR.
    Introduce a button Item on the IR Page, that will submit a page process. Write your PLSQL procedure or DML calls in this page process, for performing your database operation on your list of 'checked items'
    Page Process upon button submit: Code Example only. You may need to implement as per your reqs.DECLARE
    v_request VARCHAR2(100) := v('REQUEST');
    v_count pls_integer;
    v_selected_item_id pls_integer;
    BEGIN
    :P1_PROCESS_MSG := NULL; --This should be set the page processes 'success' and 'error' message properties to &P1_PROCESS_MSG. (Define new item P1_PROCESS_MSG on your page of IR)
    IF v_request = 'YOUR_BUTTONS_REQUEST_NAME' THEN
    --//Process each user selection via the PLSQL page process api call
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    v_count := v_count+1;
    BEGIN
    v_selected_item_id := APEX_APPLICATION.G_F02(i);
    --// CALL_YOUR_PLSQL_PACKAGE or Custom DML BY PASSING THE USER SELECTED RECORD_ID TO PERFORM YOUR DATABASE DML and by using the 'v_selected_item_id' as a parameter or DML condition to perform your database DML action.
    EXCEPTION WHEN OTHERS THEN
    :P1_PROCESS_MSG := SQLERRM;
    END;
    END LOOP;
    END IF;
    EXCEPTION HANDLER..
    :P1_PROCESS_MSG := SQLERRM;
    END;
    Usage:
    User runs the IR, checks on the records he/she wants to do the 'close' then clicks on the new button that does the 'multiple-close' for the records of choice. He/she can select just-1-row and do the same dml operation by clicking on a button that you defined on this IR Report's page.
    Also, if the above approach is not viable, you can create a 'f?p...' column link on your IR's main query to submit the page upon user-click. But, I've seen the above approach lot more liked by users.
    SK
    Edited by: VSKumar on Feb 7, 2012 5:45 PM

  • Interactive report "group by" endsum is only a page-sum!

    Interactive report "group by" endsum (total for a numeric column) is only the sum of the values of the last page! Is this a bug?
    You can test on the page: http://apex.oracle.com/pls/otn/f?p=1949:1 User/password = apex/apex
    You see a sample - as png picture - on the page: http://progkor.inf.elte.hu/a/GroupByEndSum.png
    Albert

    john2013 wrote:
    Anybody installed the latest APEX? i believe it's 4.2.3.
    You can find out for yourself by requesting a workspace on apex.oracle.com, which always runs the latest production release.
    Could you please tell me
    is the limitation for interactive report "group by" action increased?  (3 columns max for my 4.2 version)
    No. Patch releases like 4.2.3 are never likely to include significant changes in functionality. They only provide bug fixes.
    I consider this is a major drawback...
    Interactive reports follow the 80/20 rule. They satisfy 80% of the requirements of 80% of users 80% of the time. If your requirements fall into any of the remaining 20% categories then you have to build something yourself. APEX is a development tool after all...

  • How to set the column width in the PDF exports of interactive reports ?

    Hello,
    I have a huge problem with the PDF export for the Interactive reports. I'm using APEX 3.2.
    I have to produce a PDF report in landscape format that show 21 columns. My problem is that the columns have a ridiculous short width and that the text inside the columns do not wrap in the columns. So I get things like that :
    Date Name
    2011 Leina
    I should see 2011-08-01 and the name Leinad Jan
    I tried several things to format the columns, but none of the them has any effect on the PDF itself.
    1) I used HTML code in the report query. It works well with the interactive report, but display the HTML tags in the PDF.
    2) I used css to set the width of my columns. It works in the interactive report, but not in the PDF, the column width do not change.
    It's like the report do not notice that my page format is Legal 14 x 8.5 (Landscape) and still believe it's 8.5 x 11 (which is "portrait")
    Do you have any idea so set the columkn widths in the reports ?
    Thank you !
    Edited by: leinadjan on Aug 1, 2011 11:15 AM

    To "remember" the column widths, add a mouse listener to the table header. Upon mouseReleased(), get the column widths and save them to your file. When the application starts next time, get the stored widths and set them using:
    table.getColumn("XXX").setPreferredWidth(...);
    By default, your columns are adjustable, but you can use:
    table.getTableHeader().setResizingAllowed(true);

  • Interactive Report filtering with hidden item column names

    I have created an Interactive Report and changed some of the default column headings by using hidden Items with appropriate title. However, when I look at the filter option in the "Gear" drop-down, the only column names which appear are the default ones. There are blank lines for the columns using hidden Items. Any suggestions for having the hidden item content appear in the filter column name list?
    Thanks,
    George

    George,
    What is it you're actually trying to do here? Maybe there's an easier way?
    Hidden items aren't going to show up in the Column List.
    I'm guessing you're trying to separate a long list of column names using '----------' or something like that? We're looking to do just that in our application, but obviously we don't want to users selecting these dummy entries. We tried using the IR column groups, but those make the list look even more cluttered IMHO. (Plus setting the sort order w/in the groups doesn't seem to affect the drop-down column lists, which seems counter-intuitive to me).
    If anyone has other suggestions for breaking up the column list display, I could use something immediately (going into beta-test in 2 weeks!).
    Thanks,
    Stew

  • Implement a normal insert process in an interactive report

    Hello,
    I want to implement a normal insert process for an interactive report. For which I have created an pl/sql anonymous block with the process. This process will be fired when I click the create button of the New record insert region.
    insert into table_name(YR_MO,STATUS,UPDATED_DT,ID) values
    (to_char(sysdate,'YYYYMM'),:P1_STATUS,sysdate,:P1_ID);
    YR_MO is my primary key column in tha table.
    For inserting purposes I have created a separate (New record insert) region, with the items P1_STATUS and P1_ID amd a create button.
    Within the interactive report, i have a button Create_New when I click this button the New record insert region should open up and in that region, i have the items P1_STATUS,P1_ID.
    My problem is when I click the Create_New button within the interactive report, the records are getting inserted. I dnon't understand what might be the problem, because the insert process should be fired when i click the create button within the New record insert region but it is firing when I click the create_new button.
    Can anyone help me out with this issue.
    Thanks,
    Orton.

    Does the insert process fire on a specific request only? And do the two buttons have different request values (names)?

  • [nQSError: 22019] Function Sum does not support non-numeric types. OBIEE11G

    I have the following error when using COUNT on a non-numeric column in OBIEE 11g
    I cannot seem to find the root cause. I tried to recreate the RPD with the same aggregations an joins and the issue disappears. However, the issue seems to persist in the original RPD that is being used by the business. I cannot seem to find any differences w the RPD.
    Any thoughts?

    Hi Rahul,
    this question does not seem to be related to SQL and PL/SQL forum.
    I guess you could use {forum:id=64} or {forum:id=61} forums.
    Regards.
    Al

  • Interactive report button

    Hi
    I am wanting to add a button called Randomise to the interactive report page but when I create a button the button shows on both the report view and the record view when i go into a record. I only want it to show when I go into the individual record and not on the report page. How can i do this?
    thank you
    Aisha

    Hi,
    Maybe I was not very clear in my previous question. I am wanting to edit the page after I have clicked the column link on the interactive report. Is this possible?
    Currently I have an interactive report I then click on a link column of a record and the brings up the record to view, I would like to be able to add a button to this page only and be able to run a process associated to the button then update the record to the table.
    Please help.
    Aisha

  • Interactive report with single row select

    Hi,
    Is it possible to create an interactive report that has a single row select column i.e. you can only select one row and when you select another row it deselects any row selected before, simular to a list of values but with the functionionality of an IR report.
    Thanks in advance

    Hi,
    Try adding this to the query of your report:
    select ...
           apex_item.radiogroup(1, some_unique_column) sel
    from ...You didn't say how you want to use this, but when the page is submitted the array apex_application.g_f01 may contain either none or exactly one element, which will be the some_unique_column value of the selected row.
    Luis

  • Problem adding column in an interactive report

    Hi all
    I am dealing with many interactive projects in my application. Sometimes I have to add a column to the interactive report. When I do so, the column doesn't appear in the interactive report...On the page I have to click on "Actions" then go to "Selected columns" and then display it ! the problem is when I logout and login again
    the column desappear again and I have to do samething again and again...Is there a way to set it appear by defaul always ???
    THank you

    Moun wrote:
    I am dealing with many interactive projects in my application. Sometimes I have to add a column to the interactive report. When I do so, the column doesn't appear in the interactive report...On the page I have to click on "Actions" then go to "Selected columns" and then display it ! the problem is when I logout and login again
    the column desappear again and I have to do samething again and again...Is there a way to set it appear by defaul always ???After adding new columns to an existing IR, you need to select them for display as a developer, and save the new report as the Primary Default.

Maybe you are looking for

  • Recursion using a linked list

    I am confused at how to make a linked list using recursion. I've been looking at the syntax and examples from the web for the past couple hours, but all seem to be based on an empty .java file. I need to put it in my code somehow. here's the code seg

  • Submitting Forms without email programs

    Hi, I was wondering if there was any way to submit the pdf forms without having to rely on an email program such Outlook. Is there any way a code can be written to be able to submit forms where they don't have to be attached to the email prior to be

  • After SP upgrade, pdf in web dynpro could not display dollar symbol

    Dear Experts,       We have updated the following support packages:      SAP_BASIS 14-18      SAP_ABA 14-18      PI_BASIS 14-18      SAP_BW 15-20      SAP_AP 12-15      EA-HR 23-61      SAP-HR 23-61      E-RECRUITMENT 18      After that, Some webdynp

  • OdiSendmail pass hostname as Variable

    Hi Guru, Can we use this code Command on source : SELECT DESTINATION smtp_srv ,  PARAM_NM from_list ,PARAM_VAL to_list FROM PARAM WHERE TABLENM = '#TABLENM' Command on Target : OdiSendMail "-MAILHOST=#smtp_srv" "-FROM=#from_list" "-SUBJECT=Please fin

  • Inspection result report

    Hi All, My client needs inspection report Work centre (date wise). In MCXB it is coming work centre wise but moth wise I am gating. In QGA2 its coming work centre and date wise but problem is after expanding the column all information is not there li