Multi-column report that repeats columns

I don't know if this is possible:
COL A | COL B | COL C | COL A | COL B | COL C
1 | 2 | 3 | 4 | 5 | 6
7 | 8 | 9 | 10 | 11 | 12
So it would be a report being pulled from a single table, but the columns would be repeated across the page.
Has anyone ever done something like that?

Okay, firstly, the column titles can be defined any way you want except that they have to be unique names. This is called "aliasing" the columns.
select colA as A1, colB as B1, colC as C1, colA as A2, colB as B2, colC as C2
  from my_table
...What I am struggling with is the fact that you seem to have 12 distinct values (ostensibly coming from 12 distinct columns), so why would you want to show the same column name repeatedly?
If you are trying to combine information from several columns but place them in different rows, you can use a union and sort in this manner:
select A1, B1, C1, A2, B2, C2
from (
select ID, 1 as SORT_BY, colA as A1, colB as B1, colC as C1, colD as A2, colE as B2, colF as C2
  from my_table
union
select ID, 2 as SORT_BY, colG as A1, colH as B1, colJ as C1, colK as A2, colM as B2, colN as C2
  from my_table
order by ID, SORT_BYCan you give us an example of a record to go with the output?

Similar Messages

  • How to hide perticular column when we repeat column ?

    Hi members,
    i have one problem.
    i have years in my elements.
    i am displaying this each distinct year as a column in template.
    for that i write this sysntax .
    <?for-each-group@column:ROW;./FISCAL_YEAR?>
    but when fiscal_year = 2000 then i need to hide this year 2000 column.
    i need to put this condition.
    so how can i implement this ?
    any help is greatly appreciated.
    thanks/

    Do this :)
    <?for-each-group@column:ROW[./FISCAL_YEAR !='2000'];./FISCAL_YEAR?>

  • Report that spans several pages

    I have a 31 column report that will be exported to Excel. I am not sure how to design it since I can really only pick landscape or portrait to the page width is limited.
    Should I use Cross-tabs? I have read about them but am not sure if this is the correct method.
    Any helpful hints would be greatly appreciated .
    Linda

    http://msdn.microsoft.com/en-us/library/aa964988(VS.85).aspx
    Windows XP SP2/2003: Download and install either .Net Framework 3.0 or the XPS Essential Pack from Microsoft.
    Windows Vista: MXDW is installed automatically when the operating system is installed.
    I have XP and was able to set the page size to 20 inches.
    Now, when I call the report from the crystal viewer in my application, it is not that wide. Hmm....any suggestions on making the viewer wider?
    Thanks,
    Linda

  • Supressing tabs in multi tab report

    I have a multi tab report that all the tabs are based off different queries.  I want to suppress individual tabs and not have them export in Excel if the query returns no records.

    Hi,
    We can do this manually by selecting required report tabs (copy) and saving them in excel or to automate  this process should work on SDK.
    Cheers,
    Suresh Aluri.

  • Multi Column Report - printing Across and then Down

    Is there any setup option for a multi column report to go across and then down instead of down & across as a default. The problem I am experiencing is that some where and some how the two columns are not horizontally aligned properly - neither in the
    report view nor in the exported PDF. 
    The added difficulty is the problems created by this misaligned labels while printing on a custom paper that is smaller in size. Though I can setup the custom dimensions and get the desired 4x2 labels on the screen the printing doesn't sit in proper places
    on a preformatted paper.
    Is there any solution(s). Thanks in advance.

    Hi Christal,
    Based on my understanding, you want to make multi columns go across then down in the report.
    For your requirement, on query level, we should add an additional field(DisplayColumn) in the dataset, the field indicates the column in which the corresponding records will display. When designing a report, we add a group in the report, then insert some
    tablixes into the detail row. Within the nested tablix, we specify filter expression based on the value of DisplayColumn field. So that we can decide which data should display on which column. When previewing the report, you can find the report displays like
    newsletter-style. Besides, if we design the report like this, the report can supports all renders. For detail information about how to design the report step by step, please refer to this article:
    Creating Multiple-Column Reports [SSRS] .
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Multi-columned report

    Helllo,
    I"m using Application Express 3.1.2.00.02
    I want to do a 3 columned report.
    I just saw this thread ( from 2005 - that's why I started a new)
    Multi-columned report
    When I applied the template to my report region, I got the following error:
         ERR-1025 Erreur lors du traitement de l'expression PL/SQL. mod(1,3)0
    Can someone tell me why?
    thanks,
    Roseline
    My Query - select ename from emp
    The template I created step by step:
    Create a report row template....
    Workspace>Builder-Application>Shared Components>Themes>Templates...Create
    Template Type: Report
    Creation Method: From Scratch
    Name: One Field - Three Column
    Theme: your choice
    Template Class: Standard
    Template Type: Named Column (row template)
    Edit the report Template you just created and modify the following:
    Row Template 1: <td width="150">#1#</td>
    Row Template Condition: Use Based on PL/SQL Expression
    Row Template 1 Expression: mod(#ROWNUM#,3)0
    Row Template 2: <td width="150">#1#</td></tr><tr>
    Row Template Condition: Use Based on PL/SQL Expression
    Row Template 2 Expression: mod(#ROWNUM#,3)=0
    Before Rows: <tr>
    After Rows: </tr>
    Create a query based report region. For my test I used "select ename from emp". Have the report use the row template.
    This is just a quick and dirty sample. For better look and feel you'll need to do your own formatting...

    Yes, that's it.
    However, that I SEE is only 4 name ( every 3 name of the list) on the same line:
    ENAME WARD  ENAME BLAKE  ENAME KING  ENAME JAMES
    1 - 14   But when I cut and paste from Internet Explorer to a text file,m=, even if I see all the result on the same line, when I past it, it's formated :
    ENAME WARD
    ENAME BLAKE
      ENAME KING
      ENAME JAMES
       1 - 14  
    I have 14 results in my database:
    In My SQL
    select * from emp
    EMPNO     ENAME     JOB     MGR     SAL     DEPTNO
    7369     SMITH     CLERK     7902     800     20
    7499     ALLEN     SALESMAN     7698     1600     30
    7521     WARD     SALESMAN     7698     1250     30
    7566     JONES     MANAGER     7839     2975     20
    7654     MARTIN     SALESMAN     7698     1250     30
    7698     BLAKE     MANAGER     7839     2850     30
    7782     CLARK     MANAGER     7839     2450     10
    7788     SCOTT     ANALYST     7566     3000     20
    7839     KING     PRESIDENT     -      5000     10
    7844     TURNER     SALESMAN     7698     1500     30
    7876     ADAMS     CLERK     7788     1100     20
    7900     JAMES     CLERK     7698     950     30
    7902     FORD     ANALYST     7566     3000     60
    7934     MILLER     CLERK     7782     1300     10
      What I would like, is having this display:
    SMITH     ALLEN     WARD
    JONES     MARTIN     BLAKE
    CLARK     SCOTT     KING
    TURNER     ADAMS     JAMES
    FORD     MILLER     
    How can I modify the template?
    thanks again Roseline

  • Multi-Column Report Issue

    I am using the Crystal Reports edition bundled with Visual Studio 2005. I have a problem with a multi-column report. It is a two column member directory with family members. It lists the member name, contact info, spouse, and children. I want each family group to stay together, and not break cross a column or a page. Each group may have from 3 to a dozen or so lines.
    The family groups will not break across a page (which is good), but they will break across a column (bad). I have tried many combinations of settings to make this work without success.
    So I wonder if anyone has seen and resolved this problem, or if perhaps it works better in the full version of Crystal.

    In some sub-sections, I have checked 'Suppress Blank Section' checked. In others, I have a suppression formula.
    Each section has only a single field.
    The record set that the report uses has a single row for each person. The sorting and grouping is arranged so that the first record in each family group is the 'main' member. The report displays this person's name, and also shows the sections which include address and phone number info. Subsequent records are for family members (spouse and/or children). For these records, I display the name, but suppress the address and phone sections.
    There is also a detail sub-section used as a group header. This group breaks when the first letter of the last name changes, so it an display a single letter heading ("A"). I had tried this as a regular group header too, but it didn't help.
    I have tried combining all the sections into a single one with each field on a separate line (which means the section can have some blank space), and also combined into a text box. No luck.
    I also have the group itself set to "Keep Together' in the group expert. Doesn't help/

  • I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1.

    I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1. I am not sure how to do it. SOmeone please help me out.

    Hi ,
    In your write back XML  try the below  query insert
    INSERT INTO TABLE_XYZ (attribute1)  values (SELECT CASE  WHEN @{C1}=’Yes’ then 1 when @{C1}=’No’ then 0 else null end from dual)
    Regards
    Rajagopal

  • How to get table and column names thats being used in SQL , that's generating all my reports on SSRS.

    Good day,
    I searched through the forum and cant find anything.
    I have around 300 published reports on SSRS and we are busy migrating to a new system.
    They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
    We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
    Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
    Your assistance is greatly appreciated.
    I thank you.
    Andre.

    There's no straightforward method for that I guess. There are couple of things you can use to get these details
    1. query the ReportServer.dbo.Catalog table
    for getting details
    you may use script below for that
    http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
    2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
    But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Repeated column headers in Crosstab report when exported to Excel

    I have created a Cross tab report and wanted to export it in the format "Microsoft Excel(97-2003) (*.xls)", as the formatting of the report is lost in Excel  Data Only format. But when I export the data the column headers are repeated in the Excel. Is there any solution to avoid repeated column headers without losing the formatting of layout?

    I suppose one answer we should have before anything else;
    Does the export work from the CR designer?
    You may also want to see the following:
    How to WYSIWYG SAP Crystal Reports Export to XLS
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Problem with my tabular form report repeating columns

    hello,
    i have a problem like, I have created a tabular form report and I have just copied the page to an another new page in the same application.
    once i copied the page to a new page, and when i tried to run the report the columns are repeating. I ahve seen the report attributes, in the new page they were repeating. I am not able to understand what might be the problem.
    can anyone plz sort it out this problem.
    thanks.

    hi,
    Copy page will never repeat columns anywhere in page ... this s just a suggestion..
    delete the new page and try once again the copy of Tabular form page. if still come problem then we can solve it by some other way !
    Thanks
    Mark Wyatt

  • Tab Form LOV uses one of the other columns in that report.

    Hi All.
    i created a Tabular Form using the Wizard.
    i want to change one of the columns in the report to be an LOV.
    the LOV has a WHERE that uses one of the other columns in that report.
    i tried to do something like that:
    SELECT <display_value>, <return_value>
    FROM <some_table>
    WHERE <my_column> = #ANOTHER_COLUMN_FROM_REPORT#
    it doesnt work...
    anyone know how to do it?
    thanks in advance
    Alberto

    See
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:::::P54_ID:1282
    Also see the discussion at
    http://forums.oracle.com/forums/thread.jspa?messageID=1222153

  • Changing details layout for a multi column report

    I have a report that contains linked 2 subreports. The report has a details layout width of 2.5 inches which will create a 3 column report (Format groups with multiple columns is checked) . This works fine for my first subreport as it is small enough to fit that width. However that isn't enough room for my second sub report. Ii need to change the details layout width from 2.5 inches to 3.5 for a 2 column report then back again when that section is finished. Is this possible?

    i believe you can depends on where you place you subreports
    insert a 2nd group under the first, place 2nd report in the new details section
    in the section expert next to the details section check off underlay.
    this will lay them out next to each other but grow independetly

  • Multi Columns Report Switch replacement

    Hi, I have a multiple columns report with 2 fix columns and 10 selectable ones.
    I'm selecting the columns with a checklistbox an it works
    The Header is easy just have to put "=Parameters!Columns.Label(0-10)" as an expression in each columns heading 
    The hard part that I'm not getting is that I'm currently using a Switch statement in the fields values and I want to put it into Custom Code.
    Why Custom Code is that I was ask to insert 15 other fields value in my selection list. I just don't want to be ask to add more fields x 10 columns.
    Here's part of my Switch, I have 10 of them (0-10) for each columns. 
    =Switch(Parameters!Columns.Value(0)="Phone"
    ,Fields!Phone.Value,
      Parameters!Columns.Value(0)="FirstTime"
    ,SSRS.Utility.TimeFromMilliSeconds(Fields!RingTime.Value),
      Parameters!Columns.Value(0)="ProcessTime"
    ,SSRS.Utility.TimeFromMilliSeconds(Fields!ProcessTime.Value),
      Parameters!Columns.Value(0)="TalkTime"
            ,SSRS.Utility.TimeFromMilliSeconds(Fields!TalkTime.Value),
      Parameters!Columns.Value(0)="Transferred"
    ,Fields!Transferred.Value)
    Notes that some of the fields are FIELDS and others are call in function (assembly's) 
    Here's one of my many variation of custom code
    Public Shared Function FixColumns(Byref Colonne as String) As String
    SELECT CASE Colonne
      CASE "Phone" 
        Return "Fields!Phone.Value"
      CASE "FirstTime" 
        Return "SSRS.Utility.TimeFromMilliSeconds(Fields!RingTime.Value)"
    END SELECT
    End Function
    in the value columns fields
    =CODE.Fixcolumns(Parameters!Columns.Label(0))
    I would greatly appreciate any help 
    Denis B.

    Hi Denis B,
    If I understand correctly, you want to use custom code replace Switch expression in your report. Please refer to the following custom code:
    Public Shared Function FixColumns(Byref Colonne as String, A as String, B as String, …… , F AS String) as String
    Select Case Colonne
    Case "Phone"
    Return A
    Case "FirstTime"
    Return B
    Case Else
    Return F
    End Select
    End Function
    Then, we can use following expression to calculate the values:
    =CODE.Fixcolumns(Parameters!Columns.Label(0), Fields!Phone.Value, SSRS.Utility.TimeFromMilliSeconds(Fields!RingTime.Value), …… , Fields!Transferred.Value)
    As per my understanding, Return Statement in a Function, Get, or Operator must return a value, we cannot return an expression via custom code. So, we use this fields or assembly as a variable in the custom code.
    Hope this helps.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • How to pass custom column value that is created in Answers to its detail report

    Hi,
        I have a custom column (in the below ex: 'Aging') which is calculated based on prompt date and arrived at the below aging buckets. I have a drill report from 'Balance' column. When I click on 100/200/125 corresponding 'Aging' value should be passed to the detail report.
    Aging
    Balance
    0-30 days
    100
    31-60 days
    200
    61-90 days
    125
    Tried putting the 'Aging' formula in detail report and make it 'is prompted' - no luck.
    Is creating the logic in RPD with a request variable (to pass prompt date) only option to  solve this? Any suggestions?
    Thanks in advance and a very happy new year.

    Finally, we used a request variable and handled this in RPD.

Maybe you are looking for

  • The difference between IEEE802.1Q Native VLAN sub-interface and Physical interface?

    Hello I think the following topologies are supported for Cisco Routers And the Physical interface also can be using as Native VLAN interface right?  Topology 1.  R1 Gi0.1 ------ IEEE802.1Q Tunneling  L2SW ------ Gi0 R2 R1 - configuration interface Gi

  • How to block entry through internal order budget in F-02

    Hi, Kindly tell me during Purchase order creation through internal order (Order related PO) whreas budget is maintained against that internal order if the PO amount is exceede than budgeted amount it gives warning / error messge that budget is exceed

  • GL Account not display in F4 possible values.

    Dear, All Experts. I have defined around 120 GL accounts in FS00, But when at the time of any GL entry in F-02 or FB50 doing F4 for possible values I am not able to see list of GL accounts. Any technical settings needs to be done for this ? or any ch

  • Po history display

    I tried to display po history report it dislpay both header changes and item changes .Please tell me how to display po history only according to item change. Rupali

  • Report o/p needed in particular format----please help

    Hi all, I am developing a report o/p of which is a file in excel format.Now in the file for the data which is being exported to the file,I need to make the following changes: Follwing are the columns in the file: g/l acc    amount  vendor   descripti