Cross Tab Sum at Column(lowest row

YEAR MONTH 200912 201001 201002 Total
COST_CENTRE
A                72     32      104 208
B                8      8               16
C               2      2               4
D               3      1                3
Total               X     X X          231     
I am not getting sum columnwise in place of X.Although I have got rowwise total.
Plz help me.The columns are generated dynamically as in Report Builder Matrix report.

Hi Anoop,
Have a look at
http://winrichman.blogspot.com/2009/11/bi-publisher-crosstabtotal.html
http://winrichman.blogspot.com/search/label/cross%20tab

Similar Messages

  • Cross tab report-dyanamic columns for months and quarterly sum

    Hi all,
    I work on report creation in BI Publisher.I need to display values in a cross tab report in a way that it shows data for 3 months and then a column for its quarterly sum.
    For ex:-
    Market --Jan       Feb    Mar    Q1_sum Apr May Jun Q2_sum ---------------like wise for n months
    Market1 100 --80 --30 -- 210 --10 -- 80 --90 --210
    Market2 120 --90 --40 --250 --100 --70 --30 --200
    Market3 130 --70 --60 --260 --140 -- 0 --40 --180 ('--' just to maintain indentation)
    The values of number of months( date range) and the names of market are derived dyanamically .
    The code from my sql query presently shows months-range (Jan ,feb,mar..), Quarterly sum to be displayed, Market names etc as child elements in multiple occurences main Query set.
    <Main Query>
    <Market>abc</Market>
    <Region>abc</Region>
    <Months-Range>abc</Months-Range>
    <Quarterly_sum>abc</Quarterly_sum>
    <Main Query>
    <Main Query>
    </Main Query>
    Please guide me on code in rtf template for the same.
    Thanks
    Edited by: user9061488 on Jul 13, 2010 1:32 AM
    Edited by: user9061488 on Jul 13, 2010 3:48 AM

    Hi,
    Do u have time dim in your metadata??
    If not,
    Create a time dimension year,quater,month,day
    http://lh4.ggpht.com/_rhCtHYLiamQ/S7PQvxYBbzI/AAAAAAABZXI/ef_Ur9AmyUo/s800/04_year_quarter_bmm.jpg
    After that in fact table by using the (ago/todate) function ....pull the respective columns to pivot table columns section(date column) and measures col in measures section and enable the grand total in columns section so that it will show grand total for every quarter
    thanks,
    saichand.v

  • Cross tab template Formatting. Two Row Groups cannot be on the same line

    Hi
    I have a cross tab template(Vetsriselvan favor) where it has Multiple Row groups. In the RTF template I want them to be on the same line but somehow it works only if they are one below the other. In this template Comp is the First Group Row then Acct is 2nd Group Row and Expense is the 3rd Group Row. Period is the Column. I want all the Group rows start from the same line instead one below the other. Is it possible to do it?
    Comp Acct Expense Period
    &lt;?for-each-group:/BIOFASPRJ/LIST_G_SUMDEPR1PERACCT/ &lt;[?for-each-group@column:G_PERIOD_NAME[./PERIOD_NAME!=''];PERIOD_NAME|mailto:?for-each-group@column:G_PERIOD_NAME[./PERIOD_NAME!=''];PERIOD_NAME]?&gt;
    G_SUMDEPR1PERACCT/LIST_G_COMP_CODE/G_COMP_CODE;./COMP_CODE?&gt; F_comp
    &lt;?for-each-group:./LIST_G_ACCT/G_ACCT [LIST_G_DESCRIPTION/G_DESCRIPTION/LIST_G_PERIOD_NAME/G_PERIOD_NAME/LIST_G_DEPR1/G_DEPR1];ACCT?&gt; &lt;?variable@incontext:G1;current-group()?&gt;acc
    &lt;?for-each-group:./LIST_G_DESCRIPTION/G_DESCRIPTION[LIST_G_PERIOD_NAME/G_PERIOD_NAME/LIST_G_DEPR1/G_DEPR1];DESCRIPTION?&gt;&lt;?variable@incontext:G2;current-group()?&gt;acc

    Upload the template here
    http://apps2fusion.com/forums/viewforum.php?f=60
    or
    Send me the template and xml to fusionDOTobjectATgmail.com

  • Cross Tab export : Excel Data Only - Row headings are *bottom* aligned?

    Hi All,
    Having a problem with Crystal 11 / BOXI.
    I have a Cross Tab working fine that has four Row groupings (labels on the left).
    In Preview mode, it looks as expected. Row #1 label appears on line 1. Row #1 label shows blank on line 2,3,4 etc until it is ready to change.
    The organization of the Row group is further made clear by a nice box that spans multiple rows. The Row label appears at the TOP of this box as you might expect.
    In Excel-Data Only format, there is a problem. (I saved, scheduled, and ran on BO XI Enterprise CMC console.) The Excel file shows the Row 1 labels without any box (that's OK as it is "data only") however the text is bottom aligned. So the first label does not appear until the final row of the grouping.
    Same thing is happening with Row 2, 3 groupings, they are all bottom aligned.
    It's confusing for the users who would expect the Row grouping labels to be all top-aligned.
    I have searched the forums and support site and read all technotes. I also tried several things including:
    Format Field for Row#1 Name, choosing Left/Right/Center horizontal alignment (where is the same for vertical??)
    Within BO Enterprise, try combinations of options under Excel - Data Only : export formatting, maintain relative object position, maintain column alignment, use options saved with report, etc.
    Any ideas? Is there a way to force a top-alignment programmatically, for Excel Data Only output?
    Help appreciated !
    Rob McCauley
    Cognex
    Natick, MA 01760 USA

    I found the answer to this question with help from SAP Support.
    In the Cross-Tab Expert, Customize Style tab, click "Column Totals on Top".
    Then, the Excel Data Only report will show the row titles Top-aligned for the row group.

  • Cross-Tab in multiple columns on same page rather than on multiple pages

    I have a report that shows temperature readings and the date/time of the reading in a cross tab as a part of a report.  The amount of readings causes the cross-tab to take up multiple pages.  What I would like to do is set the cross tab to appear three or four times on the same page before going to the next page to reduce the number of pages in my report.  Any ideas on how I can do this?
    This is what I have:
    Page 1:
    Date/Time1  |  Temp1
    Date/Time2  |  Temp2
    Date/Time3  |  Temp3
    Date/Time4  |  Temp4
    Page 2:
    Date/Time5  |  Temp5
    Date/Time6  |  Temp6
    Date/Time7  |  Temp7
    Date/Time8  |  Temp8
    What I want is:
    Page 1
    Date/Time1  |  Temp1..............Date/Time5  |  Temp5..............Date/Time9   |  Temp9
    Date/Time2  |  Temp2..............Date/Time6  |  Temp6..............Date/Time10  |  Temp10
    Date/Time3  |  Temp3..............Date/Time7  |  Temp7..............Date/Time11  |  Temp11
    Date/Time4  |  Temp4..............Date/Time8  |  Temp8..............Date/Time12  |  Temp12    
    Page 2
    Date/Time13  |  Temp17............Date/Time21  |  Temp21............Date/Time25  |  Temp25
    Date/Time14  |  Temp18............Date/Time22  |  Temp22............Date/Time26  |  Temp26
    Date/Time15  |  Temp19............Date/Time23  |  Temp23............Date/Time27  |  Temp27
    Date/Time16  |  Temp20............Date/Time24  |  Temp24............Date/Time28  |  Temp28        

    hello,
    Don's suggestion of creating a "mock cross tab" is a good one.
    you can also try this Multiple Columns formatting idea if you wish:
    1) create a new report
    2) create a group on your date field
    3) put a summary on your Temp field and move it into the group header of the group
    4) suppress the details section and the group footer
    5) right click on the details section header in the design mode and choose Section Expert
    6) in the Common tab, choose Format With Multiple Columns
    7) in the Layout tab, choose a Width of about 2.66"
    8) choose Down Then Across for Printing Directions
    9) choose Format Groups With Multiple Columns
    10) bring this new report into your existing report as a subreport
    jamie

  • Cross tab - to summarize number of rows

    Hi Everyone,
    a) I notice that if I use the count of Final Grade field, some students have more than one row for that class.
    So the count = 2.
    b) I created a calc: If Final Grade Count > 1, then set calc to 1.
    c) then I duplicated query as cross tab
    there are 2 datapoint fields: final grade count and Calc_RevisedCount
    d) delete final grade count and left Calc_RevisedCount
    e) dragged Course name to left,
    Final_Grade on top
    Calc_RevisedCount is the datapoint
    f) problem is that the calc_REvisedCount is NOT tabulating/summarizing
    the boxes are being populated with 1's
    Is there a better approach, or do you have any advice? thx in advance, sandra

    Hi Rod,
    tx for writing...
    a) Do you mean I should create a calc?
    b) Do I use plain Count_distinct (or the version with partition)
    c) I can use a calc as a data point in a cross tab query?
    i'm going home for the day.... tx soooo much for writing back..... sandra

  • Sub-Summarizing columns in Cross Tab

    Post Author: valkyriexp
    CA Forum: General
    Hi,
    I'm fairly new in using CR, I wonder if anyone could help me.
    I have a cross tab report of projects in rows, activities in columns and hours in table, i need to insert  few new columns that have the sum of hours of the selected activities. Is that possible without breaking the report into sub-reports?
    some thing like
                      Act1         Act2      Sum1&2     Act3      Act4      Act5      Sum3&4&5   .....
    Proj1             1             1              2              4            2           1              7
    Proj2             2             1             3               1            0           0              1
    thanks for the help

    Post Author: valkyriexp
    CA Forum: General
    After spending half a day i was able add a new field to each column to does the job, small piece of macro is doing the summation, now i have the problem to set the width of empty fields to zero, can anyone help?
    WhileReadingRecords;global NumberVar sumnum;global StringVar OutStr;
    if {jobs.acts}="Act1" or {jobs.acts}="Act3" then     sumnum:={jobs.hour}else if {jobs.acts}="Act2" or {jobs.acts}="Act4" or {jobs.acts}="Act5" or ... then    sumnum:=sumnum+{jobs.hour}else    sumnum:=0;
    if {jobs.acts}="Act2" or {jobs.acts}="Act5" then    OutStr:=cstr(sumnum);else    OutStr:="";
    the result would be like the following table, now i need to set the width of empty fields to zero:
                      Act1         Act2             Act3      Act4      Act5        .....
    Proj1             1            1      2           4            2          1     7    
    Proj2             2            1      3           1            0          0     1    

  • Cross Tab calculation in Individual column-Crystal Report

    Hi experts
    I am preparing a report in Crystal report 2008. Report template is Cross Tab.
    Structure of report is
    Cardname-Row, DocType-Columnd, DocTotal-Summarize field.
    Result of this report is
                          IN(Invoice)             RC(Incoming Payment)      Total
    XYZ                    1000                  -500                                 500
    ABC                    2000                 -1000                               1000
    Total                   3000                  -1500                               1500
    I have inserted a column using calculated member. I want to Calculate in that column with BP opening balance
    eg. OCRD.Balance-DocTotal when I do this it give first value to all column rows, i.e (consider XYZ opng Balance is 1500, I have calculate month opening balance which meance Current Opening Balance-Current month Order bookings=Month opening balance)
              IN(Invoice)             RC(Inc Pmt)      Total   Opng Balance
    XYZ       1000                  -500                  500     500
    ABC      2000                 -1000                1000     500
    Total      3000                  -1500                1500    500
    I want to calculate Opng Balance for each CardName but it gives first Customers opning balance to all customers.
    Give me solution.
    Thanks in Advance

    Hi
    I think you can do calculation based on the formula .On the cross tab ,there is :
    X -selection - row
    Y - selection -column
    Z - summary
    You can also use formula on cross tab to do that function  and insert into summary section .
    Hope this helps .
    Bishal

  • Displaying Alternate row as colored in Cross tab

    Hi,
    I have a report where I need to display alternate rows as colored.
    There is some data in detail section followed by a cross tab in the report header section.
    While I am able to display alternate rows as colored in Detail secction for displaying alternate colored rows in Cross tab data I need some help.
    Data in cross tab is like this
                  history geography
    Tammy   90          60
    Sid         80          50
    Julia       70        40
    In cross tab for displaying alternate colored rows ie for alternate student names  I am using two formulas
    - for displaying row values I am using this one
    whileprintingrecords;
    numbervar d;
    d := iif(d=100,255,100);
    color(255,255,d);
    For displaying alternate colored inner cells ie marks  I am using this formula
    whileprintingrecords;
    numbervar c;
    c := iif(c =255,100,255);
    color(255,255,c)
    I got these formulas after doing Googling
    My cross tab is present in report footer and in the generated report it comes separeated in two pages.
    In the first page data for Tammy and Sid is displayed while Julia is displayed on next page.
    Now the Tammy is coming as yellow colored and as expected Sid is coming as white colored. However Julia which is on next page is coming as white , but logically it should have come as yellow. On the other hand my column data ie marks column is coming fine. Data for tammy and sid is coming as alternately colored and data is Julia on the next page is coming as yellow(as data for Sid is in white)
    I am not able to understand why this is happening and what is the correct way to do alternate row coloring in cross tabs
    Edited by: thunderball10 on Aug 26, 2010 11:57 AM
    Edited by: thunderball10 on Aug 26, 2010 12:00 PM

    Where is your variable c being reset.
    If in page header or group header and you have repaet group header on new page then c will be reset on each page.
    If In groupheader try adding this to reset formula
    if not inrepeatedgroupheader then
    Ian

  • Can we apply sorting on Column values in Cross tab??

    Can we apply sorting on Column values in Cross tab??
    Following is the scenario with me.
    I have 2 fields and one formula.
    Fields are HostName and Username.
    Formula is status which categorizes the Authorized and Unauthorized events.
    And in the Summary Field, I am calculating the total number of events.
    In cross tab, Fields are marking the Rows of the cross tab and Formula is making the Columns(Authorized and Unauthorized ) of the cross tab.
    Since in cross tab data is grouped from left to right and sorted by default. I want to remove this default sorting and want to put sorting on the formula for Unauthorized events.
    Is there any way to fulfill this requirement?

    Hi,
    You can assign a number to each Unauthorised field e.g
    Rank   Unauthorised
    1         A
    2         BC
    3         DF
    5         TD
    6         GF
    Then add "Rank" to the crostab Columns before the Unauthorised  field. Then you can control the sorting order on your crosstab.
    Hope this helps
    Regards
    Dotun

  • Cross Tab keeps suppressing rows with no data

    I have a Crystal Report that is using a Cross Tab.  I have 2 rows in the cross tab the first row is the Month name and the second row is the Day Number of the month, and the report will print the Month Name on the left followed by all the Calendar Day Numbers in the month.
    The problem is that when there is no data for a Day Number row the entire row is not shown.  So you might have day number 1, 2, 3 and then jumps to maybe 6.  I found that the ones the cross tab was not showing did not contain any data.  I just need the calendar day number to at least print so the days read sequentially instead of jumping to 6 or another number.
    Is there any way to show the rows even if they don't contain any data?
    I have right clicked and gone into the Cross Tab expert and there isn't anything checked to suppress rows.  I don't understand why its still suppressing rows!
    Is there a global report option that I missed that says "suppress rows when there are no records"?
    Thank you all in advance,
    I am using Crystal Reports XIR2 with Service Pack 4

    I am still not getting all rows to show up on the report.   The rows that are not showing up contain no data in the cross tab but the row still needs to show.
    The only reason I got it to work before was because I selected all values for the columns parameter so it brought back everything in the database that was why it was able to show all values.
    I have two tables one is a date database and contains all the dates till 2012.  The other is the product data which contains the product code and qty that the cross tab summarizes.
    I have done a left outer join from the product data to the date database, and I am still not able to get all the dates to list for the selected time range. 
    I was able to get the dates to show up when I right clicked the link and modified the link properties.  I chose Left Outer Join and then under Link Type I selected ">" in the database expert dialog.  This brought back all the dates but the data in the report was all the same.  Probably just the first record repeated all down the page.
    Any ideas how to fix this problem?

  • Suppress Columns shift Cells Lefts in Cross Tabs

    Hello All
    I need some help getting a cross tab report to suppress data correctly.
    I have the following reporting requirement
    Based upon Fiscal Year Period Selection report should start from the input period back 24 months.
    Example
    For the following example I use selection criteria of FY 2008 and period 11
    Report should look as follows
                                          2008
                                          11        10         9          8         7 ....                           
    Account Receivable     100      200       300      4000   5000 ....
    Where the starting column is the input period 11
    The table structure is
    Account Number,  FY, Key Figure Period 1, Key Figure Period 2, Key Figure Period 3 .... Key Figure Period 12
    Parameters
    Fiscal Year
    Period
    Cross Tab Format is
                                     FY
    Account Number      Key Figure Period 12, Key Figure Period 11, Key Figure Period 10, ... Key Figure Period 1
    When conditionally suppressing the field I am using a suppression formual
    Key Figure Period 12 = {?FY}="2009" and {?Period}<"12"
    Key Figure Period 11 = {?FY}="2009" and {?Period}<"11"
    Key Figure Period 10 = {?FY}="2009" and {?Period}<"10"
    etc.
    The problems is that when I suppress I just get a blank field
                                          2008
                                          12      11       10         9          8         7 ....                           
    Account Receivable              100      200       300      4000   5000 ....
    What I want is a complete suppression of the column and commence the report from Period 11 as follows.
                                          2008
                                          11       10         9          8         7 ....                           
    Account Receivable      100      200       300      4000   5000 ....
    Can anyone provide tips on how to achieve this?
    Thanks
    Phillip

    Thanks for your help. Sorry for my wording causing confusion I am new at Crystal Reports. I think I may have caused some confusion for I am actually wanting to stop the summarized data from showing, and shifting the  summarized data to the left based upon a selection criteria.
    Some more details
    The Cross Tab has a Column heading of Fiscal Year.
    The summarized values report the contents of fileds GLTO_HSL12 etc and are shown horizontaly with the label showing.
    I can suppress the summarized fields so that they wont show. What I am trying to do is get the summarized fields to move to the left if based upon a selection criteria the logic I am applying is as follows
    If Fiscal Year is 2009 and period is 10 then show summarized data from field GLT0_HSL10 to GLT0_HSL1 with GLT0_HSL10 being the first summarized field reported.
    Currently based upon the Fiscal Year is 2009 and period is 10 example I can only blank out the summarized data for GLT0_HSL12 GLT0_HSL11 the actual format of the cross tab remains static.
    Cross Tab Layout
    ______________________________FY2009
    Summarized Data Heading_______| Period 12_____| Period 11 _____| Period 10 | ....Period 1
    Row 1_______________________| GLT0_HSL12__|GLT0_HSL11__|GLT0_HSL10__|...
    using suprresion formula in summarized fields I can achieve the following
    ______________________________FY2009
    Summarized Data Heading_______| Period 12_____| Period 11 _____| Period 10 | ....Period 1
    Row 1_______________________| ____________|________________|GLT0_HSL10__|...
    What I want though is
    ______________________________FY2009
    Summarized Data Heading_______| Period 10_____ | Period 9
    Row 1_______________________|GLT0_HSL10__|GLT0_HSL09__|...
    I hope this explains my problem alittle better.
    Phillip

  • Row length in Cross tab

    Hi
    How to increase length of row in cross tab.
    i took descrption as row in crosstab, how to increase it's length.

    The length of the row can only be increased by clicking on the row field and expand it from the corner pointers. There is no automatic adjustment button for the row to adjust itself.
    Regards
    Jehanzeb

  • Column dissappeared in Cross tab with specific order

    Hi experts,
    I have a cross tab, with 2 columns from YEAR (2009, and 2010). Then I created a other column with the differences of both columns before, I changed the SPECIFIC ORDER and the 3th column is DISAPPEARED!!!
    I dont understand why!!
    thank you very much

    At the beggining i have the following columns:
    2009 2010 Desviation
    I created this with specifciar order.
    Then, I want to change the order and I put :
    2008 2009
    but the desviation is disappearing.
    thank u

  • Cross tab Date Column Grouping

    Hi,
    I have a cross tab in my report which displays no of tickets opened grouped by day, week or Month, grouping is done based on a parameter GroupBy, which has Day, Week, Month values
    Incident   Jun -99  Jul-99
    Priority1      10          20
    Priority2      45          23
    if user selects day or week, cross tab should display column in dd/mm/yy format, if its month, MMM-yy format.
    I have created formula which returns a date type
    GroupBy = Day then Opendate
    GroupBy = Week then opendate -dayofweek(opendate)+1
    GroupBy = date(year(opendate),month(opendate),1)
    and used this date formula as column in cross tab. I tried to format using custom date style...but its not working in cross tab.
    if I use totext to format the date formula, data will not be in sorted order...ex, its showing jul-99 before jun-99
    can anyone help?
    Thanks in Advance,
    Jyothi

    You can avoid multiple cross tabs by using the Display String expression under Field Formatting.  The expression that is entered in this field is what is displayed as the field value in the report.  Use the same logic as you are using for calculating the value, except return CStr(CurrentFieldValue, <format>), where <format> is the formatting code for the desired date format based on GroupBy.
    HTH,
    Carl

