Re: Sum for two cross tabs

Hi Gurus,
I created two cross tab reports from two queries query 1 and query 2 .
query 1 is division wise turnover and query 2 is plant wise. I used both cross tabs in single tab only. The requirement is i need to merge, so i removed the header for second cross tab. then the report will look like below
>>>>>>(Months)>>>JAN-11>>>FEB-11>>>MAR-11>>>APR-11>>>MAY-11>>>......DEC-11
Div/pla
DIVISION1>>>>>>>1000>>>>>200>>>>>100>>>>>>500>>>>>>300>>>>>>.......700
DIVISION>>>>>>>>2000>>>>>400>>>>>900>>>>>>500>>>>>>600>>>>>>.......300
PLANT1>>>>>>>>>6000>>>>>340>>>>>140>>>>>>570>>>>>>380>>>>>>.......720
PLANT2>>>>>>>>>4000>>>>>370>>>>>640>>>>>>870>>>>>>980>>>>>>.......820
But i have a requiremnet to show the  sum of division and plant together which is as shown below
>>>>>>(Months)>>>JAN-11>>>FEB-11>>>MAR-11>>>APR-11>>>MAY-11>>>......DEC-11
Div/pla
DIVISION1>>>>>>>1000>>>>>200>>>>>100>>>>>>500>>>>>>300>>>>>>.......700
DIVISION>>>>>>>>2000>>>>>400>>>>>900>>>>>>500>>>>>>600>>>>>>.......300
PLANT1>>>>>>>>>6000>>>>>340>>>>>140>>>>>>570>>>>>>380>>>>>>.......720
PLANT2>>>>>>>>>4000>>>>>370>>>>>640>>>>>>870>>>>>>980>>>>>>.......820
>>>>>>>>SUM>>>13000 >>>>>1310>>>>1780>>>2440>>>>>>2260>>>>>.....2540
Since it's two cross tabs i couldn't able to get the sum.
Guide me how can i achieve this in BOXI 3.1
Thanks & Regards,
Ranganath

Hi thanks for your reply ,
I already tried the way sum(CROSS TAB 1 )+SUM(CT 2) but the problem is its taking the whole sum(cross tab1 )
for ex:
DIVISION1>>>>>>>1000>>>>>200>>>>>100>>>>>>500>>>>>>300>>>>>>.......700
DIVISION>>>>>>>>2000>>>>>400>>>>>900>>>>>>500>>>>>>600>>>>>>.......300
sum----
3000>>>>>600>>>>>1000>>>>1000>>>>>>900>>>>>>>>>1000
PLANT1>>>>>>>>>6000>>>>>340>>>>>140>>>>>>570>>>>>>380>>>>>>.......720
PLANT2>>>>>>>>>4000>>>>>370>>>>>640>>>>>>870>>>>>>980>>>>>>.......820
>>>>>>>>SUM>>>17500 >>>>>8210>>>>8280>>>8940>>>>>>8860>>>>>.....9040
here for division whole sum is 7500
so for jan.2011 plants sum is 6000(Plant 1)4000(Plant 2)7500(all months of division) instead of 3000(division 1+divison 2) on jan 2011.
thats is the problem i'm facing.
Hope you understand my problem explanation  here.
Regards,
Ranganath

