Display column as row

Hello Gurus,
I have a calculated column which actually calculates the average of all the values in 1 category (refer to the example below). So, it actually shows the same average for all the column in that category, which is correct. My problem is I want to show that column as a row so that the average can be shown just once (very similar to grand total)
EX: This is how it is displayed now
Category product Sales(in millions) Avg Sales(in millions)
Category1 TV 12.3 3.5
Category2 TV 2.3 3.5
Category3 TV 1.5 3.5
Categoryn TV 6.3 3.5
This is how I want to display it as
Category product Sales(in millions)
Category1 TV *12.3*
Category2 TV *2.3*
Category3 TV *1.5*
Categoryn TV *6.3*
Avg Sales (in millions) *3.5*
Please help!!!
For some reason, OTN isn't showing correct alignment...
Avg Sales (in millions) should come under Category and its value 3.5 should come under Sales (in millions)
Please let me know if I should make it clearer.
Edited by: Programmer Analyst on May 1, 2013 8:18 AM

This is what I did with reference to your previous comment (which is helpful), I created a column in criteria for average, with my calculation (i.e.,) avg(sales by category) and in table view, I clicked on SUM icon on category to get the desired result, this is exactly how I wanted except that, it also show the calculated column that I created which I dont want.
I tried moving that to excluded or hiding it..and both give the same result which is, it doesnt show the average after each category (which is ofcourse makes sense).
Now, can you help me with getting rid of that column in the report but still show the average for each category.

