Matrix Style Reports

Hi,
I'd be interested in ideas for producing a matrix-style report (similar to that possible with Oracle Discoverer or Pivot Tables in spreadsheets). Example below. I've tried dynamic SQL (report based on function returning a SQL query) but this quickly gets very complex.
Are API's available (similar to the form item api's) for laying out HTMLDB sytle report headings and rows directly ?
Matrix Example
Imagine you have sales data by product and date e.g.
Product Date Sales
A 2003 100
A 2004 75
B 2003 50
I would like to display a matrix report similar to
Sales 2003 2004 ...
A 100 75
B 50 ...
...

htmldb currently installs with a package called wwv_flow_rewrite_query. it's not technically supported, but it's really solid code ...and i think it does pretty much what you're hoping to do (pivot sql query). if you look in your $OHS_HOME/marvel directory you should see a file there called wwv_flow_rewrite_query.sql. fortunately that package isn't wrapped. better yet, it's loaded down with documentation. i'd take a look there to see about your report. if you have questions on the concepts (not the package), the author can be found discussing the topic at...
http://asktom.oracle.com/pls/ask/f?p=4950:8:::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:766825833740,
...but basically, you'd us the package to rewrite your query, returning wwv_flow_rewrite_query.as_pivot to the htmldb reporting engine in your Function Returning SQL Query region.
...hope this helps,
raj

