Grouping of Columns

Hi All,
I have a requirement of grouping of columns in report. For example a report which has columns A,B,C,D,E,F. Once user see this report he wants to save A,B,c as group and save. He can make any no of groups as such and save see later...
Thanks!

hi,
if the user wants to save for his reference, thereby not altering the report displayed to others, can be saved in "My Dashboard" .
this would have an advantage of saving the personal changes done by users, and also not editing the master report visible to all the users.
cheers,
vineeth

Similar Messages

  • Select from table in group of columns and generate a sequence number

    I have to select data from a table in group of columns and generate a sequence for every group resetting the sequence to start from 1 onwards.
    For example:
    Data:
    Col1 Col2 Col3 Col4
    A NA KA 2009-08-13
    B NA KA 2009-08-13
    C NA KA 2009-08-13
    A NA KA 2009-08-13
    B NA KA 2009-08-13
    A NA KA 2009-08-13
    Expected output from Select Statement:
    Col1 Col2 Col3 Col4 Seq_No
    A NA KA 2009-08-13 1
    A NA KA 2009-08-13 2
    A NA KA 2009-08-13 3
    B NA KA 2009-08-13 1
    B NA KA 2009-08-13 2
    C NA KA 2009-08-13 1
    How can this be possible with a SELECT statement? Is it possible to assign seq numbers for a group of columns and reset it when it changes? In the above example, all columns form the key to generate the seq number
    I know it can be done using Stored procedures and that is how I am doing it now by introducing a temporary table.
    Can anyone help me in this regard? Please let me know if the question is vague to understand!
    Thanks,
    Nachi

    with t as(select 'A' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'B' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'C' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'A' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'B' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'A' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual)
    select t.*,row_number() over (partition by col1,col2,col3,col4 order by col1,col2,col3,col4) from tYou can replace partition by col1,col2,col3,col4 with only columns that you need for grouping condition
    and also order by you can just do on the column you need.

  • Grouping of columns in classical report

    Hi,
    I have a classical report and it has a about 30 to 40 columns . I want to do grouping of columns.
    E.g  First six columns i want to LABLE as a net rate columns. other 5 column label as  Git columns . How i can do this ?
             Net Rate                                       GIT
    col1  col2 col3 col4 col5 col6         col7 col8 col9 col10 col11
    Thanks & Regards
    Vedant

    Try to change report template.
    Or write own plugin-report.

  • Not a group by column error message - cursor sharing

    Hi,
    Our database is Oracle 11g.
    We faced problems about some sql's. These sql's were running in Oracle 10g.
    Our sql statements are like the below query:
    SELECT COLUMN_A,COLUMN_B,COLUMN_C,
    TO_CHAR(OPERATION_DATE,'DD/MM/YYYYY'), CUSTOMER_NAME || '-' || CUSTOMER_SURNAME,
    DECODE (IS_MANAGER, 0, ' Manager', 'Employee')
    SUM(TOTAL), SUM(AMOUNT), AVG(SALARY),
    FROM TABLES
    GROUP BY COLUMN_A,COLUMN_B,COLUMN_C,
    TO_CHAR(OPERATION_DATE,'DD/MM/YYYYY'), CUSTOMER_NAME || '-' || CUSTOMER_SURNAME,
    DECODE (IS_MANAGER, 0, ' Manager', 'Employee')
    ORDER BY COLUMN_A,COLUMN_B,COLUMN_C,
    TO_CHAR(OPERATION_DATE,'DD/MM/YYYYY'), CUSTOMER_NAME || '-' || CUSTOMER_SURNAME,
    DECODE (IS_MANAGER, 0, ' Manager', 'Employee')
    When we remove order by or when we disabled cursor sharing, problem is fixed.
    I think that sql looks correct. Why we are taking not a group by column error message?
    How can we fix this problem without changing querys( we have other reports which gives same error message) or disabling cursor sharing?
    Thank you, Bye

    Dear,
    SELECT   column_a
            ,column_b
            ,column_c
            ,TO_CHAR (operation_date, 'DD/MM/YYYYY')
            ,customer_name || '-' || customer_surname
            ,DECODE (is_manager, 0, ' Manager', 'Employee')
            ,SUM (total)
            ,SUM (amount)
            ,AVG (salary)
        FROM TABLES
    GROUP BY column_a,
             column_b,
             column_c,
             TO_CHAR (operation_date, 'DD/MM/YYYYY'),
             customer_name || '-' || customer_surname,
             DECODE (is_manager, 0, ' Manager', 'Employee')
    ORDER BY column_a,
             column_b,
             column_c,
             TO_CHAR (operation_date, 'DD/MM/YYYYY'),
             customer_name || '-' || customer_surname,
             DECODE (is_manager, 0, ' Manager', 'Employee')Here you are grouping by
    DECODE (is_manager, 0, ' Manager', 'Employee')What does represent the is_manager? it is a function ? it might be that you hit one of the group by restriction such as select are not allowed into the group by clause
    Best regards
    Mohamed Houri

  • Ordering the groups and columns in the Presentaion Services

    Hi Gurus,
    We are grouping the columns in the presetation Layer of RPD. Consider the senario like this GroupA having columns and sub groups subgroup1, subgroup2. When we navigate in answers it is displaying Group A under that subgroup1,subgroup2 and Group A columns. Can't we arrange it as Group A columns and then subgroups in the answers. Is there any config file to set the like this?
    Please help me..It's urgent.
    Thanks in Advance....

    Hi user590267,
    I'm experiencing the same and I don't see a way to change this standard behavior of OBIEE. The only workaround I have is to create a separate subfolder for the Group A columns..
    Regards,
    Stijn

  • How to group the column headers using WDA ALV ?

    Hello All.
    How can I group the column headers as shown in the picture(chart), using  WDA  ALV.
    Thanks for any help !
    A
    B
    A1
    A2
    A3
    A4
    B1
    B2
    B3
    B4
    B11
    B12
    B13
    B21
    B22
    B23
    B31
    B32
    B33
    B41
    B42
    B43
    消息编辑者为:Cloud Li

    Hi ,
    This functionality was not exposed/supported in WDP ALV,however the same can be achieved in normal table(table UI element)
    The reason this isn't exposed directly in the ALV is because it is used internally when you do a grouped sort.  The ALV automatically buids group headers to explain the grouped sort/sum.
    Depending upon your requirements if you must have the group header and aren't using much else in the ALV, you might be better off using the plain old table. Below is a link to how to do group headers in the table UI element.
    Table
    Hope this helps you.
    Thanks
    KH

  • Grouping Table Columns

    Hi All,
    In my webdynpro application we need to "Group Table Column".  I am using NWDS 2.0.9. The "Insert Group COlumn" feature is not there in NWDS 2.0.9. If so how ca i group my table columns. Can anyone provide me a solution for this.
    Regards,
    Divya

    Hi Divya,
    I have done this in my application too.
    I have used two tables,
    The things you need to do is,
    1. Create a scroll container
    2. Create 1st table,
    3. assign the columns coming under its header.
    4. create the 2nd table,
    5. assign the rest of the columns under that header.
    6. Table properties to be set
    7. Now make footer visible false for both the table.
    8. visible no of rows = -1
    9. assigning same context or model node to both the tables will make it as one table itself, and selecting row in one table will also select same row in other table.
    10.Dont keep wrapping as true in any table cell editor, because if there occurs any wrapping in one table, the alignment of rows will be disturbed for both.
    11.And using scroll container instead of footer will not create the scrolling event of footer in the application.
    This will solve your problem.
    Mohak.

  • GROUP BY column name

    Hi
    Is there anyway to use group by colum name?
    Select field1,field2
    from table
    group by 1,2
    Is it possible?

    user544364 wrote:
    Hi
    Is there anyway to use group by colum name?
    Select field1,field2
    from table
    group by 1,2
    Is it possible?Do you mean group by column number?
    No. You must specify the column names to group by. Only ORDER BY allows for column numbers to be referenced.

  • How can I dynamically change group field column?

    Hello!
    I need to group data and create group totals for that table. Is
    it possible to dynamically change group field column for
    specific table, depending on data retreived from parameter form?
    Thanks,
    Mario.

    quote:
    Originally posted by:
    ljonny18
    Hi,
    I am using a grid within a component in my Flex application.
    I have an XML dataProvider, and I want to change the row
    colour of my Grid depending on a value coming form my dataProvider
    – but I cant seem to get this to work :(
    can anyone help / advise me on how I can dynamically change the
    colour of my grid row depending on a value coming from my XML
    DataProvider????
    Thanks,
    Jon.
    Hi,
    a few hours ago I stumbled across this cookbook entry - it
    didn't solve MY problem, but maybe it provides a way to solve your
    problem?
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=61&product Id=2&loc=en_US
    From the article:
    quote:
    Changing the background color of a DataGrid cell is not as
    simple as changing some style because the default renderer for a
    DataGrid cell does not have a backgroundColor. Therefore, to do
    this simple task, you have to create a custom itemRenderer where
    you draw your own background in the updateDisplayList function.
    HTH
    Uwe

  • How to group few columns in ALV in web dynpro under a common column header?

    Hi All,
    Please let me know the way to group few columns in ALV display under a common column header in a web dynpro application .
    For e.g.
    year
                                 |  Q1      |    Q2      |......
    Thanks in advance.
    Regards
    Archana

    Hi Archana,
    Creating a group header is possible in case of normal Table UI element. I don't think any such functionality exists in case of ALV. Just go through Thomas' comments in this thread: header group in wd alv.
    I hope it helps.
    Regards
    Arjun

  • Grouped rows\columns open up on each refresh

    Hi,
    Every time I refresh a smartview query the grouped rows & columns open up, Is there a view where I can avoid this ?
    Thanks

    Thanks a lot GlennS_3

  • Report Painter - Format group for columns in more than one section

    How do have different decimals for columns in different sections.
    For. e.g I have three sections
    one for quantity (I do not need decimals)
    two for dollars (I do not need decimals)
    three for formula dollar upon quantity (I need to have two decimals)
    I made format group 0 (with no decimals) for first two sections and format group 1 (with two decimals) for the last section.
    4.6c does not consider format group 1 and makes every section look alike with format group 0 i.e, no decimals.
    How to overcome this?

    Anders,
    I replied earlier but after reading you post several times I realized that I probably misunderstood what you want. This is what I now understand. You have several resources, each of who may work on various parts of design tasks, assembly tasks, and test
    tasks. For example, let's say your resources are Joe, Bill & Tom. Joe is assigned to a design and test task, Bill is assigned to an assembly and test test task and Tom is assigned to a design task, an assembly task and a test task (Tom is very versatile).
    You would like to see a report showing just the assembly tasks and the amount of work each of the three resources is assigned on those tasks.
    Assuming the above is a correct interpretation, you will need to employ three processes, some VBA, grouping and filtering.
    1. First, designate a custom text field for group identification (e.g. use Task Text1 to enter "design", "assembly", or "test" for each task)
    2. In order to use grouping and filtering effectively,  you will need to translate the Task Text1 information to the Assignment Text1 field. To do that, go to the MVP website at: http://project.mvps.org/faqs.htm, and run the macro in FAQ 37.
    3. Now go to the Task Usage view and set up a group with Text1 as the first group by element and Name as the second group by element. Check the box to group assignments and not tasks. Then select "assignment" for field type of the second element
    (i.e. Name).
    4. Apply the group
    5. To show only the work hours for each resource in a specific group, autofilter on the desired group. Note, if you do not run the macro to populate the Assignment Text1 field with the Task Text1 field, the filter will yield nothing.
    Hope this helps
    John

  • How to insert Material group field column in MCV1(QMIS: Vendor analysis - insp. lot) report ?

    Hi Experts.
    Our requirement is to get the material group column in the output report of MCV1.
    I have searched the forum but couldn't find any thread regarding the same.
    So please advice whether it is possible or not? and if possible then what is the procedure for it ?
    Thanks,
    Vishal

    You create Formula Columns in Data Model and display fields in Layout Model. Does "a new forum column" have a typo?
    Searching Reports Builder Help on Formula Columns would find a lot info. Fro example,
    To create or edit a formula column:
    1     In the Data Model view, single-click in the tool palette, then:
    n     To create a column within a group, click in the group at the position you want the column placed in the hierarchy.
    n     To create a report-level column, click in an open area of the canvas region.
    2     Double-click the formula column object to display the Property Palette.
    3     Under the Placeholder/Formula node, double click the PL/SQL Formula property value field.
    4     In the PL/SQL Editor, define the PL/SQL for the formula (e.g., SAL * 0.07).

  • How to generate a report group by column value

    I have a table with five columns:
    c1, c2, c3, c4, count.
    I want to generate a report like this
    Total
    c1, c2
    c3, c4
    such as the values inside the table are:
    a1 b1 cc dd 2
    a1 b1 ee ff 3
    a1 b1 gg hh 4
    a1 b2 jj kk 3
    a1 b2 ll mm 4
    a1 b2 nn oo 2
    a3 b3 pp qq 3
    a3 b3 rr ss 4
    the report will be like:
    a1-b1
      cc-dd 2
      ee-ff 3
      gg-hh 4
    Total for a1-b1 9
    a1-b2
      jj-kk 3
      ll-mm 4
      nn-oo 2
    Total for a1-b2 9
    a3-b3
      pp-qq 3
      rr-ss 4
    Total for a3-b3 7
    What is the best way to achieve this?
    Thanks.
    Jen

    Hi Jen,
    Personnaly I would use a PL/SQL region and use MOD_PLSQL (htp.p) to create such a special layout, but then again you should know how to do it.
    Another way would be to create a select statement in which you select the lines you want:
    select c1||'-'||c2 key1, 0 key2, 'category '||c1||'-'||c2 , null count from table
    union
    select c1||'-'||c2, rownum, rpad(' ',5)||c3||'-'||c4, count from table
    union
    select c1||'-'||c2, count(*)+1, 'Total for cat. '||c1||'-'||c2 , sum(count)
    from table group by c1||'-'||c2, 'Total for cat. '||c1||'-'||c2
    union
    select c1||'-'||c2, count(*)+2, ' ',null from table group by c1||'-'||c2 /* empty line */
    order by 1, 2
    You can base a normal report on this.
    good luck,
    Dik

  • SQL help, how to group by column A and then get top frequency of column B?

    Assuming the following table, operation represents each kind of transaction operation
    table operation employee other column c
    '<' id1
    '<' id1
    '<' id2
    '*' id3
    '/' id1
    question, for each operation, which employee do the most? which employee do the 2nd most?
    I thought I need to group by operation first, and then get the frequency of employee, and get the top 1 or top 2 frequency highest.
    But I am stuct, and do not know how to write the sql.

    998408 wrote:
    Assuming the following table, operation represents each kind of transaction operation
    table operation employee other column c
    '<' id1
    '<' id1
    '<' id2
    '*' id3
    '/' id1
    question, for each operation, which employee do the most? which employee do the 2nd most?
    I thought I need to group by operation first, and then get the frequency of employee, and get the top 1 or top 2 frequency highest.
    But I am stuct, and do not know how to write the sql.Welcome to OTN. Ops! posted in wrong forum. Just post in {forum:id=75}. Before posting there close this thread marking as answered.
    If someone's response is helpful or correct, please mark it accordingly.*

Maybe you are looking for

  • Data no longer available when SALV_WD_TABLE GET_MODEL called

    Hello I created a view that retrieves data from one table to select a row in the table and proceed to the second view but I get an error like this: Data no longer available when SALV_WD_TABLE GET_MODEL called I did check the mapping between my view a

  • IPad Mini touchscreen partly not responsive

    The left part of my iPad Mini is not reacting on touch. I need to always turn the iPad to use the part of the interface that reside on that part. And yes: I performed reset, even restored the iPad to factory settings. On setting it up as a new device

  • Intresting problem with JDOM and xmlns in root element.

    Hi all, I am trying to parse a xml file using a jdom java code.This code works fine if I remove xmlns attribute in the root element.Please tell me how to fix this issue. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Xml <process name="CreateKBEn

  • Passing / parsing XML String IN / OUT from PL / SQL package

    Hello, People ! I am wondering where can I find exact info (with code sample) about following : We use Oracle 8.1.6 and 8.1.7. I need to pass an XML String (could be from VARCHAR2 to CLOB) from VB 6.0 to PL/SQL package. Then I need to use built in PL

  • Need to run start routine only once

    I understand that for every data package from ODS to Cube, the start routine is run.  But I need to run it only once.  Is there anyway to achieve this?  As the programming logic doesn't really do anything to the data package, I don't need it to be in