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
Similar Messages
-
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
<?for-each-group:/BIOFASPRJ/LIST_G_SUMDEPR1PERACCT/ <[?for-each-group@column:G_PERIOD_NAME[./PERIOD_NAME!=''];PERIOD_NAME|mailto:?for-each-group@column:G_PERIOD_NAME[./PERIOD_NAME!=''];PERIOD_NAME]?>
G_SUMDEPR1PERACCT/LIST_G_COMP_CODE/G_COMP_CODE;./COMP_CODE?> F_comp
<?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?> <?variable@incontext:G1;current-group()?>acc
<?for-each-group:./LIST_G_DESCRIPTION/G_DESCRIPTION[LIST_G_PERIOD_NAME/G_PERIOD_NAME/LIST_G_DEPR1/G_DEPR1];DESCRIPTION?><?variable@incontext:G2;current-group()?>accUpload 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 USAI 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 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 -
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 4I 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? -
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 -
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 PMWhere 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 -
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 AdvanceHi
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 -
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 -
I'm trying to design a cross-tab report the following columns:
Rows : MONTHS Columns : 2009 Sales; 2010 Sales; 2011 Projections; 2011 Sales; Sales vs Proj; % diff; 2010 vs 2011 diff
I have a grouping on location. Then I created a formula that will define what goes in each column. The Sales columns are in the database. The projections will be hard coded (an amount for each month and each location).
MY PROBLEM IS, I'M HAVING A HARD TIME GETTING THE PROJECTIONS TO GO INTO THE CORRECT COLUMN.
Here is a formula I have for each location. ( I was having trouble getting all the locations in one formula)
IF {@SERVICE TYPE NAMES}="DALLAS" THEN (IF{@MONTH NUMBER}= "01 - JANUARY" THEN 989006.66
ELSE
IF{@MONTH NUMBER}= "02 - FEBRUARY" THEN 1006933.40
ELSE
IF{@MONTH NUMBER}= "03 - MARCH" THEN 2027802.10
ELSE
IF{@MONTH NUMBER}= "04 - APRIL" THEN 2229853.06
ELSE
IF{@MONTH NUMBER}= "05 - MAY" THEN 2286594.60
ELSE
IF{@MONTH NUMBER}= "06 - JUNE" THEN 2273131.89
ELSE
IF{@MONTH NUMBER}= "07 - JULY" THEN 2192997.93
ELSE
IF{@MONTH NUMBER}= "08 - AUGUST" THEN 2083988.42
ELSE
IF{@MONTH NUMBER}= "09 - SEPTEMBER" THEN 1851888.57
ELSE
IF{@MONTH NUMBER}= "10 - OCTOBER" THEN 1720331.72
ELSE
IF{@MONTH NUMBER}= "11 - NOVEMBER" THEN 1158791.62
ELSE
IF{@MONTH NUMBER}= "12 - DECEMBER" THEN 1089271.37
ELSE 0)Hi,
Nested Ifs are like brackets. If you mess one up all the others that follow will do strange things and trying to figure it out just causes high-blood pressure.
Try this with Case statements instead:
IF {@SERVICE TYPE NAMES}="DALLAS" THEN
(Select {@MONTH NUMBER}
Case "01 - JANUARY" :989006.66
Case "02 - FEBRUARY" :1006933.40
Case "03 - MARCH" :2027802.10
Case "04 - APRIL" :2229853.06
Case "05 - MAY" :2286594.60
Case "06 - JUNE" :2273131.89
Case "07 - JULY" :2192997.93
Case "08 - AUGUST" :2083988.42
Case "09 - SEPTEMBER" :1851888.57
Case "10 - OCTOBER" :1720331.72
Case "11 - NOVEMBER" :1158791.62
Case "12 - DECEMBER" :1089271.37
Default :0;)
ELSE 0;
I added a Default because I prefer to control unknowns than having Crystal do it and erring out unexpectedly.
Good luck,
Brian -
Limiting Columns in Cross Tab reports
Plz tell me how to limit columns in Cross Tab.I have many columns which go on and even are not visible for Scroll and neither in another page
Plz help.Check if http://winrichman.blogspot.com/2009/05/cross-tab-by-limiting-number-of-colums.html is helpful
-
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 helpPost 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 -
SORTING FOR THE CALCULATION FIELD IN CROSS TAB REPORT
LIST_G_AUCTION_TITLE>
<G_AUCTION_TITLE>
<BID_NUMBER>5002</BID_NUMBER>
<AUCTION_TITLE>E2E-01 Construction RFQ</AUCTION_TITLE>
<ITEM_NUMBER>C2631</ITEM_NUMBER>
<ITEM_DESCRIPTION>4G000,000,0STRUC,X,SPECIAL STRUCTURE</ITEM_DESCRIPTION>
<ESTIMATED_QTY>1</ESTIMATED_QTY>
<UNIT>LS</UNIT>
<QUOTE_PRICE>400</QUOTE_PRICE>
<ESTIMATED_QUOTE_PRICE>400</ESTIMATED_QUOTE_PRICE>
<SUPPLIER>X - L CONTRACTING</SUPPLIER>
my xml data is in this format, i created a cross tab report for ITEM_DESCRIPTION as row and SUPPLIER as column and calculated a sum(ESTIMATED_QUOTE_PRICE)
for all the ITEM_DESCRIPTION for every SUPPLIER in templete . now i need to sort the data by sum(ESTIMATED_QUOTE_PRICE) from lowest to higest from left to right , that is supplier with lowest sum(ESTIMATED_QUOTE_PRICE) should display first from left to right.
can any one help thanks in advance.thank you tim , for asking i got the solution. it is actually in template builder i was asking about. xml template builder
-
How to Capture a Table with large number of Rows in Web UI Test?
HI,
Is there any possibility to capture a DOM Tabe with large number of Rows (say more than 100) in Web UI Test?
Or is there any bug?Hi,
You can try following code to capture the table values.
To store the table values in CSV :
*web.table( xpath_of_table ).exportToCSVFile("D:\exporttable.csv", true);*
TO store the table values in a string:
*String tblValues=web.table( xpath_of_table ).exportToCSVString();*
info(tblValues);
Thanks
-POPS -
Cross tab design : x position based on number of columns
Hello everybody,
In my report, I have a group section for the country.
For each country and in the group header, I have 2 cross tab.
They have always the same number of columns (columns is period).
But 2 country could have different number of periods.
I need to have the 2d cross tab just near the 1st (right side) so I want to change x position of the 2d cross tab depending of the number of period.
I have try to use GetNumColumns but it doesn't work (always not supported), this is the same for other grid value function.
I'm not sure to understand why ...
So I have tried to calculate the number of row , using another group (period), but I can't summarize in a header.
I'm a little bit lost and need some new idea...
For information, my reports are based on a simple mysql DB.
Thankshello, i see that no one has responded to your forum post...is this still an issue?
in the Section Expert for the section where the cross-tabs are sitting, there is a Relative Positions checkbox wherein the cross-tabs will stay in a relative x postion to each other.
e.g. if you are in design mode and the cross-tabs are 1/2 inch from each other, when previewed, the 2nd cross-tab will start 1/2 inch after the 1st one stops.
cheers,
jamie
Maybe you are looking for
-
i got an itunes giftcard for my birthday and when i tried to add it on my balance on my ipod touch it says the code you entered is not recognized as a valid code. but i just got this card brand new for my birthday.
-
F110 - not able to make the payment error - Check amts -ex rate is too high
Hi Experts, While running F110 Iam getting the below error. The proposal runs fine. When I run the payment run the status shows "Payment run has been carried out" but no document has been generated. The log says- "Job started Step 001 started (progra
-
Quicktime Pro 7.7.5 save not working on win 7
Good afternoon, i have just purchased QT PRO to correct the H644 issue as reported here: http://www.videocopilot.net/blog/2008/06/fix-quicktime-gamma-shift/ The problem is that whenever I hit SAVE on QT PRO, no file is saved. I have tried to change f
-
Hello Gurus, I need a help. The below code is used in a BI-FIGL custom user exit. BSIS read statement. ABAP Code: Get Cost Center Accounting from BSIS table SELECT bukrs "Company Code gjahr "Fiscal Year monat "Fisca
-
Home sharing wont show my library on ether laptop
Im trying to share some of my tones with my boyfriend who also has an iphone. i have done it before with my sister's tones , but i cant get home sharing to show my library on his laptop and his wont show on mine