Similar Messages

  • Need Matrix Style Report...

    I need to create a matrix style report. There is a template for matrix reports in Oracle Report Writer, but not in APEX. My report should have a list of countries going down and a list of species going across with data showing how many for each country, each species.
    Example of report:
    Species Pollack Whiting Tuna
    Country
    China 5 6 10
    Chile 1 2 1
    Japan 4 4 8
    How do I build this?

    Is this in Oracle 11g?? If so, you could use the pivot function in your sql to build the output data..
    http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder
    Also threads in APEX forum dealing with this:
    How to create a matrix report
    Thank you,
    Tony Miller
    Webster, TX

  • Problem in matrix style report

    i have generate a matrix style report which has 5 X 4 = 20 cells . now in the report all cell values should not be filled according to the data in the tables but every cell in the report is filled . and more is that the filled values in the cell which are supposed to be blank is repeated from other cells . what is this problem and how to correct it ? i have an idea that this might be some varibale issue but cant figure it out .plz somebody help me out from this

    Hi,
    This problem of REP-1813 because,the data fetched into a matrix cell exceeds the capacity of the cell--
    e.g., the cell may contain a variable field, and the data may be longer than expected.
    Therefore, to solve this issue u may want to either enlarge your matrix cells until they are able to contain the data fetched into them, or redefine your data.
    regards
    ~sudha

  • Matrix style report without aggregation

    Hi,
    I have this source data.
    Chassis Blade Server Component
    C1     B1     S1     COMP1
    C2     B2     S2     COMP1
    C3     B3     S3     COMP1
    C1     B4     S4     COMP2
    C3     B6     S5     COMP2
    C1     B1     S6     COMP3
    C2     B2     S7     COMP3
    C2     B2     S8     COMP3
    I need it to look like this:
    Components      C1     C2     C3
    COMP1          S1     S2     S3
    COMP2          S4          S5
    COMP3          S6     S7,S8
    I thought at first matrix report is what I want but it aggregates the data, I do not want to aggregate the data (there are only one or two data items per intersecting cell). Any ideas how I can achieve this with OBIEE or BI Publisher?
    The number of rows and columns (chassis) is dynamic and the number of chassis shouldn't exceed 10.
    Edited by: 956804 on 04-Sep-2012 04:08

    Take a look at the documentation.
    It explains how to achieve it:
    http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rft_bldr.htm#tb_piv
    regards
    Jorge Anicama
    p.s If this answers your question then please mark the answer as "Correct" or "Helpful"

  • How to show more than one record at a form-like style report?

    Hi All,
    I developed a form-like style report
    I want it to show more than one record at once (At the same page)
    I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
    but when I close the property palete and open it agian the value is returned to 1 !!!
    how to show more than one record at the same page?????
    Thank u

    Hi,
    there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
    Regards
    Rainer

  • Expand and Collapse(+/-) option in a Matrix SQL Reporting Services 2008

    Hello All,
    I am having Expand and Collapse(+/-) option in a Matrix SQL Reporting Services 2008. It's not working when it is havnig a Row Group and Column Group.
    Does reporting services has this flexibulity?? It's working fine if it's only have a Row Group an it's not working if it is having Row and a Column Group. Can any one suggest how to work aroung with this.
    any help much appriciated.
    Thanks & Regards,
    Jeevan Dasari.
    Dasari

    Drill-down feature is a basic requirement, it is concluded in Reporting service from SSRS2000 to SSRS2008 R2, To
    your scenario I think the root cause is relevant to your incorrect steps. Please follow the steps below and then give the feedback:
    1.     Right-click the child groups in the
    Row Groups panel which is at the left-bottom of the BIDS, and then select
    Group Properties…
    2.   
    Switch to Visibility tab, and then select
    Hide Radio-button, click the checkbox of Display can be toggled by this report item.
    3.   
    Then select the parent group datafield in the drop-down list.
    4.   
    Click OK.
    Thanks,
    Challen Fu
    Challen Fu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Grand Total For Matrix Based Report

    Hi All,
    I have a matrix based report with Fields like Country ,Amount and MonthYear
    So report looks like below the columns get generated dynamically :
    Country     Oct 2013    Nov 2013  Dec 2013
    India         25,000         25,000    25,000
    England    22,000         25,000    30,000
    Total         57,000         50,000    55,000
    So this works perfectly fine . So next step was to get difference between the months like below :
    Country     Oct 2013    Nov 2013  Dec 2013   Oct-Nov 2013          Nov - Dec 2013
    India         25,000         25,000    25,000             0                              
    0
    England    22,000         25,000    30,000          -3000                      
    -5000
    Total         57,000         50,000    55,000
    Simon_Hou Provided me a custom code for dynamically find the difference between months . Now only requirement left is the sum of the dynamically generated month difference column . As the columns are generated based on a custom code it's not allowing me
    to do a sum  on it.
    Desired Output
    Country     Oct 2013    Nov 2013  Dec 2013   Oct-Nov 2013          Nov - Dec 2013
    India         25,000         25,000    25,000             0                              
    0
    England    22,000         25,000    30,000          -3000                      
    -5000
    Total         57,000         50,000    55,000         -3000                       
    -5000
    Can any one please advice me how to do sum for the dynamically generated custom code column .
    Code is below it might help some1 else(Simon_Hou)
    Private queueLength As Integer = 2
    Private queueSum As Double = 0
    Private queueFull As Boolean = False
    Private idChange As String=""
    Dim queue As New System.Collections.Generic.Queue(Of Integer)
    Public Function CumulativeQueue(ByVal currentValue As Integer,id As String) As Object
    Dim removedValue As Double = 0
    If idChange <> id then
            ClearQueue()
                    idChange = id 
                    queueSum = 0 
                    queueFull = False
                    CumulativeQueue(currentValue,id)
    Else  
                    If queue.Count >= queueLength Then
                                    removedValue = queue.Dequeue()
                    End If
                    queueSum += currentValue
                    queueSum -= removedValue
                    queue.Enqueue(currentValue)
                    If queue.Count < queueLength Then
                    Return Nothing
                    ElseIf queue.Count = queueLength And queueFull = False Then
                    queueFull = True
                    Return (queueSum-currentValue-currentValue) 
                    Else
                    Return (queueSum-currentValue-currentValue) 
                    End If
    End If
    End Function
    public function ClearQueue()
    Dim i as Integer
    Dim n as Integer = Queue.Count-1
    for i=n To 0 Step-1
                    queue.Dequeue()
    next i
    End function
    Thanks in Advance
    Priya

    Hi Priya,
    According to your description, you want to add a total row at bottom of the matrix. This total row should display the  both sum of amount every month and the sum of the difference between months. Right?
    Since we have tried the custom code in another similar thread you have posted before (Difference
    Between the grouped column) and it works properly. In this scenario, we just need to use the sum function and put it as a variable when calling the custom function in custom code, then we will get the total difference between months. This
    case has been tested in our local environment (In this sample, we used the same sample data as the last thread you posted before).Here are steps and screenshots for your reference:
    1. Add a row out side of group. Put the expressions into corresponding cells.
    2. Save and preview. The result looks like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Left Group style report highlight row issue

    I have a Left group style report that I need rows highlighted for sub-total lines in the report. I have coded it with the following in a fiield after the for each of the report
    <?if@row:PERF_NON_PERF='Sub-Total'?><xsl:attribute name="background-color" xdofo:ctx="incontext">yellow</xsl:attribute><?end if?>It highlights MOST of the row but ends up missing the last few columns. The page setup has been set to landscape to maximize the amount of data being displayed.
    I can send along sample data and rtf file if needed, just seems rather... Weird...
    Any help would be welcome..
    Thank you,
    Tony Miller
    Dallas, TX

    Bump.. Anybody have an idea on how to have highlight for entire row of a landscape based report?
    Thank you,
    Tony Miller
    Dallas, TX

  • Matrix Style title effects

    Does anyone know how to get a matrix style title effect and whether it can be done in Livetype or Motion, or is there a good plug-in for it?

    There's no accounting for taste. The first Matrix was great. The other two...just showing off...story severely lacking.
    But I have to agree with Randy...BATTLEFIELD EARTH was truly a pile. As was BATMAN & ROBIN with The Gubernator Arnold.
    But are we going to turn this into a thread of what was the worse movie ever made? Hmmmm....
    Shane

  • Need "slendro style reporter" plugin downlond link

    Hi All,
    If you any one knows the download link for the plugin "Slendro style reporter". Please give it to me.
    I am trying to download the Demo version, but this site http://www.slendro.com/ gives access to only buy the product.
    The direct download link is not working to download the demo version.
    Even I submitted my download request for the demo version, but still i didn't get my download link via mail.
    I don't know why they are not allowing to download their demo version?
    Thanks,
    Green4ever

    Is there any other external link to download a trail version of this plugin.... If anyone knows please leave a mark here.

  • Matrix summary report

    I have following coloumns in a table
    PERSON      (id)
    EDU     (educated,non-educated)
    CITY     citycode
    COUNTRY     countrycode
    I have to generate matrix summary report in SQLplus.
    I have to print countrycode in vertical coloumn(LEFT MOST),
    I have to print citycode in horizontal row(TOP MOST),
    I have to print count(educated),count(non-educated),total(educated+non educated) in each city
    in matrix cells.
    Every city code will have three coloumns below it (three counts).
    I need help in this problem.
    Thanks in advance.
    Regards.

    go into the report wizard and enter your query. when it asks for the row, put country, for column, put city. for the matrix cell choose EDU-->COUNT and whatever other totals you might need. that should be it. of course you could do it all manually if you wanted...
    hope this helps.
    I have following coloumns in a table
    PERSON      (id)
    EDU     (educated,non-educated)
    CITY     citycode
    COUNTRY     countrycode
    I have to generate matrix summary report in SQLplus.
    I have to print countrycode in vertical coloumn(LEFT MOST),
    I have to print citycode in horizontal row(TOP MOST),
    I have to print count(educated),count(non-educated),total(educated+non educated) in each city
    in matrix cells.
    Every city code will have three coloumns below it (three counts).
    I need help in this problem.
    Thanks in advance.
    Regards.

  • Two column telephone directory style report

    Does anyone have an example of a two column telephone directory style report (2.0,2.5,3.0 or 6.0) that they would be willing to share?
    Thank you.
    Bill Harman
    null

    ah ok, you never said you were data merging them.
    in short, data merge doesn't have a feature like microsoft word where there is a "next record" TEXT field which lets the records flow on.
    instead, data merge works by merging the elements on the page, so if you were to merge the file and in the options turn on the multiple record feature, you'd see that many text boxes were generated but they're not threaded together... but the text boxes do have record one, then record two, then record three...
    indesign's data merge is best suited to generating data where one record changes per page. yes, it can do many records per page, but this is ideally suited to people who are imposing their own business cards many up on a page; or people making picture heavy catalogues with set amounts of records per page. indesign's data merge is not built for catalogue-style in-line data merges similar to microsoft word's mail merge to catalogue.
    for your purposes, i'd use XML but that is user unfriendly. there are CSV to XML converters online (assuming your database isn't too huge) and a great resource called "A Designer's Guide to Adobe InDesign and XML: Harness the Power of XML to Automate your Print and Web Workflows" written by James Maivald and it is about the only easy to pick up and run with book out there on the topic. There is another book by Grant Gamble on the topic and no offense to him, but my brain was full by chapter three.
    otherwise, aftermarket plug-ins such as ones made by cacidi systems or emsoftware may help.
    or, does this really need to be a data merge solution? could the text not simply be placed into indesign rather than using the data merge feature? i'd imagine the data is already in the correct order, just needs formatting. if that is the case and the excel file is available, i'd save it out as a tab delimited TXT format and place that into indesign and then format it with nested styles.

  • Mattext - a simple console matrix-style text pager

    Hi,
    I wrote a simple text pager, it shows text in console. But it does it in matrix-style, columns of random symbols trickles down the screen, leaving text after them.
    Some screenshots:
    http://dhurum.github.io/mattext/screenshot1.jpg
    http://dhurum.github.io/mattext/screenshot2.jpg
    http://dhurum.github.io/mattext/screenshot3.jpg
    At this moment it can:
    - read text from [multiple] files or stdin;
    - run in interactive  mode (default)
    - run in non-interactive mode, autoscroll through text;
    - show only one page of text, then quit;
    - run infinitely, reading files over and over again, until 'q' is pressed;
    - colorize output;
    - centrate text vertically and horizontally (each string separately or using longest string, this is useful for ascii art)
    - show Japanese half-width kana along with English letters and digits;
    - block until specified number of lines is read (it responds to commands while it is blocked), is stdin is used;
    - quit (press 'q' or 'Q' or ctrl + D);
    - show next text page(press any other key);
    You can find sources on github, https://github.com/dhurum/mattext/
    Package in AUR: https://aur.archlinux.org/packages/mattext/
    Last edited by Shuk (2014-02-01 18:44:17)

    I have to install this on my work PC and start it running when people come to me with a problem. They'll think I'm doing something incredible complex and amazing, when all I'm actually doing is sshing into their machine and looking at their logs/clearing out their stockpile of ancient kernels.
    "Hmm, yes, I see what the problem is: your data containment receptacles have become saturated with outdated conglomerations of modules and header files. I'm currently removing the excess of binary data, so your system will be fully operational again by the time you get back to your desk. Would you like a skittle?"

  • Survey Builder 2 dimensional matrix-style survey?

    Apex Survey Builder is convenient to make surveys for mobile devices like this:
    1. How was your food?
       O good
       O okay
       O fair
       O bad
    2. How was the service?
       O good
       O okay
       O fair
       O bad
    But, I want to make one that fits on a laptop's display like this:
                          good okay fair bad      _
    how was your food?     O    O    O    O
    how was the service?   O    O    O    O
    how was the price ?    O    O    O    O
    How can I make Survey Builder make horizontal selections like this?  Or is another Apex app more appropriate?
    I'm not asking it to auto-detect whether the participant is on a mobile or laptop; I'm assuming they're on a laptop for this survey.
    Thank you,
    Ben
    650 924 2367, [email protected], [email protected]

    John,
    Thanks. Got it. So Apex Survey Builder is good for mobile devices, where a single-column survey is appropriate. Can Apex detect whether the user is coming from a device with a narrow screen (iPhone but not iPad)? If so it would be great if the Matrix-style question layout would be horizontal on the wide screen (say 400px or 4in) but vertical on the narrow screen.  But, please do not auto-size as Vovici does; this "feature" killed them for us because iOS then placed the keyboard on top of the Next button. Vovici's answer was: Use our app, not the browser!  So you want us to require our customers to install your app?  Not Okay. Anyway, if you can keep the survey looking good and reliable on iOS 6.1 and above on Safari, our group will be happy with it.
    Thank you

  • Matrix query report

    Hi ,experts
                i just need a matrix query report on sales order. It contains quanity ana month

    Hi,
    Welcome you post on the forum.
    You may check this first: Monthly Sales By Geography
    Please do not post more than one thread with similar question. Make sure your question is easily understandable.
    You could also get my book from Packtpub for knowing more about query in B1.
    Thanks,
    Gordon

Maybe you are looking for