Similar Messages

  • Relative positioning of two cross tabs.

    I have two cross tabs. The first one is dynamic as the number of columns change based on user prompts. The second cross tab is fixed one column which is attached as the last column to the first cross tab.
    When the columns of first cross tabs change, the second cross tabs column doesnot move across to fit as a last column i.e., there is no relative positioning between the cross tabs..
    How do we achieve this? Any help would be greatly appreciated.
    Thanks,
    Adam

    Right click on the section where the two crosstabs placed and go to section expert and check the option "Relative Positions"
    Regards,
    Raghavendra

  • Count Function Specific with Cross Tab Name for Multiple Cross Tabs

    Hello Friends I have cross Tab1 and Cross Tab2 based on 2 query data providers. I need to feed calculate the Count of Items in Cross Tab1 and DISPLAY In cross Tab2
    Dimension name is ITEM ID
    So if there are 21 items in Cross TAB1 then in Cross TAB 2
    I want to display "Number of Item" = 21
    so do this i Created a count variable
    =Count([Item ID]) In Report
    which give me 21 in cross tab1 but when I drag that to cross tab2 it give me count of Item in Cross Tab2 = 87 which is wrong since i want 21
    so How do I fix this Count in Cross Tab 2
    Please help with code to say Count([Item ID]) In Report from cross tab1
    thanks
    Soniya

    Hi,
    Have you tried for the solution given in the previous thread by converting it to the dimension or detail?
    What result did you get?
    If you use "Report" operator/keyword then the formula will give you result for whole report. So if you have sections in the report then you can replace it with Section keyword.
    Also measure are dynamic and gives result according to the dimesion you associate with them. so you have to convert it to STRING dimension or detail. before using it in the next block.
    Regards,
    Rohit

  • Cannot see data on  totals for a cross tab report

    Hi All,
    I create calculation with Count_Distinct function in crosstab format
    when insert Total in the bottom, the data is not appear in total.
    What is wrong about my report?
    Thank you,
    Mcka

    Is the same problem happening in a 'table' as well as the xtab?
    If so, then have you more than 1 folder being joined in this report?
    Russ

  • How to Display two different objects in a single table header in Cross Tab?

    i All,
    I've a reqiurement for a Cross Tab Report like I need two different objects that should be displayed side-by-side, one object's values after another in a single header. In the picture below I've shown the objects separately in two rows, top header having BSNLNL,MTNLNL,RCOMNL and Header-2 having AIRTIL,RCOMIL. But requirements needs to be showing like this,
    BSNLNL
    MTNLNL
    RCOMNL
    AIRTIL
    RCOMIL
    Actually, the data for the header comes from a single object called Operator. I've show the Operators name ending with NL and after that names ending with IL. So, i've separated the data into two variables using the below formulae.
    IL:
    =[Billing Operator]
    Where
    Match([Billing Operator];"*IL")=1
    NL:
    =[Billing Operator]
    Where
    Match([Billing Operator];"*NL")=1
    Also, the NL data should start first and after the NL data's last value ends, the IL data should begin.
    One more thing is that I've to show '0' for null values. So i've used the below formulae on the column data. You can see below that except the "Outgoing ILD Mins in the month from Mobile Network" everything else showing fine. I don't understand why.
    =If
      Substr([Franchise];3;1)="M"
      Then
       [Mobile Outgoing Charged Usage Minutes]
       Else
       0
    I tried different approaches but couldn't find a solution. Could you please help me?     
    I'm using BO WebI 4.1 SP1
    Regards,
    Naren Vema.

    Hi Naren,
    No need to split Billing Operator object. Create a variable-
    V_IL_NL= If  Match([Billing Operator];"*IL")=1 Then "IL" ElseIf Match([Billing Operator];"*NL")=1 Then "NL"
    1) Put V_IL_NL variable below Billing Operator object header.
    2) Sort and create break on this variable.
    3) Delete Footer column. it will automatically create when you apply break.
    4) Hide V_IL_NL variable from this header.
    ~Anuj

  • Two Groups in Cross Tab

    Hi Guru,
    Have a problem and need your expertise. I already tried searching and cannot find a match solution in my problem.
    I have two cross Tab groups. First group is the Month and the second group are the days of the month.
    Month> |__________JANUARY 2013_____________|_________FEBRUARY 2013__________| <- Group 1
    Days> |__1__|___2___|___3___|___4___|__..31_|__1__|__2__|__3___|__4__|__..28___| <- Group 2
    Item 1 | 0 | 3 | 1 | 0 | 3 | 0 | 1 | 0 | 1 | 0 |
    Item 2 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 0 | 3 | 0 |
    Item 3 | 1 | 3 | 3 | 0 | 1 | 3 | 2 | 2 | 3 | 0 |
    May I know the technique for the for-each group for this.
    Sorry for my bad English.
    Regards,
    Jim

    Hi Robin,
    I think you could achieve that using subreports; in each subreport, you would work on a specific set of data.
    In the main report, you would just display the required data from each subrport.
    I hope this helps,
    Selenia

  • 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.

  • Drill down of manual cross tab reports with Multi variable subreports

    I tried to make a subreport by setting the hyperlink on the group sum of a manual crosstab (http://www.tek-tips.com/faqs.cfm?fid=1219) by setting Hyperlink to another report object.
    The documentation said I should copy and paste the name of the report object in the sub report over into the field in the primary report.  As I don' t really know what a report object is this failed.  Further I found some code in a sample report to deal with subreports that have multiple parameters.  The code was unbelievable; it couldn't be right.  So, how do I link my subreports to my reports by passing two parameters to the subreports that represent the row and column label of a given sum.
    Further what are the fields in the hyperlink another report object from for:
    Select from: //do they want a query here?
    Report title: //The don't let you type in this
    Object Name: //This seems elective
    Data Context:// No clue on this either
    Thanks for any help you can provide
    p.s. This forum doesn't seem to use traditional bit code

    Thanks for the reply.  I looked through those samples and other samples.  The two cross tab samples I could find were CtossTab and Inventory CrossTab.  Neither has a hyperlink to a sub report and I believe those were actual cross tabs, not manual crosstabs.  When I scoured the web for an answer, all I could find was what was linked.  This is going 20 pages deep on google.
    Crystal crosstabs are 98% better than the excel power pivot or pivot table.  However, with Excel, you can drill down to the details automatically.  With crosstabs you can't.  I was hoping to replicate this by making each summary in the manual cross tab a hyperlink to a sub report that filters the details based on the row and column just as excel does.  There is no sample for this.
    Oh yes, I'm using CR XI

  • Suppressing a prior Year Month Column on Cross Tab Report

    I have two cross tab report in the footer that compares orders booked against what was shipped by month.  I need to suppress the columns (Month) for the prior year but keep the Totals.
    I have a pdf of the report

    Try to add a formula as a column in the crosstab instead of a field. Create a formula like this
    if year()=year(currentdate)-1 then
    year()
    else
    month()
    This works only for two years of data, means you need to have the record selection formula like this
    year()>=year(currentdate)-1 and year()=year(currentdate)
    Regards,
    Raghavendra

  • Top 10 in Cross tab

    Hi,
    How to display only the TOP 10 rows in a cross tab based on the Total field.  I am using BW as my source.
    Thanks and Regards,
    Subbu S.

    right click on the top left of the cross-tab and choose Group Sort Expert and there will be a top n expert available for the cross-tab.

  • Serial No in cross tab

    i need to give serial no in cross tab....
    i had given in group header...
    i have 5 different groups..
    so i need to refresh the serial no for each cross tab...
    Please help me...
    Thanks in Advance.......................

    Hi MR. HAFEEZ MR.
    The requirement is not clear but you can print serial number in cross tab.
    Go in Cross tab and right click on a field where you want to insert serial number and go in Format Field -- common Tab--Disply String then write the following formula :
    WhilePrintingRecords;
    Global Numbervar x;
    x:=x+1;
    totext(x,"##")"  "CurrentFieldValue;
    It will print serial number along with your field value.
    Thanks,
    Sastry

  • Cross Tab Top N Setting Programmatically

    <p>How can I set the value of N in the Sort Top N in the Group Sort Expert dialog programmatically for a cross tab object?  </p><p>Thanks,</p><p>-Carl</p>

    Do you mean Dynamic Selection for the value 'N'. If yes then create a numeric parameter (enter static values like 5,10,15 whatever you wanted). Goto Report - Group Sort Expert -> Select Top N and in the text box for 'N' Click on X formula editor and just place your Parameter.
    Simple, Hope this exactly what you were looking for... !/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif|title=Tongue out|height=18|alt=Tongue out|width=18|src=/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif!
    -Â KanakÂ

  • Cross tab on quarter (date) parameter

    Post Author: tomahawk
    CA Forum: Charts and Graphs
    I need to design a cross tab report where the column is a certain date field (say date1). However, the report is a quarterly report, so the columns should be for each quarter (date1 falling in a particular quarter). The user wants to select the quarter from a drop down parameter box at runtime. How do i set the condition/formula for the cross tab to display details for the quarter that the user selected?
    Please help urgently.
    Thanks
    Tom

    Post Author: sleahcim
    CA Forum: Charts and Graphs
    Hi Tom,
    While there may be some method to do it by playing around with the formatting, you're likely to get it done quicker by creating a formula for your quarters, and swapping that field into your crosstab.  Here's a sample report that shows you how to create a quarter formula.
    -Michael

  • Array in formula to use in a cross-tab

    Post Author: eliasc
    CA Forum: Formula
    I am using CR 10.  I have a report where I am using a formula to use as a column header for a cross-tab.  Below is an example of what I am trying to achieve.
    ATLANTA INVOICE  ATLANTA SERVICE  ATLANTA WARR.  BIRMINGHAM INVOICE BIRMINGHAM SERVICE BIRMINGHAM WARR.  ETC..
    Below is the array in my formula.
    Shared NumberVar i;Shared StringVar CompanyName;Shared StringVar Array Companies := &#91;"HFSE - FW","ATLANTA INVOICE","ATLANTA SERVICE","ATLANTA WARR.","BIRMINGHAM INVOICE","BIRMINGHAM SERVICE","BIRMINGHAM WARR.","BGSI INVOICE","BGSI SERVICE","BGSI WARR.","PEN INVOICE","PEN SERVICE","PEN WARR.","JACKSON INVOICE","JACKSON SERVICE","JACKSON WARR.","FORT WORTH INVOICE","FORT WORTH SERVICE","FORT WORTH WARR.","JAX INVOICE","JAX SERVICE","JAX WARR.","LOUISVILLE INVOICE","LOUSIVILLE SERVICE","LOUISVILLE WARR.","OKLAHOMA CITY INVOICE","OKLAHOMA CITY SERVICE","OKLAHOMA CITY WARR."&#93;;0;
    local stringvar tString;shared numbervar CompName;
    CompName :=UBound(Companies) +1;i := CompName;
    For i := 1 to CompName step 1 do(  ReDim Preserve Companies&#91;i&#93;;    tString :=Companies&#91;i&#93; );
    tString;
    Can someone please help me.  I don't know where I am going wrong and why it isn't putting the above names in the cross-tab columns.
    Thank you for your help.
    Chris

    Hi,
    The "buffer" variable in DIG_Block_Out is an array of short integers (16 bit integers). It expects you to pass the array pointer as the function value. In the example below, "buffer" would be the parameter value.
    Dim buffer(5) as Integer
    Ron

  • Cross tab report vertical display?

    Is it possible for a cross tab (or other RTF template report format) to accomplish this?
    The one issue with our cross tab report is the data needs to be grouped by day. This is the format we would like to achieve:
    Employee-----Mon-----------Tues-------------Wed
    John------------08:15AM-----08:15AM------11:00AM
    ------------------12:15PM-----08:15AM------16:00PM
    ------------------01:15PM-----08:15AM------17:00PM
    ------------------17:30PM-----08:15AM------19:30PM
    Mary-----------10:00AM-----08:15AM------10:00AM
    ------------------14:15PM-----11:15AM------14:15PM
    ------------------15:15PM-----12:15AM------15:15PM
    ------------------19:30PM-----17:15AM------19:30PM
    In this way, each employee (John and Mary) shows the time they started work and below that the time they went on their lunch break below that the time back from lunch break and below that the time they finished work.
    With a cross tab report we are getting these results:
    Employee-----Mon-----------Tues-------------Wed-----------Thurs
    John------------08:15AM-----12:15PM------01:15PM------17:30PM
    Mary-----------10:00AM-----14:15PM------ 15:15PM-------19:30PM
    The data is going across the row instead of down. John's 12:15PM time going to lunch should display directly below the 08:15AM time he started work as in the first example.
    Any suggestions to get a cross tab report (or any other kind of format) to display data like that?
    Thank you very much! :)

    We are working with XML Publisher (built into PeopleTools in PeopleSoft CRM 9. Tools 8.49.0.4. The XML is created from a PeopleSoft query (in App Designer) and looks like this:
    <?xml version="1.0" ?>
    - <query numrows="10" queryname="XML_QUERY1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
    - <row rownumber="1">
    <PKT_POST_ID>PKT_POST_I</PKT_POST_ID>
    <PKT_CHECKIN_TYPE>P</PKT_CHECKIN_TYPE>
    <EMPLID>EMPLID samp</EMPLID>
    <ROW_ADDED_DTTM>2009-11-09T16:52:55-05:00</ROW_ADDED_DTTM>
    <ACTIVITY_CODE>ACTIVITY</ACTIVITY_CODE>
    <PHONE>PHONE sample data</PHONE>
    <DESCR80>DESCR80 sample data</DESCR80>
    <PKT_RC_NUMBER>PKT_RC_NUM</PKT_RC_NUMBER>
    <DESCR50>DESCR50 sample data</DESCR50>
    <DESCR>DESCR sample data</DESCR>
    <COMPANYID>COMPANYID sampl</COMPANYID>
    <BO_NAME>BO_NAME sample data</BO_NAME>
    <BO_NAME_1>BO_NAME_1 sample data</BO_NAME_1>
    <ADDRESS1>ADDRESS1 sample data</ADDRESS1>
    <CITY>CITY sample data</CITY>
    <STATE>STATE</STATE>
    <EXP17_44>EXP17_44 sample</EXP17_44>
    <EXP18_40>EXP18_40 sample</EXP18_40>
    <EXP12_52>EXP12_52 sample</EXP12_52>
    <EXP9_52>EXP9_52 sample</EXP9_52>
    <EXP11_164>EXP11_164 sampl</EXP11_164>
    </row>
    - <row rownumber="2">
    <PKT_POST_ID>PKT_POST_I</PKT_POST_ID>
    <PKT_CHECKIN_TYPE>P</PKT_CHECKIN_TYPE>
    <EMPLID>EMPLID samp</EMPLID>
    <ROW_ADDED_DTTM>2009-11-09T16:52:55-05:00</ROW_ADDED_DTTM>
    <ACTIVITY_CODE>ACTIVITY</ACTIVITY_CODE>
    <PHONE>PHONE sample data</PHONE>
    <DESCR80>DESCR80 sample data</DESCR80>
    <PKT_RC_NUMBER>PKT_RC_NUM</PKT_RC_NUMBER>
    <DESCR50>DESCR50 sample data</DESCR50>
    <DESCR>DESCR sample data</DESCR>
    <COMPANYID>COMPANYID sampl</COMPANYID>
    <BO_NAME>BO_NAME sample data</BO_NAME>
    <BO_NAME_1>BO_NAME_1 sample data</BO_NAME_1>
    <ADDRESS1>ADDRESS1 sample data</ADDRESS1>
    <CITY>CITY sample data</CITY>
    <STATE>STATE</STATE>
    <EXP17_44>EXP17_44 sample</EXP17_44>
    <EXP18_40>EXP18_40 sample</EXP18_40>
    <EXP12_52>EXP12_52 sample</EXP12_52>
    <EXP9_52>EXP9_52 sample</EXP9_52>
    <EXP11_164>EXP11_164 sampl</EXP11_164>
    </row>
    </query>
    I can send you the RTF template too. Thank you!

Maybe you are looking for