Cross tab column issue
I have a cross tab report that has three column fields. I want to design the report such that when the outer most column (1st column) field get repeated again it should appear at a certain gap from the first one.
By default crystal report shows all the columns joined together with no space in between.
e.g lets say that column has three values A,B and C. I want to have the cross tab report to have gaps between these three matrices that get displayed. i.e. A with its sub columns and summary values then a slight gap followed by B with its sub columns and summary values and so on.
Please Help.
Is the show cell margins option checked or not.If unchecked please check it and see the results.
If this doesnot work you can right click on the summary field and in the Display String add formula
" "+CStr(CurrentFieldValue)+" "
Hope this helps
Regards
sjain
Edited by: sjain on Nov 6, 2009 6:04 AM
Similar Messages
-
Crystal Reports 10 Cross Tab Report Issue
I created a Cross Tab Report with multiple rows of data. It has two columns to return data for Year 2008 and Year 2009. When reading the database the report does not return data for rows that have a result of 0 in both columns even though Suppress Empty Rows is NOT checked in the Cross Tab Expert Customize Style Tab. Any suggestions as to how to get all of the rows to display including those with results of 0?
I'm guessing that your issue is that "results of 0" is really a lack of data, not that something is there and is summing to zero.
In that case, you need to base your report on an SQL Command. Take the SQL that the report is currently using, and UNION it with another select statement that returns all of the rows that you are looking for with zero values; something like this:
UNION
select category, 0 as PY_Value, 0 as CY_Value
from categories
This will cause the data to be there, which will cause the rows to display on the cross tab.
HTH,
Carl
(Resolution for 2010: Count the number of times this question is asked! :->) -
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 -
Cross Tab Column Header and Embedded or Calculated Member
Hello All
I am needing some help with a Cross Tab in CR2008.
My Cross Tab look as follows:
Rows______________Columns
......................................Fiscal Year
Account Number...........Summarized Field (Value Field)
The report spans three Fiscal Years but not all accounts have three Fiscal Years worth of data so some Cross tabs start 2009, 2008, 2007, Some report 2008 and 2007, Some just 2007 (and other variations). To get my cross tab working correctly I need to create a formula that get the CurrentColumnIndex based upon the Fiscal Year. e.g. If columnd header = 2009 column index = 0.
Can anyone advise how I would go about this?
Thanks
PhillipPhillip, go to your data source, and see if you can add a new connection,
one of those options should be (Command)
if you can add a Command, then you can put the SQL in the command section.
You will need to add the Command as a data source, and remove the old
data source once the command is added, you will be able to edit it if needed. -
Hi
I created a cross-tab report in Bi Publisher, the sorting in the column names is sorted in alphabetical order. How do I customize this in the order I expected?
Thank you in advance,
JeanThank you Jorge!
I used the pivot table to create the template in word. I check the link and it is what I need. But the template I created is so different. I am very new to BI Publisher. the following is the what I have in the field browser:
crosstab:c547;"//ROW";"ETHNIC{,o=a,t=t}";"S_TYPE{,o=a,t=t}";"EMP_ID";"count"?>
<?horizontal-break-table:1?>
<?for-each@column:$c547//C1?>
<?./H?>
<?end for-each?>
<?for-each:$c547//R1?>
<?./H?>
<?for-each@cell:.//R1C1?>
<?./M1?>
<?end for-each?>
<?./T1?>
<?end for-each?>
<?for-each@cell:$c547//C1?>
<?./T1?>
<?end for-each?>
<?$c547//M0/M1/T?>
How do I make the S_TYPE in my order, like the sample you gave me (Wednesday before Thursday)?
Thanks,
Jean -
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 -
Cross tab column headers display on all pages
I made a Crystal Report with a cross tab which displays all details. In the cross tab I have 6 columns with details about the data displayed in the last 2 columns. The headers of these columns are only displayed on the first page but not on other pages. How can I add column headers to all pages? Thank you.
Column headings should be repeated automatically, row headings can be repeated by
1.right-clicking on the row header
2. select Row options
3. .select Repeat Labels on Page break
or, when I just reviewed it in the help section it says:
"When you create a Cross-Tab that is wider or longer than the specified page size, the program automatically spans the printing across enough pages to accommodate the size of the Cross-Tab. In the Preview tab, a line will appear at each page break. For ease in reading, column headings will be repeated on subsequent pages. Row headings can also be repeated using the Keep Columns Together option.
To repeat row labels
Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
The Cross-Tab Expert appears.
Click the Customize Style tab.
Select the Repeat Row Labels check box, if desired.
Crystal Reports lets you designate report objects that don't expand horizontally, such as text objects, field objects, OLE objects, charts, maps, lines, boxes, and so on, to be repeated on each additional horizontal page that a Cross-Tab creates. For more information, see Repeating report objects on horizontal pages." -
Post Author: forumguy
CA Forum: General
Hi Guys,
I am using crystal 10. The cross tab is in the group.
It was giving me a blank page in the middle of the report. So, unchecked the "Keep together" in the section expert in the group. And the Blank page was gone. But now with "Keep together option" unchecked, it gives error " Error formatting the cross tab" after one particular page.
Is there any other way to remove that blank page ?
Appreciate ur comments.
ThanksCreate a manual crosstab report
-
I have 2 crosstabs that read from 2 different columns in my database. the values in the columns range from 0 to 5 however are not always present. I need for the column headers to always be 0,1,2,3,4,5 even if there are no 0's or 3's etc in that column so that the 2 crosstabs will always line up.
my crosstab shows the % of the total count that the 0-5 is in that column, so if there are no 0's i need to show 0% in the 0 column. Currently the crosstab only shows the columns that there are values for.
So how can I set a static number of columns for 0-5?this is a duplicate thread. you should close it.
Edited by: Debi Herbert on Feb 24, 2011 1:17 PM -
Cross Tab issue , Need a Help
HI Expery
In BO Webi report need to show dynamic columns in Report after transposing rows to columns.
Data in Table is like below:
Col1 Col2 Col3
101 Abc 801
101 Abc 802
101 Abc 803
101 Abc 804
101 Abc 805
102 RNM 2009
102 RNM 2010
102 RNM 2011
103 RYZ 3465
In Report It should be as
Col1 Col2 Col3 Col3 Col3 Col3 Col3
101 Abc 801 802 803 804 805
102 RNM 2009 2010 2011
103 RYZ 3465
We have tried implementing the same using cross tab , but issue is in Cross col3 grows with all values present for all records. Here, if we use cross tab we are getting result as below:
Col1 Col2 Col3 Col3 Col3 Col3 Col3 Col3 Col3 Col3 Col3
101 Abc 801 802 803 804 805 2009 2010 2011 3465
102 RNM 801 802 803 804 805 2009 2010 2011 3465
103 RYZ 801 802 803 804 805 2009 2010 2011 3465Hi Ahmed
You can use the below logic.
col1 & col2 u can keep it as columns in a cross tab. Now keep col3 as row but here you need to do one thing . Click on the formula button for col3 field and then write the following syntax in it.
= col3 IN ([Col1];[col2])
By using this calculation context it will fetch only the data which is related to the first two columns. so the extra data which u were mentioning about will got to the next row.
Regards
Shyam
Edited by: Shyam Rapeti on Jan 25, 2012 3:20 PM -
Hi all,
Could any one provide me a solution to hide a cross tab column.
My cross tab has the Dimension in the rows and date values in the columns
Dec'06 Dec'07 Jan'08 Feb'08..........Dec 08
DIM1 20 10 35 28 26
DIM1 30 20 15 14 22
Some reason am bringing Dec'06 data and this data is coming from the universe.
So now I would like to hide this Dec'06 column in the cross tab how can I achieve this?
or is there any solution to hide first column in the cross tab?
Any help would be highly appreciated.
ThanksHi all,
For this I just created a variables as below first for Prior Prior year end as I always need to hide prior prior year Dec data so created a variable as below
Prior prior year end=ToDate("31/12/"+FormatNumber(Year([Date]);"0000");"dd/MM/yyyy")
after that created another variable like
If([date]=[Prior prior year end];"Y";"N")
Now created a filter saying filter cal date="N"
It is hiding all the years december data but I only want to filter only prior prior year end
any help pls
Edited by: VP S on Feb 10, 2011 5:21 PM -
Dynamically color to each column in Cross-tab report
Hello All,
I am a newbie in Crystal report,from last few weeks, i am working on cross tab crystal report.i have a requirement to show color dynamically for each column.i am adding an attachment how i want it. i tried dynamic coloring using object field formula but it is showing red color to all data.i want red color data when in 2nd cross tab report data is beyond upper or lower limit in first cross tab table. it will be very helpful if somebody will give me any clue on this.... i read so many articles now it seem like impossible for me..:(
i am using visual studio 2010 and sap crystal report version 13.0.0.99 for visual studio 2010.Hello Manish,
I have attached a sample report that does this. You will need to remove the .txt extension from the attached file to open it as an .rpt file.
Please right click on one of the value fields of the first cross tab in the report > Format Field > Common > Suppress if Duplicated conditional formula.
The nested formula is as follows;
numbervar array l;
numbervar array u;
numbervar x:=CurrentColumnIndex;
if GridRowColumnValue ('@limit') = 'lower limit' then
(redim preserve l[x];
l[x]:= tonumber(CurrentFieldValue))
else if GridRowColumnValue ('@limit') = 'upper limit' then
(redim preserve u[x];
u[x]:= tonumber(CurrentFieldValue));
false
So it assigns each lower and upper limit value for each client (in the sample it is country) to an array using the cross tabs column index to index the array and it ends in False as we don't actually want it to suppress if duplicated. This nested formula is just used to generate the arrays of upper and lower values.
In the second cross tab if you again right click on one of the value fields > Format Field > Font > Color you will see the following conditional formula;
numbervar array l;
numbervar array u;
numbervar x;
if not(tonumber(CurrentFieldValue) in l[CurrentColumnIndex] to u[CurrentColumnIndex]) then
crred
else
crblack
So this compaes the current field value to range generated by the 2 arrays and assigns a color based on whether or not it is in the range.
Regards,
Graham -
Displaying other columns/tables apart from a cross tab
Hi,
I designed an RTF template. This contains 3 tables. First table contains the invoice information. 2nd table is the cross tab and 3rd table contains the aging details. My requirement is to print the other tables in all pages if the cross tab goes to multiple pages. Presently all the tables are displayed in the 1st page only. If the cross tab output goes to next page then the 1st and 2nd tables are not being displayed in other pages.
Can anyone suggest me how to display the other columns/tables apart from cross tab columns if the cross tab output goes to multiple pages.Can u plz send me the sample xml and the template so tat i can help u frm my side...
-
Unwanted extra column in a cross-tab at run-time
Hi all,
I have a question about using a cross-tab on a report. I have a web page with the report and for the cross-tab column data I have selected some data from an array I supply to the report. At run-time, when I call SetDataSource(data) for the report and look at the data there is only 2 items in the array for the column data. When the report is displayed the 2 column names and values from the data appear correctly on the cross-tab but I also have a third column. The third column has no name and has a value of 0.0.
The actual data I am associating with the column is the time member of the CategoryTime[]. Any ideas on what could be causing this?
public class ResourceActivity
public string resourceName;
public CategoryTime[] categoryTime;
public class CategoryTime
public string categoryName;
public float time;
Thanks in advance for any help
JohnNJohn,
It sounds like there might be a null record returned and the crosstab is generating a column for it. You could try suppressing blank columns in the crosstab expert or filter out nulls in the record selection -
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,
AdamRight click on the section where the two crosstabs placed and go to section expert and check the option "Relative Positions"
Regards,
Raghavendra
Maybe you are looking for
-
I've reset Safari's databse storage memory to 100meg and Adobe still asks for permission. This last time it was for 5 meg! What's wrong with this annoying program! Or what am I doing wrong?
-
Need a report for O[pen Purchase orders
Hi All, Is there any standard report for open Purcahse orders for particular plant, my client requires one report of open P.O quantity to know the stauts, like 3 senerios example there is P.O No -100, and 3 line items l 10 - X - 10 Nos deliveird 10 N
-
Hi: What is Active Vendor List
Hi, What is Active Vendor List. What type of report it is , and what type of tables and feilds are include inthis. plz send the responce
-
I understand that you can get reporting for domain-based reporting but I am unsure more on more of the differences on these type of reporting. can anyone please list all of the reporting options and the benifits... such as Domain-Based Executive Summ
-
i want to create pdf from uiview but the quality of generated pdf is poor.How can i create high quality pdf.