Selectively Format Groups with Multiple Columns

I have a bit of an obscure task I've been trying to hammer out to no avail.  I've searched quite a bit but can't seem to find anyone else who has attempted this.  I have two group by statements, one is a category and the other is a rank.  What I'm trying to do is organize the report so that there are category rows and below each category row is a set of columns for each rank with their associated values as such:
category1
rank1     rank2     rank3     rank4
value1   value1    value1   value1
value2   value2    value2   value2
category2
rank1     rank2     rank3
value1   value1    value1
value2   value2    value2
I've tried using details>Section Expert>>Layout>Format Groups with multiple column.  Unfortunately, this applies to both groups putting the categories into columns instead of rows, making a mess.  Does anyone know of a way to selectively put groups into columns and ensure alignment?  In the above example the user would be able to compare rank values from multiple categories since they all line up.  Any help with this would be very much appreciated.

Hi,
Have you tried using a crosstab? Give this a shot:
1) Group the report on Category
2) Create a new group header section. Group Header b
3) Place a crosstab in this section
4) The columns would be the Rank field, I'm not sure about what you would like to show in the rows
5) The summarized field would be the Value field ofcourse
Let me know how this goes.
-Abhilash

Similar Messages

  • GROUP BY with multiple columns.

    I have little query about GROUP BY clause.
    Sometimes we will give multiple column names in GROUP BY .If it behaves in the same way as ORDER BY (multiple columns) i would love to have an example where I can use GROUP BY multiple columns. Anyways howsoever it behaves it will be really appreciated if anyone can explain a scenario where GROUP BY with multiple columns can be used.
    I know about the usage of aggregate functions with GROUP BY but using only one column.
    Thanks..!!!

    Hi,
    Group by is used for grouping of same records. check this bellow scenario
    SELECT registrationid, dateofbirth, age FROM prawin62 WHERE registrationid = 22;
    22     1/23/1975     54
    22     5/18/2011     66
    22     5/18/2011     66
    22     5/18/2011     66
    22     5/18/2011     66
    22     5/18/2011     66SELECT registrationid, sum(age) FROM prawin62 WHERE registrationid = 22 GROUP BY registrationid;
    22     384SELECT registrationid, dateofbirth, sum(age) FROM prawin62 WHERE registrationid = 22 GROUP BY registrationid, dateofbirth ;
    22     5/18/2011     330
    22     1/23/1975     54Thanks,
    Praveen

  • Format with multiple column

    Post Author: vman
    CA Forum: General
    I am working a report that has had the details section format with multiple columns selected.  I want to change the report and remove the check box, but it is grayed out.  How can I get the report details section back to default without the detail size constraints?

    Post Author: rcoleman
    CA Forum: General
    Bearing in mind that I'm a relative newbie to the report writing/Crystal world...the only thing I can think of is that maybe the report was written using an older version of Crystal and this option wasn't available. Another possibility, if it's a sub-report, you might try making a copy of the sub-report saving it with the same name, deleting the old sub-report, replacing it with the copy you made. I know that has worked for me when I've had problems with the re-import when opening is greyed out.

  • Creating Select List with multiple columns

    I want to create a select list with multiple columns. I followed the demo application model described in the by Denes Kubicek (Currently my reference for APEX !!)
    The code is as follows:
    CREATE OR REPLACE FUNCTION getcrops(p_cropid IN NUMBER)
    RETURN VARCHAR2
    IS
    v_cropid VARCHAR2 (400);
    v_fcode VARCHAR2 (400);
    v_product VARCHAR2 (400);
    v_var VARCHAR2 (400);
    v_fname VARCHAR2 (400);
    v_acres VARCHAR2 (400);
    v_style_start VARCHAR2 (400);
    v_style_end VARCHAR2 (400);
    v_return VARCHAR2 (400);
    BEGIN
    FOR c IN (select "CROP"."CROPID" as "CROP ID",
         "CROP"."FIELDCODE" as "FIELD CODE",
         "CARROTPRODUCTLIST"."CARROTPRODUCTNAME" as "PRODUCT",
         "VARIETYLIST"."VARIETYNAME" as "VARIETY",
         "FIELD"."FIELDNAME" as "FIELD NAME",
         "CROP"."SIZEINACRES" as "ACRES"
    from     "FIELD" "FIELD",
         "CARROTPRODUCTLIST" "CARROTPRODUCTLIST",
         "VARIETYLIST" "VARIETYLIST",
         "CROP" "CROP"
    where "CROP"."CARROTPRODUCTTYPE"="CARROTPRODUCTLIST"."CARROTPRODUCTID"
    and     "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
    and     "CROP"."FIELDID"="FIELD"."FIELDID")
    LOOP
    v_cropid := TO_CHAR (c.'CROP ID', 'FML999G999G999G999G990');
    v_fcode := c.'FIELD CODE';
    v_product := c.'PRODUCT';
    v_var := c.'VARIETY';
    v_fname :=c.'FIELD NAME';
    v_acres :=c.'ACRES';
    FOR i IN 1 .. 12 - LENGTH (c."CROP ID")
    LOOP
    v_cropid := v_cropid || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'FIELD CODE')
    LOOP
    v_fcode := v_fcode || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'PRODUCT')
    LOOP
    v_product := v_product || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'VARIETY')
    LOOP
    v_var := v_var || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'FIELD NAME')
    LOOP
    v_fname := v_fname || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'ACRES')
    LOOP
    v_acres := v_acres || ' ';
    END LOOP;
    v_return := v_cropid || v_fcode || v_product || v_var || v_fname || v_acres;
    END LOOP;
    RETURN v_return;
    END;
    I created this anonymous Pl/SQL function at a application level ..Then I followed up to create a select list with a function inside. However I could not create select list with the command suggested in the demo which is
    select getcrops(cropid) d, cropid r from crop;
    APEX (2.1) returns a error message. What am I missing ? Should the function be called from somewhere else after creating a regular select list..? Where the functions (Pl/SQL) should be ideally stored for application level access..? and for across application level access ? How can I check the function works good. Help is appreciated.

    Still really one column.
    If they need to be independent then you've got to have three selection lists.
    %

  • Selection list with multiple columns

    How can i create a selection list with multiple columns?

    Still really one column.
    If they need to be independent then you've got to have three selection lists.
    %

  • Select list with multiple columns

    I want to create a select list with multiple column option. What are the options. Any developments in apex 3.0.1 ? Thanks in advance. I tried the tutorials by Kubicek.
    I am kind of stuck to see the function entry inside LOV definition returns a error.

    Still really one column.
    If they need to be independent then you've got to have three selection lists.
    %

  • Repeat "Detail a" section when using "Format with Multiple Columns" layout

    I am using Crystal Reports for .NET (VS 2008) and I would like to get the "Detail a" section to repeat at top of a second column containing additional data in "Detail b" section. Please see below for example, specifically "Detail a (2)". Any tips or help much appreciated.
    Detail a (1)_____Detail a (2)
    Detail b (1-1)___Detail b (2-3)
    Detail b (1-2)___Detail b (2-4)
    --Detail b (1-3)___Detail a (3)
    Detail a (2)______--Detail b (3-1)
    --Detail b (2-1)
    --Detail b (2-2)
    Thx, Scott

    the format with multiple columns i dont believe will show you the value 2x, but allows you to display the values across instead of down.
    i think you may want to use a sub report

  • ADF BC : "Attributes selected in query with no column type found! ..."

    hi
    Using JDeveloper 10.1.3.3.0, I have this "Selected in Query" attribute, "Never" updatable, in my Entity Object.
    The Entity Object is based on the SCOTT.EMP table and the attribute, called "BonusInfo", is defined using the expression " '[bonus info ' || (SAL * 2) || ']' ".
    see http://verveja.footsteps.be/~verveja/files/oracle/NoColumnTypeFoundApp-v0.01.zip
    While creating this Entity Object, I got a "Business Components" dialog that says:
    "Column type is not specified for this attribute. Specifying column-type and precision results in better query performance at runtime. Do you wish to set column type to VARCHAR2(255)?"
    I clicked "Yes".
    I also created two View Objects based on this Entity Object.
    In the "Create View Object" wizard "Step 4 of 7: Attribute Settings" I got a "Business Components" diaglog that says:
    "Attributes selected in query with no column type found! Specifying column-type and precision results in better query performance at runtime. Do you wish to set default column type for these attributes?"
    I clicked "Yes".
    Testing the query in "Step 5 of 7: SQL Statement" showed "Query is valid.".
    question:
    Why do I keep getting the message ...
    "Attributes selected in query with no column type found! Specifying column-type and precision results in better query performance at runtime. Do you wish to set default column type for these attributes?"
    ... in the View Object Editor if I click on different attributes?
    (I don't get such a message the first time I click on an attribute after opening the View Object Editor, but after that it keeps popping up each time I click on a different attribute, no matter what I answer "Yes", "No" or "Cancel".)
    many thanks
    Jan Vervecken

    Jan,
    BC needs the column type and precision so that we can allocate the correct JDBC buffer size; otherwise we would just allocate 2k per string.
    Blaise

  • Attributes selected in query with no column type found! (solved)

    Dear JHeadstart Team,
    In the view object Editor I have two entity based attributes attrib1 and attrib2
    both with type Number. Both have aliases with type number(9,0)
    If attrib1 is null I want to have the value of attrib2.
    In the expression box I put: nvl(attrib1,attrib2)
    When I press the ok button I get the next error message.
    "Attributes selected in query with no column type found!
    Specifying column-type and precision results in better query performance at runtime.
    Do you wish to set default column type for these attributes? "
    When I say ok I get the next message:
    "An error occurred. Unable to apply all the wizard changes.
    Column type cannot be changed for Entity based attribute.
    Exception: oracle.jbo.dt.objects.JboExeption."
    The details button serves no extra information.
    Since both the attributes have the same type I thought the nvl commando should work.
    But what does the "no column type found" sentence mean?
    regards,
    Marcel.
    Message was edited by:
    user571204

    Thanks Jan,
    You've put me on the right track.
    I found out that this is only possible in the entity object class.
    So I have to check my limited java skills.

  • List with multiple column

    hello all ,
    how to create a list with multiple columns ? can anyone share some examples or code snippets

    What I would usually do is create a movieclip/sprite that contains a row with every column in it (each column being a textfield).  Then pile up the rows one atop the other (using Actionscript) as they are populated with data.

  • For some reason, my compression option is grayed out under "File" menu, and when I select a folder with multiple files, or multiple documents, and try to right-click or tap the mousepad with two fingers, I do not get a "compress" option available. Help.

    I don't know why, but when I select a folder with multiple docs contained within it, or multiple files, the Compress option is grayed out under the File menu, nor is it available when I right-click. Please help.

    Yes it is, but I have the same problem of the option does not appear with "right click" (I'm actually control-clicking), and COMPRESS is grayed out under the file menu. I'd like to fix it.
    Hmm. After finding the Archive Utility,* I tried archiving the folder. It came out as .cpgz, ugh. Found there was a preference to make .zip the default. It worked!
    And now…the menus are not grayed out. ?!?! OK.'
    Hope this helps someone.
    *You cannot find this via search, apparently it is a hidden file, you have to click from the root drive through to /System/Library/CoreServices (Thanks for the file path Alberto!)

  • Treeview with multiple columns

    I googled alot about creating a treeview with multiple columns similar to a listview in details mode with the added benefit of nodes and roots. I got some answers but I was wondering if visual 2008 itself has such an option, and if not what is my best
    choice?
    Debra has a question

    I just wanted to know if in the visual studio 2008 itself there is an option to have a multi column treeview or a listview with nodes...
    Debra has a question
    Hi Debra,
    >> a multi column treeview
    As far as I know, the standard Microsoft .NET TreeView does not support columns, and if you want a tree control that supports columns, you could turn to the link from Tony:
    #TreeView with Columns
    http://www.codeproject.com/Articles/23746/TreeView-with-Columns
    >>a listview with nodes
    I made a research about “a listview with nodes” and found no results. I checked the ListView Class and did not find information about nodes.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • PIVOT with multiple columns to add and multiple levels of grouping

    Hi friends,
    I got a table with the columns in the form of:
    CRITERIA_A,
    CRITERIA_B,
    CRITERIA_C,
    AMOUNT_A,
    AMOUNT_B,
    AMOUNT_C,
    AMOUNT_D
    Any way to design a pivot to present the table reflecting:
    Sums of Amount_A, Amount_B, Amount_C, Amount_D
    For Rows reflecting grouping levels on:
    Criteria_B, Criteria_C
    and Columns breakup for:
    Criteria_A?
    An example like:
    Criteria_A1
    Criteria_A2
    Criteria_A3
    Criteria_A4
    Row Labels
    Sum of Amount_A
    Sum of Amount_B
    Sum of Amount_C
    Sum of Amount_D
    Sum of Amount_A
    Sum of Amount_B
    Sum of Amount_C
    Sum of Amount_D
    Sum of Amount_A
    Sum of Amount_B
    Sum of Amount_C
    Sum of Amount_D
    Sum of Amount_A
    Criteria_B3
    94
    107
    36
    127
    84
    132
    41
    176
    24
    16
    67
    29
    38
    Criteria_C1
    24
    25
    5
    49
    14
    66
    5
    49
    24
    16
    67
    29
    Criteria_C2
    70
    82
    31
    78
    38
    Criteria_C3
    38
    41
    31
    78
    Criteria_C4
    32
    25
    5
    49
    Criteria_B1
    56
    142
    78
    26
    32
    25
    67
    8
    24
    Criteria_C2
    24
    66
    26
    8
    32
    25
    67
    8
    Criteria_C3
    32
    76
    52
    18
    Criteria_C4
    24
    Criteria_B2
    162
    309
    264
    81
    132
    230
    155
    124
    14
    25
    52
    8
    38
    Criteria_C1
    38
    76
    26
    8
    62
    98
    98
    66
    14
    25
    52
    8
    38
    Criteria_C2
    86
    157
    186
    44
    70
    132
    57
    58
    Criteria_C3
    38
    76
    52
    29
    Criteria_B4
    100
    148
    130
    116
    56
    142
    93
    57
    46
    Criteria_C1
    24
    66
    67
    49
    32
    Criteria_C2
    32
    76
    26
    8
    14
    Criteria_C3
    76
    82
    78
    67
    Criteria_C4
    24
    66
    52
    49
    Grand Total
    312
    558
    378
    234
    348
    535
    393
    424
    94
    183
    212
    94
    146
    Thanx in advance, Best Regards, Faraz A Qureshi

    Sounds like this to me if in T-SQL query
    (best guess based on what you posted)
    SELECT
    CRITERIA_B,
    CRITERIA_C,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_A1_AMOUNT_A,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_A1_AMOUNT_B,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_A1_AMOUNT_C,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_A2_AMOUNT_A,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_A2_AMOUNT_B,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_A2_AMOUNT_C,
    SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_AN_AMOUNT_A,
    SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_AN_AMOUNT_B,
    SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_AN_AMOUNT_C,
    FROM Table
    GROUP BY CRITERIA_B,
    CRITERIA_C
    to make it dynamic see
    http://beyondrelational.com/modules/2/blogs/70/posts/10791/dynamic-crosstab-with-multiple-pivot-columns.aspx
    However it would be much easier to build this in SSRS reports using matrix if you can use it.
    In that case just bring data as is
    then add a matrix to report
    Add column grouping on Criteria A and Row grouping on Criteria B and then Criteria C .
    In data portion add three columns with expressions as
    =SUM(Fields!Amount_A.Value)
    =SUM(Fields!Amount_B.Value)
    =SUM(Fields!Amount_C.Value)
    then you will get exact format  what you're asking for
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Format with Multiple columns

    Hi Crystal gurus.
    I'm having the report which consist of more that 500 rows , so therefore I decided to implement "Format with multiple rows" feature, which is available in Section Expert area. Everything is just fine, I'm getting multiple columns, but how to suppress the header which is not needed for the last page, because the records are only in the first column.
    I can easily copy/paste the header as such, but I do not know how to suppress it. Tried to search here, but found nothing.
    Many thanks in advance Mcmerphy

    If it truely is the last page of the report, you could try a conditional suppression where pagenumber = totalpagecount. But this would always suppress the header selected for suppression, and if you should get another column on the last page, it will still suppress.
    Debi

  • Convert multiple rows to one row with multiple columns

    Hi
    i have a table Match_1 with 2 columns 'Source' and 'target'.One source can have multiple targets and that number could be anything
    CREATE TABLE Match_1
    Source CHAR(1),
    Target CHAR(1)
    INSERT INTO Match_1 VALUES ('A', 'B');
    INSERT INTO Match_1 VALUES ('A', 'C');
    INSERT INTO Match_1 VALUES ('A', 'D');
    INSERT INTO Match_1 VALUES ('A', 'E');
    INSERT INTO Match_1 VALUES ('V', 'X');
    INSERT INTO Match_1 VALUES ('V', 'Y');
    INSERT INTO Match_1 VALUES ('V', 'X');
    INSERT INTO Match_1 VALUES ('V', 'W');
    COMMIT;
    i need to get my output in the below format
    Source     target 1     target 2     target 3     target 4          target n
    A     B          C          D               
    V     X          Y          Z          W          
    Could you please provide me the required SQL.
    REgards
    -Learnsequel

    What is your database version (4 digit) ? also my example won't be generate columns for your information:
    it will produce a result like that :
    select source, listagg(target,',') within group (order by target)
      from  match_1
      group by source;
    A     B,C,D,E
    V     W,X,X,Yps: in previos post, I wrote "with" word wrong in sql.

Maybe you are looking for

  • SA Color Finesse v2 and CS5 or CS5.5

    Does any one know if SA Color Finesse vers2xx .... will run properly in CS5 or CS5.5?

  • Problem gui_download  -Data looks messy without proper column header

    Dear SDNers, Scenario: Using FM GUI_download to download excel file to Presentation server. Excel file downloads perfecly fine on presentation server with proper column headers when the OS is not XP/Vista. Issue: when i run this program on my system

  • ABAP program error for user EXIT

    Hi, I wrote code in  EXIT_SAPLRSAP_001 When check and active it there were no syntax errors but when go rsa3 and check it gives an error at the follwing line   it_mcekpo[] = c_t_data[]. Runtime error: The internal talbles are neither compitable nor c

  • Best practices for hierarchy within project?

    I am looking for some advice, here is my situation: I have am using Labview and the DSC module to create an HMI for a customer.  I am connecting through OPC to a PLC, and I have access to over 1000 tags.  I don't use them all at the same time, but th

  • PS CS6-Why are file sizes so huge?

    My psd's are almost double the size as compared to similar files created from CS5. There are no vector objects, no huge amount of layers as compared to my older files and not a lot of visual information. It seems that a text layer consisting of 6 let