Maybe you are looking for

  • How to generate XML for following?

    Hello Everyone, I have following snippet of PLSQL code with for loops and record type arrays. Each loop can return separate number of rows and iterate that many times. For e.g. the for loop tab_rec may fetch 50 rows where as the for loop sql_rec may

  • Error BRAIN 276 when you execute a Web template in BI Admin Cockpit in  EP

    Hi Experts, I have Installed BI Administration Business Packages in Portal and configured necessary steps in BI System.I have assigned the role in Portal and BI System. I tried executing one iview...and was getting the following error: Error loading

  • Issue with recovery disks purchased from HP

    I had a harddrive failure on the HP Pavilion 21-h010. Instead of utilizing the warranty, I decided to purchase a new harddrive and restore disks from HP. Initially, I had the error where I was told that the disks could not be used for the system. I f

  • Archiving of table records

    Hi, Oracle9.2 Windows I have created a cursor to copy the records from table T1 to another table T2 which are 30 days old and those copied records need to be deleted from table T1. Now, before deleting the records from table T1, I want to put some ve

  • How to display Radio buttons with default selection on

    Hi I want to display Radio buttons using jsf i have done it using <h:dataTable id="apartmentList" value="#{userBean.allApartmentList}"                var="apartments">                <h:column>                     <h:selectOneRadio id="selectedApartm