How to create a matrix report on Apex 4.1

Hi all.
I need to create a report similar to this one:
Jan Feb Mar .....
Product Category
Category One 999 999 999
Category Two 999 999 999
On a reporting tool like Oracle Reports, this is call a matrix report which can be easily created: just one simple query , select a matrix report type, compute summary values for row /column and grand total, and that is.
How would one implement this on Apex 4.1???
Have a couple of ideas:
- Populate temporary table with columns corresponding to month.
- Create a procedure that return a collection and use that as a source for report.
- Etc.
What other options do i have ...?
Thanks in advance ...!

Hi all,
I did create a matrix report using the pivot function and some interesting settings in APEX. So far it is only does display data. I did not find a way yet(?) to alter the data in the same matrix.
The data is based on a simple set of tables about planning. The end result does look something like the matrix below. Note: the dashes are just there to make the matrix look like a matrix on this forum.
Resource 13-08 20-08 27-08 03-09 10-09 17-09 24-09
Angelo-----25-----22-----12-----10------------------------
John---------8-----22-----36-----22------------------------
Marit-----------------5-----40-----36-----24-----12-----10
The resources (Angelo, John and Marit) are being registered in the following table:
CREATE TABLE EVP_RESOURCES
RSS_ID NUMBER(10,0) NOT NULL,
NAME VARCHAR2(25 BYTE) NOT NULL
The date periods (13-08 till 24-09) are being registered in the next table:
CREATE TABLE EVP_DATA_POINTS
DPT_ID NUMBER(10,0) NOT NULL,
DATA_POINT_DATE DATE NOT NULL,
V_DATA_POINT_DATE_FORMATED VARCHAR2(75 BYTE) GENERATED ALWAYS AS (TO_CHAR("DATA_POINT_DATE",'dd-mm')) VIRTUAL VISIBLE
The virtual column (v_data_point_date_formated) is not needed. You can use this virtual column or format the column in multiple places.
The available units are being registered in the intersection table below:
CREATE TABLE EVP_RESOURCE_PLANNING
RPG_ID NUMBER(10,0) NOT NULL,
DPT_ID NUMBER(10,0) NOT NULL,
RSS_ID NUMBER(10,0) NOT NULL,
UNITS NUMBER(10,0)
The data is being displayed in APEX in a report region of type "SQL Query (PL/SQL function body returning SQL query)". And the following option has to be switched on "Use Generic Column Names (parse query at runtime only)".
This does give a restriction on the number of columns which can be used. You can however change the number of columns in the field "Maximum number of generic report columns:" to a high number. So in most cases this is no issue at all.
In the Region Source I did put the following code:
begin
return 'select *
from ( select rss.name "Resource"
, v_data_point_date_formated
, rpg.units
from evp_resources rss
, evp_data_points dpt
, evp_resource_planning rpg
where rpg.dpt_id = dpt.dpt_id
and rpg.rss_id = rss.rss_id
pivot (sum(units) for v_data_point_date_formated in (' ||
evp_pkg_dpm.f_dynamic_pivot_in ||
order by 1';
end;
The function evp_pkg_dpm.f_dynamic_pivot_in does return a string which is based on the number of rows in the table evp_data_points. In my case this string is: '13-08' as "13-08",'20-08' as "20-08",'27-08' as "27-08",'03-09' as "03-09",'10-09' as "10-09",'17-09' as "17-09",'24-09' as "24-09". If you ommit the 'as "..."' you do get quotes in your headings.
Enjoy and regards,
Jurgen
PS: let me know if something is missing or not clear!
Edited by: user553427 on Aug 17, 2012 5:46 AM (Query has been made more simple and I build up the header differently)

Similar Messages

  • How to create a matrix report

    Hi all,
    i want to create a matrix report manually by writing the query how can i create it in reports builder 10g
    please give me the details steps or any documentations for this so can i easily create the matrix report and also design
    for the matrix report. Please give me specific examples for creating the matrix report.
    plz give me the detail steps.
    please reply.......

    Have a look at this http://download.oracle.com/docs/cd/E12839_01/bi.1111/b32122/orbr_matrix.htm#g1017642
    -Ammad

  • How to create a matrix report with xml

    Hi,
    I have a problem with a maxtrix report ,I got the output from the application but I don't know how to create it at the bi puplisher in order to get the righte template.
    So if any one know the answer or have a useful decomentation send it me .
    Eman.

    Have a look at this http://download.oracle.com/docs/cd/E12839_01/bi.1111/b32122/orbr_matrix.htm#g1017642
    -Ammad

  • How to create Updateable Interactive report in APEX 3.2.1.00.11

    I have an interactive report and am asked to add few more user defined columns, some of them should be free text input box type and couple of others are dropdown list (with Y/N options). I can do that if that was just a SQL report but with interactive report, I am not much aware of if it can be done. I know a way to work around this though - like create a link to direct to a new form page and update there but that is not what I wanted. I need to have those columns in the interactive report itself and should be updateable as well. Is this possible?
    Oracle DB 11g
    Oracle APEX 3.2.1.00.11
    Thanks,
    Sam

    Hi,
    This might help
    http://dbswh.webhop.net/htmldb/f?p=BLOG:READ:0::::ARTICLE:137800346674748
    I hope this do not come too late
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to create a editable Report in Apex

    Hello,
    I have to create a screen, "User Maintenance". Where User can be update and updated.
    I was going through the reports queries. How ever how can I create a SQL Editable Report?
    Awaiting for a quick reply.
    Thanks,
    Girish

    Hello,
    Thanks, it worked.
    However there few fields allowed to modify, rest all should not be allowed to change.
    However Insertion is allowed on all fields.How to achieve this? How to achieve this?
    Thanks,
    Girish
    Edited by: Girish on Jun 18, 2010 7:34 AM

  • How to create a matrix like report with description column

    Hi,
    currently i have two tables - one describing a job and another describing the stock. it is a simple relation where a job uses stock.
    i join job and stock using stock_code. there are three categories of stock - namely envelope, insert, stationary.
    i wish to create a cross tab report - basically i would like it to look like
    jobname, envelope, stationary, insert
    abc, e1, s1, i1
    , ,s2,i2
    def, e2,s3,i4
    , e3, , i5
    basically for each job i would like to place the stock code under envelope, stationary, or insert based on what type of stock it is. i can do this in sql, however, i get left with blank spaces.
    i do this by
    select     
    "FILE_PARAMETER"."FILE_NAME" as "FILE_NAME",
    "CATEGORY",
    "STOCK"."STOCK_CODE" as "STOCK_CODE",
    decode(upper("CATEGORY"), 'LASER', "STOCK_CODE", '') "LASER",
    decode(upper("CATEGORY"), 'ENVELOPE', "STOCK_CODE", '') "ENVELOPE",
    decode(upper("CATEGORY"), 'INSERT', "STOCK_CODE", '') "INSERT",
    decode(upper("CATEGORY"), 'INSERT',"STOCK"."DESCRIPTION",'') "DESCRIPTION"
    from
    "FILE_PARAMETER" "FILE_PARAMETER",
    "JOB_OVERVIEW" "JOB_OVERVIEW",
    "STOCK" "STOCK"
    where
    "FILE_PARAMETER"."FILE_NAME"="JOB_OVERVIEW"."AP_JOB_CODE"
    and "FILE_PARAMETER"."SCODE"="STOCK"."STOCK_CODE"
    ORDER BY "FILE_PARAMETER"."FILE_NAME", "CATEGORY"
    unfortunately this doesn't give me exactly the output i want. i would like it to show the first piece of stock in each category on the first line, and each subsequent stock on the line after that for each job group. my solution at the moment will put the stock in the corresponding stock category column but i have been unable to find a solution to removing the blank space.
    i have created the matrix report in developer and it can do what i want, however, it will not show the description for insert only. the way i have grouped it, it wants to show it all, and being a reports newbie i have no idea how to fix that
    any solutions would be very much appreciated!

    This feature is supported in MS Access and known as CROSSTAB through TRANSFORM function.
    In Oracle this exists but not in a elegant way as in MS.
    You have addition function GROUP BY ROLLUP and CUBE and GROUP BY GROUPING SETS, available in 10g, which can help you.
    Look in manuals and play with it!

  • How to create a standard report that allows filtering?

    Hi Guys and Gals,
    Sometimes, the standard report is great because it gives the user the feeling of a grid. i.e. All of the values are editable on one page, kind of like a spreadsheet. That is sometimes very useful. But if there is a lot of data, a filtering mechanism is necessary.
    So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
    Allowing the user to specify the number of rows displayed would be peachy-keen too.
    Thanks,
    Kim
    P.S. I'm running Apex 4.1 with Oracle 11g.

    Kim2012 wrote:
    Your idea sounds very promising, but I apparently need a nudge in the right direction. From "Create Page", I clicked on "Form" and then "Tabular Form". Why would you do this? The advice given was
    create a standard report page using the Create New Page wizardi.e. go to Home > Application Builder > Application > Create Page and click Classic Report, this was suggested because the original post said:
    >
    So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
    >
    Nothing about forms. Tabular Forms, Tabular Forms. Despite many enhancements over the last few versions, tabular forms still cause problems, especially for novices trying to go beyond their own competence and the built-in capabilities of wizard-generated tabular forms.
    More good advice: Re: Newbie question-how does the tabular form work?  How to populate prim key? and—if based on decent database design—out of the box you have a usable and robust application. Use an Interactive Report or a custom report template and add some CSS and you can get something a lot more powerful, flexible and better looking than any tabular form. Spend the time you haven't wasted on frustrated hacking of tabular forms adding more features and enhancements to your app.

  • How to create a daily report for sales order

    hi
    how to create a daily report for sales order. what fields it must consists of. what are the tables it need?

    Hi
    You have to use the sales order tables VBAK,VBAP and VBEP
    So keep date field on selection screen
    and treat this date as Order creation data audat field in VBAK.
    based on this fetch the data from VBAK and VBAP  with the following fields like
    VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS  etc and display in the report
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to Create MultiSheet Excel Report Output in XML Publisher in Oracle R12

    Dear All,
    How to Create MultiSheet Excel Report Output in XML Publisher in Oracle R12.
    My Requirement is to develop RTF Template and geneate Excel output in Multiple sheet.
    plz guide me on this..
    thnx
    Khushal

    plz see
    BI Publisher: How to create Multisheet in Single Excel file using Excel Template [ID 1352000.1]
    for r12 you can use excel template
    i think it more appropriate for excel output

  • How to create a consolidated report in report builder?

    Hi,
       How to create a consolidated report in report builder?
       There are 8 tables in database.
       All the tables have same columns with same column names.
       I want all the values of 8 tables to be displayed in the same report, but in a particular order.
       Can we do an 'order by' for tables??? like 'order by table_name' ???
       Thank You.

    You can create a query like this:
    select * from (
      select 1 sort_order, * from t1
      union all
      select 2, * from t5
      union all
      select 3, * from t2
      etc.
    order by sort_order, <something else if needed>

  • How to create a crystal Report using C# and SQL Server

    Hi, im new in creating crystal report using SQL Server, and im making a project.. and could someone help me how to connect your .sdf (SQL Server File) from the bin to your crystal report? thanks a lot.. i followed some instructions like this one (https://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?forum=csharpgeneral)
    but i got an error on the adding of server name and database portion.. thanks a lot in advance

    Hello,
    Crystal Reports are supported on
    http://scn.sap.com/community/crystal-reports.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • How to create a snapshot report on the specific destination?

    dear all
    How to create a snapshot report on the specific destination?
    thanks
    john

    user8779435 wrote:
    dear all
    How to create a snapshot report on the specific destination?
    thanks
    john
    Hi,
    when prompted just input the full path with filename for example
    Enter value for report_name: /tmp/awrreport.htmlHope this helps
    Cheers

  • How to create a FSG report in pdf format

    How to create a FSG report in pdf format?
    Thanks In Advance
    Kris

    Hi,
    There is an enhancement request at user group review to create FSG's in PDF format. However, I transformed the FSG output by using ascii2pdf shareware software (do a search on google.) I created a shell script that did the transformation and emailed the report from Oracle Apps. It seems to work ok.
    Renee

  • How to create drill down report in sap query

    how to create drill down report in sap query ,

    hi,
    The pdf below gives the steps to create drill down report.
    http://www.sappoint.com/abap/eis.pdf
    also check.
    <a href="http://72.14.203.104/search?q=cache:k-SFYy_rjPIJ:www.hrexpertonline.com/archive/Volume%252003%2520(2">http://72.14.203.104/search?q=cache:k-SFYy_rjPIJ:www.hrexpertonline.com/archive/Volume%252003%2520(2</a>
    regs,
    jaga

  • Oracle forms how to create excel format report

    hello :)
    these are my codes that generates report in live previewer. my problem is how to create an excel report producing the same output i can get in live previewer.
    Declare
         pl_id ParamList;
         v_alrt number;
         v_acct_ent_date date;
         v_start_date date;
         v_end_date date;
         v_end_date1 date;
         v_end_date2 date;
         v_end_date3 date;
         v_end_date4 date;
         iss_group varchar2(100);
         monthidentify date;
    Begin
         SELECT B.USER_GRP
         INTO ISS_GROUP
         FROM GIIS_USERS A,GIIS_USER_GRP_HDR B
         WHERE A.USER_GRP = B.USER_GRP
         AND A.USER_ID = USER;
    Select max(acct_ent_date)
    INTO v_acct_ent_date
    FROM gipi_polbasic;
         SELECT TRUNC(ADD_MONTHS(SYSDATE, -24))
         INTO v_end_date1
         FROM DUAL;
         select LAST_DAY(:FILTERS.FROM_DATE)
         INTO V_END_DATE2
         FROM DUAL;
         SELECT TRUNC (TO_DATE (:FILTERS.END_DATE), 'MONTH')     
         INTO V_END_DATE3
         FROM DUAL;
    IF :FILTERS.FROM_DATE IS NULL THEN
              MESSAGE('Please Enter a starting date in the format "MM/DD/YYYY"');
         MESSAGE('Please Enter a starting date in the format "MM/DD/YYYY"');
         GO_ITEM('FILTERS.FROM_DATE');
         Raise FORM_TRIGGER_FAILURE;
         END IF;
         IF :FILTERS.END_DATE IS NULL THEN
         MESSAGE('Please enter an Ending date in the format "MM/DD/YYYY"');
         GO_ITEM('FILTERS.END_DATE');
         Raise FORM_TRIGGER_FAILURE;
         END IF;
         IF :FILTERS.FROM_DATE > :FILTERS.END_DATE THEN
         MESSAGE('Starting Date cannot be greater than Ending Date');
         MESSAGE('Starting Date cannot be greater than Ending Date');
         :FILTERS.FROM_DATE := NULL;
         :FILTERS.END_DATE := NULL;
         GO_ITEM('FILTERS.FROM_DATE');
         Raise FORM_TRIGGER_FAILURE;
         END IF;
         IF :FILTERS.DATE_FILTER = 'AED' and :FILTERS.FROM_DATE > v_acct_ent_date and
              :FILTERS.END_DATE > v_acct_ent_date then
              MESSAGE('No premium batch production occured between the given dates');
         MESSAGE('No premium batch production occured between the given dates');
         Raise FORM_TRIGGER_FAILURE;     
         END IF;
    IF ISS_GROUP <> 2 or USER = 'MKMIF' THEN
    /* IF :FILTERS.END_DATE <> V_END_DATE2 THEN
              MESSAGE('DATE PARAMETER SHOULD BE EXACTLY 1 MONTH');
              MESSAGE('DATE PARAMETER SHOULD BE EXACTLY 1 MONTH');
         Raise FORM_TRIGGER_FAILURE;
         END IF;
         IF :FILTERS.FROM_DATE <> V_END_DATE3 THEN
              MESSAGE('FROM DATE PARAMETER SHOULD BE THE FIRST DAY OF THE MONTH');
              MESSAGE('FROM DATE PARAMETER SHOULD BE THE FIRST DAY OF THE MONTH');
         Raise FORM_TRIGGER_FAILURE;
         END IF;*/
         IF :FILTERS.FROM_DATE < V_END_DATE1 THEN
              MESSAGE('FROM DATE SHOULD BE 2 YEARS BEFORE OR 2 YEARS BETWEEN THE SYSTEM DATE');
              MESSAGE('FROM DATE SHOULD BE 2 YEARS BEFORE OR 2 YEARS BETWEEN THE SYSTEM DATE');
              Raise FORM_TRIGGER_FAILURE;
         END IF;
    END IF;     
    IF :FILTERS.DATE_FILTER = 'AED' THEN     
         BEGIN
         Select acct_ent_date
         INTO v_acct_ent_date
         from gipi_polbasic where acct_ent_date between :FILTERS.FROM_DATE and :FILTERS.END_DATE;
         EXCEPTION
              When TOO_MANY_ROWS Then
              Null;
              When No_Data_Found Then
              Message('Premium batch productions can only be done at the end of the month. Kindly check the dates you entered.');
              Message('Premium batch productions can only be done at the end of the month. Kindly check the dates you entered.');
              Raise Form_Trigger_Failure;
         END;
    END IF;     
         v_alrt := show_alert('PRINT_ALERT');
         IF v_alrt = alert_button1 then
                   pl_id:= Get_Parameter_List('tmpdata');
                   IF NOT ID_NULL(pl_id) then
                        DESTROY_PARAMETER_LIST(pl_id);
                   END IF;
                   pl_id:=Create_parameter_List('tmpdata');
                        Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
                        Add_Parameter(pl_id,'start_date',TEXT_PARAMETER,TO_CHAR(:FILTERS.FROM_DATE,'MM/DD/RRRR'));
                        Add_Parameter(pl_id,'end_date',TEXT_PARAMETER,TO_CHAR(:FILTERS.END_DATE,'MM-DD-RRRR'));
                        Add_Parameter(pl_id,'CREDITING_BRANCH',TEXT_PARAMETER,:FILTERS.BRANCH_CODE);
                        Add_Parameter(pl_id,'LINE_CODE',TEXT_PARAMETER,:FILTERS.LINE_CD);
                        Add_Parameter(pl_id,'INTERMEDIARY_NAME',TEXT_PARAMETER,:FILTERS.INTM_NAME);
                        Add_Parameter(pl_id,'INTERMEDIARY_TYPE',TEXT_PARAMETER,:FILTERS.INTM_TYPE);
              IF :FILTERS.Date_Filter = 'AED' then           
                   RUN_PRODUCT(REPORTS, 'PREM_PROD_AEDALL.rep' ,SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
              elsif :FILTERS.Date_Filter = 'ED' then
              RUN_PRODUCT(REPORTS, 'PREM_PROD_EDALL.rep' ,SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
              End IF;
              END IF;               
    End;
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hello,
    build a standard report using REPORT BUILDER (Oracle 10g Release 2)
    set
    DESFORMAT=SPREADSHEET
    Regards,
    Tarun

Maybe you are looking for

  • Check on the Remote Object

    Hi All, We have a situation where we have multiple RMI Servers for a particular setup. To reduce the response time what we are doing is, everytime we look up for a server for first time we store the referece then onward any call to the same server wi

  • Does iMovie support Sony MicroMV video format?

    Hi, there I have one Sony MicroMV HandyCam (Model No. DCR-IP55E) and try to use iMovie to import the video from it. iMovie can recognize this machine (It shows the correct name and format for it!). But it can not import the video. As iMovie only reco

  • Planning ETM Equipment in Project ...

    Hello Everybody I m planning machine hours of ETM (Equipment & Tools Management) equipment in my project.  I have done all the necessary settings required and are getting requirement generated automatically in ETM planning board without making requis

  • How to create a collaboration room of the SAP Portal from EJB tier.

    Hi. I have created a EJB Stateless Session Beans, and I want to create a room using the API of KM. I have used the code mentioned in this URL: http://help.sap.com/saphelp_nw04s/helpdata/en/7d/c69c42d706c66ae10000000a155106/content.htm It works fine i

  • Must have scripts for a DBA

    Hi All, My requirment may sound a bit vauge but i want to know what all are the scripts a Oracel DBA must have? Scripts which are releated to monitoring,maintenance and performance realetd. Kindly shre the same, if you have the same. BR Sphinx