How create SQL for Cross tab in template

Hi,
I have been starting to build data templates using SQL to select the data I require. I noticed in the word template-building tool there is an option to create cross tab table. I have tried looking at the standard documentation. I have been unable to work out how I should structure the SQL in my data template to allow me to create a cross tab table in the template?
Thanks,
Mark

Post Author: SunilKanta
CA Forum: General
Yes, I had done exactly the same but when tried to display the subreport in new page, some portion of the cross tab is displayed. The page width is not increased proportionately.
i have passed that sub report in footer of main report.
But when i overlap this sub report with other cross tabs already present in the main report i can see full width view of sub report.

Similar Messages

  • How to insert page number on each page for Cross-Tab report?

    Hi,
    I have created a Cross-Tab in the section Report Header via Crystal Reports 11.
    Now, I want to created more Cross-Tabs, and each page has one Cross-Tab.
    So, I insert Report Headers to contain Cross-Tabs. But, the report only shows the page number at the last page.
    How to insert page number on each page?
    Thanks in advance.

    Hi,
    Well, the easiest solution is to place the Cross-tab in the Report Footer, Of course, ONLY if the report contains this single object which I'm assuming is not the case.
    If you do not wish to place the cros-tab in the Report Footer, here's what you need to do:
    1) Create a formula;
    whilereadingrecords;
    2) Create a group on this formula. If the report already contains groups, move this formula to the top of the grouping list. It won't affect the other groups or records in any way.
    3) Move the Cross-tab from the Report Header to the Group Header1 and suppress Group Footer1
    4) Add the Page Number field to the Page Footer
    Let me know how this goes!
    -Abhilash

  • Unable to convert the RDF layout to RTF Layout for cross tab report

    Hello All,
    I have a RDF, which has cross tab layout. For this I need to create RTF template.
    I have the XML file. I'm not able to get the cross tab report in RTF as RDF.
    Below is the part of XML data.
    Pleaes let me know how do i achive this.
    <?xml version="1.0" ?>
    - <!-- Generated by Oracle Reports version 6.0.8.27.0
    -->
    - <XXAQS_EXPENSE_COST_DIV>
    - <LIST_G_CS_1>
    - <G_CS_1>
    - <LIST_G_2>
    - <G_2>
    <DEPT>11100</DEPT>
    - <LIST_G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>501010000</ACCOUNT>
    <DESCRIPTION>Salaries</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>100126</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>501020000</ACCOUNT>
    <DESCRIPTION>Overtime</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>14811</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>501030000</ACCOUNT>
    <DESCRIPTION>Bonus</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>28968</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502000000</ACCOUNT>
    <DESCRIPTION>Allowance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502010000</ACCOUNT>
    <DESCRIPTION>Food Allowance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502020000</ACCOUNT>
    <DESCRIPTION>Housing Allowance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>15612</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502030000</ACCOUNT>
    <DESCRIPTION>School Fees Allowance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>1249</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502040000</ACCOUNT>
    <DESCRIPTION>Other Allowance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>1873</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>503000000</ACCOUNT>
    <DESCRIPTION>Sales Incentive and Commissions</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>503010000</ACCOUNT>
    <DESCRIPTION>Sales Incentive</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>503020000</ACCOUNT>
    <DESCRIPTION>Sales Commissions</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504000000</ACCOUNT>
    <DESCRIPTION>Employee Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504010000</ACCOUNT>
    <DESCRIPTION>Vacation Pay</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>8636</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504020000</ACCOUNT>
    <DESCRIPTION>Air Tickets</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>5265</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504030000</ACCOUNT>
    <DESCRIPTION>End of Service</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>26367</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504040000</ACCOUNT>
    <DESCRIPTION>Medical Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>15441</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504050000</ACCOUNT>
    <DESCRIPTION>Contract Labour</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>2500</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504060000</ACCOUNT>
    <DESCRIPTION>Recruitment Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504070000</ACCOUNT>
    <DESCRIPTION>Visas Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>1625</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504080000</ACCOUNT>
    <DESCRIPTION>Drivers Liscencs</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090000</ACCOUNT>
    <DESCRIPTION>Traveling Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>2601</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090100</ACCOUNT>
    <DESCRIPTION>Traveling Food</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090200</ACCOUNT>
    <DESCRIPTION>Traveling Car Rent</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090300</ACCOUNT>
    <DESCRIPTION>Traveling Hotel</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090400</ACCOUNT>
    <DESCRIPTION>Traveling Taxi</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090500</ACCOUNT>
    <DESCRIPTION>Traveling Telephones</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504100000</ACCOUNT>
    <DESCRIPTION>Gratuity Pay</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505000000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505010000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses - Iqama Expense</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505020000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses - Car Registration Renewal</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505030000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses - MVPI</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505040000</ACCOUNT>
    <DESCRIPTION>Company License</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505045000</ACCOUNT>
    <DESCRIPTION>Permits and License Drivers License</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505050000</ACCOUNT>
    <DESCRIPTION>Permits and licenses-Others</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>506000000</ACCOUNT>
    <DESCRIPTION>Director's Remunerations</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>507000000</ACCOUNT>
    <DESCRIPTION>Audit Fees</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>10866</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>508000000</ACCOUNT>
    <DESCRIPTION>Legal Fees</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>509000000</ACCOUNT>
    <DESCRIPTION>Professional Fees</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510000000</ACCOUNT>
    <DESCRIPTION>Communication Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510010000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Telephone</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>748</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510020000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Telefax</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>51</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510030000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Postage</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510040000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Mobile</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>175</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510050000</ACCOUNT>
    <DESCRIPTION>Communication expense – Satellite Connectivity</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>511000000</ACCOUNT>
    <DESCRIPTION>Stationery</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>511010000</ACCOUNT>
    <DESCRIPTION>Printing and Stationary</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>511011000</ACCOUNT>
    <DESCRIPTION>IT Expense</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>512000000</ACCOUNT>
    <DESCRIPTION>Supplies</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>512010000</ACCOUNT>
    <DESCRIPTION>Operating Supplies</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>3385.796</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>512020000</ACCOUNT>
    <DESCRIPTION>Lubricants Supplies</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513000000</ACCOUNT>
    <DESCRIPTION>Rental Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513010000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Housing</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513020000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Warehouses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513030000</ACCOUNT>
    <DESCRIPTION>Business Promotion - Rental Signage</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513040000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Vending Machines</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513050000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Municipality</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513051000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Signage</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513060000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Other</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514000000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514010000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Repairs and Maintenance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>883.381</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514020000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Fuel and Oil</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>50</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514030000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Rep and Maint - Outside Job Orders</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>150</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514040000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Others</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515000000</ACCOUNT>
    <DESCRIPTION>Insurance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515010000</ACCOUNT>
    <DESCRIPTION>Insurance - Fire Insurance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515020000</ACCOUNT>
    <DESCRIPTION>Insurance - Workmen Compensation</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515030000</ACCOUNT>
    <DESCRIPTION>Insurance - Fidility Insurance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>900.61</AMOUNT>
    </G_AMOUNT>
    ---------------------------------------------------------------------------------

    try this, there must be simpler one i guess...
    1. take a form field, and make its type as number. Paste the below one <?xdoxslt:set_variable($_XDOCTX,'v1',2)?>
    2. now take a table with as below,
    A l B |
    C l D1 l D2 l E1 l E2 l
    observe that i. A, C are in one column
    ii. cell B is on top of D1, D2
    iii. we have no cell on top of E1 and E2 cells
    iv. 'l' represents the wall of the cell :)
    A: <?horizontal-break-table:1?> SCHEMECODE
    B: <?for-each-group@column:G_SCHEMECODE;ASSET_TYPE?> <?ASSET_TYPE?> <?end for-each?>
    C: <?for-each-group:G_SCHEMECODE;SCHEMECODE?> <?xdoxslt:set_variable($_XDOCTX,'v1',2)?> <?SCHEMECODE?>
    D1: <?for-each-group@cell:current-group();ASSET_TYPE?> <?MARGIN?> <?xdoxslt:set_variable($_XDOCTX,'v1',xdoxslt:get_variable($_XDOCTX,'v1')-1)?>
    D2: <?AMOUNT_SECURED?> <?end for-each?> <?end for-each?>
    E1: <?for-each@column:xdoxslt:foreach_number($_XDOCTX,1,xdoxslt:get_variable($_XDOCTX,'v1'),1)?>
    E2: <?END FOR-EACH?>
    3. If you are confused gimme your email id, i will pass the template. But you should add credits to me.. :)

  • How to produce dynamic cross-tab query result on this data ?

    Hi gurus,
    I have sales (simplified) sales data as below :
    create table sales_summ (area_code varchar2(3), sales_amt number, product varchar2(10) ) ;
    insert into sales_summ values ('A01', 100, 'P01');
    insert into sales_summ values ('A02', 200, 'P01');
    insert into sales_summ values ('B01', 300, 'P02');
    insert into sales_summ values ('A01', 400, 'P02');
    insert into sales_summ values ('A02', 500, 'P01');
    insert into sales_summ values ('A03', 600, 'P01');
    insert into sales_summ values ('A01', 700, 'P02');
    insert into sales_summ values ('A02', 800, 'P02');
    insert into sales_summ values ('A03', 900, 'P01');
    And I want to produce a cross-tab sales summary like below :
    Product A01 A02 A03 B01
    P01     100          700     1500          0
    P02     1100          800     0          300
    How is the query ?
    Thank you for your help,
    xtanto

    Search this forum for "pivot". Plenty of examples.
    Regards,
    Rob.

  • Formula for Cross-Tab Column

    Hi
    I am struggling with a particular issue related to cross-tab and I tried a lot, but couldn't managed to get the solution.
    Please help with this issue , it would be of great help to me.
    Thanks
    Aniket
    [CrossTab problem|http://www.forumtopics.com/busobj/viewtopic.php?t=120765]

    Thanks for your prompt reply.
    As I am new to this forum,so I don't know how to attach file, also I tried searching but couldn't get.
    At the end of the previous post, Link is given. There is a file attached "Plz_help.zip". Please look into that file and also if you know how to attach any file, please let me know.
    If still it's not clear, please let me know I will try my best to clear this issue.
    [http://www.forumtopics.com/busobj/viewtopic.php?t=120765]
    Thanks a lot.
    Regards
    Aniket

  • Formula for cross tab row

    Post Author: bvandyck
    CA Forum: Formula
    The results of a row in a cross tab report need to be split out by percentages and added to the results of other rows.  Each row is an individual, except one row is a combination of individuals.  Certain individuals share in the results of the combination row.   The combination row will be zero after being added to the individuals' rows.  What is the formula for achieving this?

    Hi,
    U may create a new formula for that.
    There is an option in cross tab expert for new formula.
    U may create a formula of your choice and then insert in report.
    Regards,
    Misra P.

  • PeopleSoft XMLP : Conditional Formatting for Cross tab report

    I have developed a XMLP cross tab report using ps query. Report runs good for (.htm,pdf,rtf) extension . But I am unable to format the data based on condition.
    Code which get displayed at the data field : <?sum ($G1[(./DESCR=current()/DESCR)]/JOB_REQ_NBR)?>
    any help ot suggestion ?
    Report layout(table) in .rtf format
    H GDESCR*E* Total (Header Row)
    GXLATLONGNAME G999*E* 999*E*
    CTotal G999*E* 999

    <?xml version="1.0" ?>
    - <query numrows="10" queryname="HF_EREC_BU_JOBREQCOUNT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
    - <row rownumber="1">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="2">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="3">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="4">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="5">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="6">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="7">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="8">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="9">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="10">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    </query>

  • Help with formatting for Cross Tab Report Crystal 2008

    This is probably a simple question.  I have a cross tab report that displays sales by month for a period of 6 months.  These sales columns are formatted to be numbers with no decimals.  In addition to these columns, I have inserted columns that display the percentage up/down in sales over the previous month.  If I try to format the percentage columns, it changes every column to then display "##,##.##%" when I need to keep the sales columns at "##,###" with no decimal or percentage sign.
    1.  Is there a way to change the formatting of some of the columns but not all in a cross tab report?
    2.  If not, can I add a function that would change these in the calculation formula of the calculated member? 
    I tried to add "%" but it wants it to return a number.
    Here is the current code:
    //The calculation formula is used in place of the summaries in Calculated Members.
    // This calculation formula must return a/an Number value.
    If GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex) = 0 then 0 else
    ((GridValueAt (CurrentRowIndex,CurrentColumnIndex-1,CurrentSummaryIndex) -
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) /
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) * 100
    Any help is appreciated. 
    Thank you,
    Tobi

    Carl,
    Thank you for your help.  I did try your method but still couldn't get it to ignore the fact that it wanted a number.  I changed my approach a litte and managed to solve the problem.  Here is the method that I chose which managed to solve the problem.  If this is a poor way to solve it, please let me know as I am always open for new ways.
    Format Field > Number Tab > Customize > Currency  Symbol Tab
    Checked Enable Currency Symbol Fixed, changed  currency symbol to %.  This is the same thing that I did before which changes it for all columns. 
    Beside Enable Currency checkbox, I added this formula:
    // This conditional formatting formula must return one of the following Currency Symbol Constants:
    // crNoCurrencySymbol
    // crFixedCurrencySymbol
    // crFloatingCurrencySymbol
    If GridRowColumnValue("InvoiceLine.TxnDate") = Date(0,0,0) then
        crFixedCurrencySymbol  
    else
        crNoCurrencySymbol
    My added columns have a null date field so they take the currency format.  My other columns do not so they do not take the formatting.
    Thanks again for the help.
    Tobi
    Edited by: Tobi@TABeverage on Dec 2, 2009 3:58 PM

  • How to design customize Cross tab in Crystal 9

    hi guys,
                i'm having a big problem in designing this format in cross tab, coz it causes a lot of space that i wouldnt need in displaying the report in my application here's i want to show on my report,
    this is just a sample data, but this is supposed the designed, or the output in crystal cross tab
                                        SM                           gl orieta                        buyer            and soon.....   
                             sales     TX    PX      sales      TX     PX          sales   TX    PX
    Mar-1 Mon        1000      1        1       200        2         3            400     4      5
    Mar-2 Tue           200      10      11     300        4         8             220    5      8
    Mar-31 Sun
    Running Total     1200                           500                               620
    Discount              200                            300                               400
    Net sales            2000                           3000                             5000
    Quota                 100000                        1200000                      250000
    TX                        11                                   6                                9   
    PX                         12                                   11                            13
    the upper is the name of the stores which supposed to be dynamic, each store have 3 column which are the sales,TX and PX, on the left side is date which is my parameter is filtering sales by date, under the last date of the month is the running total followed by discount, net sales and soon.. Now my problem is how i'm going to design it in cross tab format in crystal report 9..any suggestion or other way to do it...

    Please re-post if this is still an issue

  • SSRS Header Image extension for Cross Tab type Reports to full page width

    Hi All,
    I'm trying  to adjust  a Image  on Header ,the problem I'm facing is the image doesnt extend with the page full width  when there is cross tab type reports.
    Many thanks

    Solved
    There  is a property for background repeat setting  when set to Repaet X has worked for me

  • Both Average and Totals for Cross Tab

    Hi, can I have both a total and an average for a cross-tab report?
    12/27/2009                    100                       200                       300
    12/28/2009                    200                       300                       400
          Total                        300                        500                       700
        Average                    150                        250                       350
    thanks in advance

    Look at the Total Wizard. You should be able select the right options to have totals at different level of the data. Also give us an example what you want to achieve.

  • How create uninstaller for my program with AppBuilder?

    Hello All!
    Tell please how I can create uninstaller for my executable build?
    I can create the INSTALLER, but I have no opportunity to create the UNinstaller.
    I tried to contact with my tech support in Moscow, but I do not receive the answer for three days!
    I wished to find the answer to the question on a site labview.ru, but at this forum is only spam messages! They do not have a moderator there!
    Please help me!
    Best regards

    Hi,
    The LabVIEW Installer Builder uses the Microsoft Installer system (MSI) to create Installers. As such it registers an installation with the Control Panel->Add & Remove Software component and this is the place Microsoft wants users to uninstall and/or manage already installed applications from. As such it has become very common nowadays and most people do expect to uninstall their software from there.
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/

  • How create URL for see my folio on the web content viewer ?

    Hello,
    I try to create URL for see my folio on the web content viewer but nothing Work
    i have this informations :
    my applicationName
    my accountID
    my publication Name
    and my articleName (even if for this i'm not sure)
    All my articles are free, my folio is published...
    For information my folio is in PDF format with the resolution 1024x768
    Have you one idea why it's doesn't work ?
    Thanks for yours answers

    Rather than cobbling together the individual parts of the URL, create a development app with social sharing enabled and at least one article set to free. When you share the article of the published folio, you'll see your web viewer URL.

  • Customized Sort for Cross-Tab Row

    I have a simple Cross-Tab on my report that needs to be sorted in a static Row order.
    My cross tab has 1 Row (Name) and 1 column (Total Sales).
      Currently the CrossTab sorts the Name Alphabetically (ASC). But I need to specify a specific order.  I have added a numeric field to my table and I assign a numeric value to the last names so that I might be able to sort the Name Row based on my "CustomSortOrder" numeric field.
    Currently it looks something like this:
    A
    B
    C
    D
    E
    I want it to be: (numeric value behind the scenes)
    C (1)
    D (2)
    E (3)
    A (4)
    B (5)
    ALL OTHERS (9999)
    I cant seem to figure out where I need to set this.  I have tried adding a group to the report. I have tried setting the Report Sort order.  I am out of ideas.
    Any help would be greatly appreciated.

    Hi Jimmy,
    Here's what you need to do :
    1) Go to the Crosstab Expert > Remove the existing 'name' field from the 'Row'
    3) Add the numeric field as the 'Row'
    4) Select the Row > Group Options > Options Tab > Customize Group Name Field > Use formula as a Group Name > Click the formula button beside and use this code:
    If {numeric_field} = 9999 then "All Others"
    else
    {Name_Field}
    -Abhilash

  • How do use a cross tab for this ?

    Hi,
    I have the following details :
    Sn idType cnt1 cnt2
    1 test1 11 22
    1 test2 2 4
    2 test1 33 2
    2 test2 3 4
    i need to show it as
    Sn test1cnt1 test1cnt2 test2cnt1 test2cnt2
    1 11 22 2 4
    2 33 2 3 4
    how can i do that using analytic function ?
    kindly advise
    tks & rdgs

    Hi ,
    managed to do something like this :
    select lotid ,
    sum(decode(a.type , 'cp1' , cnt)) type1Cnt ,
    sum(decode(a.type , 'cp1' , yield)) type1Yield ,
    sum(decode(a.type , 'cp2' , cnt)) type2Cnt ,
    sum(decode(a.type , 'cp2' , yield)) type2Yield
    from testing a
    group by lotid
    results :
    LOTID     TYPE1CNT TYPE1YIELD TYPE2CNT TYPE2YIELD
    1 lotid1     22     33     2     4
    2 lotid2     5     6     7     11
    but would a analytic function be able to do that ?
    appreciate ur advise
    tks & rdgs

Maybe you are looking for

  • I need more help

    I have to install an new hard my main run of room on it and I transfer everything over to the new hard drive will Itunes will play the list is gone. I have try going to the download page to reinstall it that doesn't work could I please have the link

  • HT5567 how do i update my 3gs iphone to ios6 without loosing my pics or apps?  through wifi? itunes?

    how do i update my 3gs iphone to ios6 without loosing my pics or apps?

  • Changing the Decimal in the currencies

    Hi, We have an issue related to our SAP Production system. At the time of raising Billing invoices to customers in USD currency, we are using currency SAR with  two decimal places currently. Now our requirement is to bring three decimal places to USD

  • Network Model

    Does anyone know of an effective way of representing a live network in Java such as in the form of a TreeModel of any kind of model. I don't believe that the NetworkInterface class is adequate for accomplishing this.

  • ITunes sound problems

    I've recently been experiencing problems with the sound output in iTunes. My songs do play, but there's a distracting steady "wooshing" sound in the background, similar to the sound that speakers at a high volume make when they are playing dead air.