Similar Messages

  • ALV display column and row wise

    hi experts,
    Is it possible to display in ALV display as 6 fields in column and some ranges in row display so how to display that using alv grid any sample report please do send me.
    e.g.display format.
                   PO Type          Shipping Date          Invoice Num          PCS  #        Po No.          Cust Name          Terms          Open Balance
    Current                                                                           
    Total Current                                                                           
    1 - 15                                                                           
    Total 1 - 15                                                                           
    16-30                                                                           
    Total 16-30                                                                           
    31 - 60                                                                           
    Total 31 - 60                                                                           
    61 - 90                                                                           
    Total 61 - 90                                                                           
    > 90                                                                           
    Total > 90                                                                           
    TOTAL

    hi Lakshman,
    i want report for customer open invoices that is aging report,
    so depens on due days as per ranges shown in my question like 1--15 days,
    15-16 days these are due days ranges , and i have display these related ranges records horizontally , just understand my display format u will get what i mean to say,
    please send me any proper solution.
    Thanks and Regards,
    Yogesh

  • Display columns as rows from non-unique key table

    Hi OTN/Users, I hope you can assist me
    Given a table:
    create table t (a varchar2(30), b int, c date );
    with this data within:
    insert into t values ( a1, 40, to_date( '01-Dec-2012'));
    insert into t values ( a1, 50, to_date( '01-Dec-2012'));
    insert into t values ( a1, 60, to_date( '01-Dec-2012'));
    insert into t values ( b1, 10, to_date( '01-Dec-2012'));
    insert into t values ( b1, 20, to_date( '01-Dec-2012'));
    insert into t values ( b1, 30, to_date( '01-Dec-2012'));
    insert into t values ( c1, 60, to_date( '01-Dec-2012'));
    insert into t values ( c1, 70, to_date( '01-Dec-2012'));
    insert into t values ( c1, 80, to_date( '01-Dec-2012'));
    - I want to output the columns for each of 'a' as a single row e.g:
    a1 40 50 60 01-Dec-2012
    b1 10 20 30 01-Dec-2012
    I've almost got it right, but the 'a' col repeats 4 times for each row of output:
    a1 40
    a1 50
    a1 60
    a1 01-Dec-2012
    -I want to supress repeat output of the first column 'a' but display the rest in a straight line.
    I've tried various things (Pivot, Rollup etc), but the fact i'm keying on a table with non unique rows has complicated things perhaps.
    Any help would be much appreciated

    Hi,
    Pre-11g this is how you would do it :[11.2] Pri @ Bepripd1 > !cat t.sql
    with t(a,b,c) as (
         select  'a1', 40, to_date( '01-Dec-2012') from dual union all
         select  'a1', 50, to_date( '01-Dec-2012') from dual union all
         select  'a1', 60, to_date( '01-Dec-2012') from dual union all
         select  'b1', 10, to_date( '01-Dec-2012') from dual union all
         select  'b1', 20, to_date( '01-Dec-2012') from dual union all
         select  'b1', 30, to_date( '01-Dec-2012') from dual union all
         select  'c1', 60, to_date( '01-Dec-2012') from dual union all
         select  'c1', 70, to_date( '01-Dec-2012') from dual union all
         select  'c1', 80, to_date( '01-Dec-2012') from dual
    ------ end of sample data ------
    select
         a
         ,max(decode(n,1,b,null)) q1
         ,max(decode(n,2,b,null)) q2
         ,max(decode(n,3,b,null)) q3
         ,c
    from (
         select a, b, c, row_number() over (partition by a order by b) n
         from t
    group by a,c
    order by a,c
    [11.2] Pri @ Bepripd1 > @t
    A          Q1         Q2         Q3 C
    a1         40         50         60 01/12/2012 00:00:00
    b1         10         20         30 01/12/2012 00:00:00
    c1         60         70         80 01/12/2012 00:00:00------
    From 11g onward, you would :[11.2] Pri @ Bepripd1 > !cat t.sql
    with t(a,b,c) as (
         select  'a1', 40, to_date( '01-Dec-2012') from dual union all
         select  'a1', 50, to_date( '01-Dec-2012') from dual union all
         select  'a1', 60, to_date( '01-Dec-2012') from dual union all
         select  'b1', 10, to_date( '01-Dec-2012') from dual union all
         select  'b1', 20, to_date( '01-Dec-2012') from dual union all
         select  'b1', 30, to_date( '01-Dec-2012') from dual union all
         select  'c1', 60, to_date( '01-Dec-2012') from dual union all
         select  'c1', 70, to_date( '01-Dec-2012') from dual union all
         select  'c1', 80, to_date( '01-Dec-2012') from dual
    ------ end of sample data ------
    select a,q1,q2,q3,c
    from (
         select a, b, c, row_number() over (partition by a order by b) n
         from t
    pivot (
         max(b)
         for n in (
              1 as q1
              ,2 as q2
              ,3 as q3
    order by a,c
    [11.2] Pri @ Bepripd1 > @t
    A          Q1         Q2         Q3 C
    a1         40         50         60 01/12/2012 00:00:00
    b1         10         20         30 01/12/2012 00:00:00
    c1         60         70         80 01/12/2012 00:00:00Edited by: Nicosa on Nov 9, 2012 2:42 PM

  • SWAP COLUMNS AND ROW IN AN INTERNAL TABLE to display in ALV

    Hi ,
    I want to swap all the rows in an internal table with the column of the internal table to display it horizontally in ALV grid.
    e.g
    1     2   3  (field names)
    A    P   X
    B    Q   Y
    C    R    Z
    should look like :
    D       A   B     C
    E      P   Q    R
    F       X    Y    Z
    Where D , E, F in first column is already apended in new table.
    Or else is there a way to rotate the ALV grid so that it can display rows as columns & columns as rows.
    regards

    hi,
    i have an internal table which is like
    f1  f2 f3  f4 (column header)
    A  1  2   3
    B  4  5   6
    C  7  8   9
    the values in o/p table should be
    A B C  ( column header)
    1  4 7 
    2  5 8
    3  6 9
    Please help!!

  • Problem in displaying the data of columns into rows in sap script

    hi,
    i am working on a sap script and i have to display the dat which is displayed in column into rows but it is not displaying it properly.
    eg, C
        12.1
        Si
        5.5
    it is displaying the data right now like this but i want to display the  data like this:-
    eg, C      Si
        12.1   5.5
    plzzprovide me guidelines how to solve this problem.

    hi,
    i am using this code to display the data:-
    plzz provide me guidelines where i am getting wrong?
    TOPparCOMPONENT DESP,,,,,, INS. LOT #, , , , , , MIC,,,,,,,,,, MIC VALUEparENDTOPparFINAL
    PROTECT
    IF &I_FINAL-PRUEFLOS& NE '000000000000'
    &I_FINAL-MAKTX(23)&&i_final-prueflos(12Z)&
    &I_FINAL-kurztext(25)&
    &I_FINAL-original_input(8)&
    ELSE
    &I_FINAL-MAKTX(23)&     
    &I_FINAL-kurztext(25)&
    &I_FINAL-original_input(8)&
    ENDIF
    ENDPROTECT
    ITEMHEAD
    POSITION WINDOW
    SIZE WIDTH +0 . 4 CH HEIGHT +1 LN
    BOX FRAME 10 TW
    BOX HEIGHT '1.35' LN INTENSITY 20
    IF &PAGE& = '1'
    BOX XPOS '0' CH YPOS '0' CM WIDTH '0' CM HEIGHT '43' LN FRAME '10' TW
    For horizontal line at top
    BOX XPOS '0' CH YPOS '0' CM WIDTH '75' CH HEIGHT '0' LN FRAME '10' TW
    COLUMN LINES...
    END OF COLUMN LINES...
    BOX XPOS '0' CH YPOS '43' LN WIDTH '75' CH HEIGHT '0' LN FRAME '10'TW
    BOX XPOS '75' CH YPOS '0' LN WIDTH '0' CH HEIGHT '43' LN FRAME '10'TW
    ELSE
    COLUMN LINES...
    END OF COLUMN LINES...
    BOX XPOS '0' CH YPOS '0' CM WIDTH '0' CM HEIGHT '47' LN FRAME '10' TW
    BOX XPOS '0' CH YPOS '0' CM WIDTH '75' CH HEIGHT '0' LN FRAME '10' TW
    BOX XPOS '0' CH YPOS '0' CM WIDTH '45' CM HEIGHT '0' LN FRAME '10' TW
    BOX XPOS '20' CH YPOS '0' CM WIDTH '0' CM HEIGHT '47' LN FRAME '10' TW
    BOX XPOS '0' CH YPOS '47' LN WIDTH '75' CH HEIGHT '0' LN FRAME '10'TW
    BOX XPOS '75' CH YPOS '0' LN WIDTH '0' CH HEIGHT '47' LN FRAME '10'TW
    ENDIF
    LINEFEED
    NEWPAGE
    NEW-PAGE
    provide me guidelines to solve this problem.
    Edited by: ricx .s on Mar 13, 2009 5:58 AM

  • Can anybody help....SQL to display row as column and column as rows

    Can anybody help in writing a SQL to display row as column and column as rows?
    Thanks

    check this link:
    Re: Creating Views - from rows to a new column?

  • How to display number of rows as columns in a select statement? This is on

    How to display number of rows as columns in a select statement? This is on 10g R2.
    Thanks,
    R

    For the current (ie. row 1 of 100)
    row_number over (order by -pick_a_column_set) as rnfor the total number of columns returned in your query
    count(*) over() as total_count

  • DISPLAY COLUMN NO'S AND ROW NO'S IN SMARTFORMS

    HI ALL,
    I M HAVING REQUIRMENT TO DISPLAY COLUMN NUMBERS AND ROW NO'S IN SMARTFORM
    I'M NEW TO THIS PLS SUGGEST ME.
    THANK YOU ALL IN ADVANCE.
    Moderator message: please search for information and try yourself before asking, do not post in all upper case.
    Edited by: Thomas Zloch on Nov 19, 2011 10:31 PM

    That's good news! You've found another way for the same result. It depends on what is needed. SumIf is more for adding the the totals of a numeric column based on the values of another column. For example, What is the total of column B responses that have "yes"?
    Regards,

  • Display only one row for distinct columns and with multiple rows their valu

    Hi,
    I have a table having some similar rows for some columns and multiple different rows for some other columns
    i.e
    o_mobile_no o_doc_date o_status d_mobile_no d_doc_date d_status
    9825000111 01-jan-06 'a' 980515464 01-feb-06 c
    9825000111 01-jan-06 'a' 991543154 02-feb-06 d
    9825000111 01-jan-06 'a' 154845545 10-mar-06 a
    What i want is to display only one row for above distinct row along with multiple non distinct colums
    ie
    o_mobile_no o_doc_date o_status d_mobile_no d_doc_date d_status
    9825000111 01-jan-06 'a' 980515464 01-feb-06 c
    991543154 02-feb-06 d
    154845545 10-mar-06 a
    regards,
    Kumar

    Re: SQL Help

  • How to display the rows in to columns and columns into rows?

    DES:- I know by using pivot and unpivot you can convert rows into columns and columns into rows but i don't know how to write the syntax?

    Hi,
    Besides the places Martin mentioned above, there are many examples in the forum FAQ:
    https://community.oracle.com/message/9362005#9362005
    For an example of both PIVOT and UNPIVOT in the same query, see
    http://forums.oracle.com/forums/thread.jspa?threadID=920854&tstart=0

  • Interactive Report - Icon View - Dynamic Columns per Rows ?

    Hi all,
    We use the icon view functionnality in Interactive Report.
    Is there a way to display the 'columns per row' attribute as an application item and set it dynamical via PL/SQL ?
    Any suggestions?
    Thanks in advance for advices,
    Regards,
    Grégory

    Hi,
    Apex 4.0 interactive reports and images (Scott's thread)
    Have some useful information and pointers to the solution you are looking for.
    I hope this help.
    Thank you,
    Ranish

  • Displaying subset of rows in a row

    Hi,
    I have a report that I am working on and need some help and Report looks like below.
    Can you please tell me, how to display Column D (Approver) through Column H (Gate 2) as sub rows within the row?
    Thanks,
    Koti K

    Hi Koti K,
    According to your description, you want to hide the Approver column and make it can be toggled by Gate2 column. Right?
    As another moderator suggested, your goal can be achieved in Reporting Services. In Reporting Services, we can set visibility for column and set the whole column can be toggled by another textbox. We have tested this case in our local environment. Here are
    steps and screenshots for your reference:
    1. Create a table in report based on screenshot above.
    2. Right click on Approver column, select Column Visibility. Choose Hide and Display can be toggled by this report item. In the dropdown list, select the textbox which is header of Gate2.
    3. Save and preview. It looks like below:
    Reference:
    Tables (Report Builder and SSRS)
    Understanding Groups (Report Builder and SSRS)
    Column Visibility Dialog Box (Report Builder)
    If you have any feedback on our support, please click
    here.
    Best Regards,
    Simon Hou

  • Populate columns with row values in Sql Server Reporting Services

    I have got a dataset with 2 columns named Row and Title. There are 8 rows in this dataset and I want to display those 8 titles within columns in a table. So I create a table with 8 columns and set each column's expression to
    =LookUp(Fields!Row.Value,1,Fields!Title.Value,"Titles")
    =LookUp(Fields!Row.Value,2,Fields!Title.Value,"Titles")
    =LookUp(Fields!Row.Value,3,Fields!Title.Value,"Titles")
    However only the first column displays a title. The other 7 display nothing. Is my expression wrong?

    Hi,
    Is the row datatype non-numeric?  Maybe the lookup is failing for that reason.  You coulr try adding a conversion to the field:
    =LookUp(cint(Fields!Row.Value),1,Fields!Title.Value,"Titles")
    Could you, perhaps, instead use a tablix table and put the Title column on the row group?  That would pivot the data the way that you want it.
    Mark

  • One column one row w/ separator to be hierarchical columns

    Dear Gurus,
    I want to present the "+one column/one row data+"
    F:\JDeveloper\Tut\TIJ4-code\generics\watercolors\Watercolors.javaas this follow:
    id               parent_id
    Watercolors.java     watercolors
    watercolors          generics
    generics          TIJ4-code
    TIJ4-code          Tut
    Tut               JDeveloper
    JDeveloper          F:Id better using an sql rather than pl/sql.
    regards,

    I think you'd struggle to do this in SQL alone, unless you use some fancy MODEL clause or Michaels can come up with some nifty XML solution. I would probably go with some PL/SQL as a pipelined function...
    SQL> create table treedata as
      2  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Adding Window Event Listener. Working with MDI.swf' as cp from dual union all
      3  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating Finger Icon.swf' from dual union all
      4  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating Key Icon.swf' from dual union all
      5  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class Containing Information on Fingers.swf' from dual union all
      6  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class Handling Shift Press.swf' from dual union all
      7  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KBLayout\Creating the Class KBLayout (Part 1).swf' from dual union all
      8  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KBLayout\Creating the Class KBLayout (Part 2).swf' from dual union all
      9  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KeyCode.swf' from dual union all
    10  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KeyIcon\Creating the Class KeyIcon (Part 1).swf' from dual union all
    11  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KeyIcon\Creating the Class KeyIcon (Part 2).swf' from dual union all
    12  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class for Key Systemization .swf' from dual union all
    13  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class for Saving Information on Keys.swf' from dual union all
    14  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating the Main Window (the Class MainWindow).swf' from dual union all
    15  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Class Constructor.swf' from dual union all
    16  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Creating Methods Responsible for Icon Fill.swf' from dual union all
    17  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Creating Methods Responsible for Icon Highlight\Creating Methods Responsible for Icon Highlight (Part 1).swf' from dual union all
    18  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Creating Methods Responsible for Icon Highlight\Creating Methods Responsible for Icon Highlight (Part 2).swf' from dual union all
    19  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Defining Some Static Variables\Defining Some Static Variables (Part 1).swf' from dual union all
    20  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Defining Some Static Variables\Defining Some Static Variables (Part 2).swf' from dual union all
    21  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Highlighting Icons.swf' from dual union all
    22  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Overriding the Method run.swf' from dual union all
    23  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Overriding the Method setVisible.swf' from dual union all
    24  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Registering Keyboard in the Main Window of Application .swf' from dual union all
    25  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\The Methods new_icon and new_fingericon.swf' from dual union all
    26  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Adding Keyboard Listener to the Application.swf' from dual union all
    27  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Creating Methods to Test the Efficiency of the User''s work.swf' from dual union all
    28  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Creating the class ExerciseGUI.swf' from dual union all
    29  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Creating the class Lessons and Working with It in the Class ExerciseGUI.swf' from dual union all
    30  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Handling Pressed Keys.swf' from dual union all
    31  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Improving Graphical Interface of the Class ExerciseGUI.swf' from dual union all
    32  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Setting Position and the Sizes of the Main Window.swf' from dual union all
    33  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Statistics.swf' from dual union all
    34  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Working with Graphical Interface of the Class ExerciseGUI.swf' from dual union all
    35  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Working with Keyboard Events.swf' from dual union all
    36  select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Working with Main Window Menu. Positioning the Main Window.swf' from dual
    37  /
    Table created.
    SQL>
    SQL>
    SQL>
    SQL> CREATE OR REPLACE TYPE pth IS TABLE OF VARCHAR2(32767);
      2  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION tree RETURN pth PIPELINED IS
      2    l_maxlen      NUMBER;
      3    l_parent_path VARCHAR2(255);
      4    type t_output is table of varchar2(32767) index by pls_integer;
      5    l_output      t_output;
      6    l_cnt         NUMBER := 0;
      7    PROCEDURE show_children(p_path IN VARCHAR2, p_lvl IN NUMBER, p_tree IN VARCHAR2) IS
      8      l_ch_path_cnt number;
      9      CURSOR cur_children_elements IS -- non path children
    10        select replace(cp,p_path) as ch
    11        from   treedata
    12        where  instr(replace(cp,p_path),'\') = 0
    13        order by 1;
    14      CURSOR cur_children_paths IS -- path children
    15        select pth
    16              ,row_number() over (order by pth) as rn
    17              ,count(*) over () as cnt
    18        from (
    19              select distinct substr(replace(cp,p_path),1,instr(replace(cp,p_path),'\')) as pth
    20              from   treedata
    21              where  instr(cp,p_path) > 0
    22              and    instr(replace(cp,p_path),'\') > 0
    23              order by 1
    24             );
    25    BEGIN
    26      select count(*)
    27      into   l_ch_path_cnt
    28      from   treedata
    29      where  instr(cp,p_path) > 0
    30      and    instr(replace(cp,p_path),'\') > 0;
    31      for c in cur_children_elements
    32      loop
    33        l_cnt := l_cnt + 1;
    34        if l_ch_path_cnt = 0 then
    35          l_output(l_cnt) := replace(replace(substr(p_tree,1,length(p_tree)-2)||'  ','+',' '),'-',' ')||'  '||c.ch;
    36        else
    37          l_output(l_cnt) := replace(replace(p_tree,'+',' '),'-',' ')||'  '||c.ch;
    38        end if;
    39      end loop;
    40      if l_ch_path_cnt = 0 then
    41        l_cnt := l_cnt + 1;
    42        l_output(l_cnt) := substr(p_tree,1,length(p_tree)-2);
    43      else
    44        l_cnt := l_cnt + 1;
    45        l_output(l_cnt) := p_tree;
    46      end if;
    47      for p in cur_children_paths
    48      loop
    49        if p.rn != p.cnt then
    50          l_cnt := l_cnt + 1;
    51          l_output(l_cnt) := substr(p_tree,1,length(p_tree)-2)||'+-'||substr(p.pth,1,length(p.pth)-1);
    52          show_children(p_path||p.pth, p_lvl+1, substr(p_tree,1,length(p_tree)-2)||'| | ');
    53        else
    54          l_cnt := l_cnt + 1;
    55          l_output(l_cnt) := substr(p_tree,1,length(p_tree)-2)||'\-'||substr(p.pth,1,length(p.pth)-1);
    56          show_children(p_path||p.pth, p_lvl+1, substr(p_tree,1,length(p_tree)-2)||'    ');
    57        end if;
    58      end loop;
    59    END;
    60  BEGIN
    61    -- first display the common parent path
    62    select max(length(txt)) as max_ln
    63    into   l_maxlen
    64    from (
    65          select substr(cp,1,rn) as txt
    66          from   treedata, (select rownum rn from dual connect by rownum <= 255)
    67          group by substr(cp,1,rn)
    68          having count(*) = (select count(*) from treedata)
    69         );
    70    select substr(cp,1,l_maxlen)
    71    into   l_parent_path
    72    from   treedata
    73    where  rownum = 1;
    74    PIPE ROW(l_parent_path);
    75    -- now recurse the data
    76    show_children(l_parent_path, 1, '| ');
    77    for i IN 1..l_cnt
    78    loop
    79      PIPE ROW(l_output(i));
    80    end loop;
    81    RETURN;
    82  END tree;
    83  /
    Function created.
    SQL>
    SQL> select * from table(tree);
    COLUMN_VALUE
    F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\
    |   Adding Window Event Listener. Working with MDI.swf
    |   Creating the Main Window (the Class MainWindow).swf
    |   Working with Main Window Menu. Positioning the Main Window.swf
    |
    +-Creating Supplementary Classes
    | |   Creating Finger Icon.swf
    | |   Creating Key Icon.swf
    | |   Creating the Class Containing Information on Fingers.swf
    | |   Creating the Class Handling Shift Press.swf
    | |   Creating the Class KeyCode.swf
    | |   Creating the Class for Key Systemization .swf
    | |   Creating the Class for Saving Information on Keys.swf
    | |
    | +-Creating the Class KBLayout
    | |     Creating the Class KBLayout (Part 1).swf
    | |     Creating the Class KBLayout (Part 2).swf
    | |
    | \-Creating the Class KeyIcon
    |       Creating the Class KeyIcon (Part 1).swf
    |       Creating the Class KeyIcon (Part 2).swf
    |
    +-KeyboardGUI
    | |   Class Constructor.swf
    | |   Creating Methods Responsible for Icon Fill.swf
    | |   Highlighting Icons.swf
    | |   Overriding the Method run.swf
    | |   Overriding the Method setVisible.swf
    | |   Registering Keyboard in the Main Window of Application .swf
    | |   The Methods new_icon and new_fingericon.swf
    | |
    | +-Creating Methods Responsible for Icon Highlight
    | |     Creating Methods Responsible for Icon Highlight (Part 1).swf
    | |     Creating Methods Responsible for Icon Highlight (Part 2).swf
    | |
    | \-Defining Some Static Variables
    |       Defining Some Static Variables (Part 1).swf
    |       Defining Some Static Variables (Part 2).swf
    |
    \-The Class ExerciseGUI
          Adding Keyboard Listener to the Application.swf
          Creating Methods to Test the Efficiency of the User's work.swf
          Creating the class ExerciseGUI.swf
          Creating the class Lessons and Working with It in the Class ExerciseGUI.swf
          Handling Pressed Keys.swf
          Improving Graphical Interface of the Class ExerciseGUI.swf
          Setting Position and the Sizes of the Main Window.swf
          Statistics.swf
          Working with Graphical Interface of the Class ExerciseGUI.swf
          Working with Keyboard Events.swf
    51 rows selected.
    SQL>

  • The number of display columns in the report reached the limit" Interactive Report

    I get the error message of "The number of display columns in the report reached the limit" when trying to display less than 100 (100 is limit) columns when an aggregate has been created.   This does not happen when an aggregate has not been added to the IR report.  It seems to happen because I have a control break on as well.  When I turn off the control break it works but is not the result that we want.  Interesting enough, if I filter the results down to 500 rows it works just fine.  Does oracle treat aggregates as columns!?  This is a really odd issue that I really need to clear up.
    Oracle 11g
    apex 4.1.0.33
    Thanks in advance,
    Shawn.

    Hi,
    i have set up a small test case on apex.oracle.com and I receive the same error if I use download format.
    I have a table
    test_blob (id number, name varchar2(10), blobcont blob)
    If I create IR like
      select
        id,
        name,
        blobcont
      from test_bloband then I define download format I hit the error.
    If you want this to work you have to change your query to
      select
        id,
        name,
        dbms_lob.getlength(blobcont) blobcont
      from test_blobAnd then again define download format for blob on blobcont column.
    Regards,
    Aljaz

Maybe you are looking for

  • Restriction of user status in service order for billing due list

    Dear CRM Experts, I have configured status profile for service order as OPEN,INPROCESS and Completed and have assigned this to the service order transaction type. Now once i save a service order without errors ,the system is automatically generating

  • "Your Photo Library was not found. Do you want to find your photo library?"

    ... Actually, until recently, Mr. iPhoto, you were finding your own library just fine... This happens now every time I launch iPhoto. I have to tell it where the library is. I've never moved it ("~/Pictures/iPhoto Library/"), and this started happeni

  • CS3 None of the programs will launch

    I get the following error: Adobe Photoshop CS3 has encountered a problem and needs to close. We are sorry for the inconvenience. This happens with all of the programs in the suite if they even try to launch - sometimes nothing happens. All programs p

  • Possible corrupt file...Final Cut crashing

    Running final cut studio 2. I have an HDV documentary with roughly 460 hours of footage spread over an Xserve RAID and six glyph drives. The project keeps failing after trouble shooting and splitting the project over six smaller "chapter" projects. C

  • Range selection in MDX query

    Hello to everyone, Is there anyway to develop a MDX query, using a sap variable, and use the range interval at this query. For example, at BEX I can define a variable to accept year/month from xxx to yyy. How can I do this in MDX? I'm only able to ex