Cross Tab - Suppress info
Post Author: llcoolt
CA Forum: Formula
I just created a cross tab report that works beautifully, with one exception.... I want to suppress one of the column headings. How do I suppress ONE column sumary and it's heading? The heading is called "Job Cost" and is further defined as any cost code that <> ["61" to "76"], if that helps.
Thank you for all of your help.
Post Author: V361
CA Forum: Formula
go to crosstab expert, you should be able to click on the fields you mentioned and just suppress them.
Similar Messages
-
Suppressing levels in cross tab.
Hello All,
I have a project requirenment for one of the client and currently using CR 2008 for creating dynamic reports based on a finance database for profitabilty Analysis. I have been using lot of Web-Elements functionality in my crystal application and its going good to an extent, the only issue i have been experiencing is the dynamic change of the cross tab data based on prompts.
Its a 4 level application where in users are prompted to select a specific level outta the 4 levels, they can select either few or all. Now, the issue is, in my cross tab i have mentioned all the 4 levels in my row field and the data is displayed according to the users selection through prompts, it works fine. But however if user does not select level 3 or 4 or any one of them then the specific cross tab row is displayed empty. I have tried selecting the option suppress empty rows under customize tab but that doesnt seem to work.
I want only those levels to be displayed which are selected by users and suppress the rest, the empty rows in cross tab looks kinda odd to see. I am unable to figure out the formula string for the same.
Any help will be appreciated. Thank youHi
Cross tab is nothing but a tabular representation of data.
It displays zero values only when there is no data for the combination of corresponding row and column.
We can not suppress this however we can display some string like "No data for this" or something else as per requirement.
For this, do the below:
- Right click on the summary value field on the cross tab -> Format Field.
- Under Common Tab, click on X-2 for Display string. This would open the formula editor.
- Put the below formula there:
if IsNull(summary database field) then "No data for here"
else "" & currentfieldvalue;
You can change the display string as per requirement.
Hope this helps!!
Regards
Sourashree -
Problem using a conditional suppress in a cross-tab ?
is there a problem using a conditional suppress in a cross-tab on a row or summarized field in crystal XI?
I am using the following conditional suppress on a summarized field and its rows
If {@SortCode}=4 then true;
Sortcode is a group sorting formula field
the summarized field is a formula field as well.
All of the summarized fields are suppressed although the cross- tab performs correctly on @Sortcode and the summarized field when not using the condition
it seems to me to be a reporting flow issue although i've included "whileprintingrecords" and "evaluateafter" with no success.
i have also moved the cross-tab from the report header to group header and applied a conditional suppress on the group header through section expert.
this supresses the group i dont want but includes grand totals for each group and also varys the number of columns
i can't filter on sortcode because one of the grand total calculations requires those records and a subreport or second cross-tab does not contain the same number of columns
the cross-tab is necessary as a client may have columns spanning one to many pages
thanks for your helpHi I have a similar problem,
I have an clock in solution, where i have some dates with data such as, various entries for a date eg, 01/11/2010 1hr, 01/11/2010 3 hrs etc, 03/11/2010 2hrs , 05/11/2010 4.5hrs, 05/11/2010 4 hrs so i need total for each day and highlight only those days, where total is less than 4.5, including days which donu2019t have records eg 02/11/2010 & 04/11/2010, I summarise in totals using a cross tab, to get summarised output for each day as,
Totals
01/11/2010 4
03/11/2010 2
05/11/2010 8.5
in order to get the dates which didnu2019t have records, i added a dataset from Excel spreadsheet where i just have a sequential dates for the year , and use record selection to select only those dates in range which i need to display, so the result i get
01/11/2010 4
02/11/2010 0
03/11/2010 2
04/11/2010 0
05/11/2010 8.5
so far so good, all using cross tab, now i want to suppress rows which have total > 4.5 so the result should be
01/11/2010 4
02/11/2010 0
03/11/2010 2
04/11/2010 0
How can i do that? -
Re: Suppression Code in Cross tab Report
Hi All,
I am working with a cross tab report which has location descriptions as rows and dates as columns and the revenues as the summarized field.
Now I have over 7 locations without revenues and I need only 3 of them for suppose 'LOC X' 'LOC Y' 'LOC Z' to be suppressed.
How can i Suppress only those 3 locations.
Can any one help me with code please.
Thanks In Advance,
NaniNani
Can you use the "Suppress empty Rows" from the Customize Style tab in the CrossTab Expert?
Also, if your datasource is a Stored Procedure, you can filter them out there.
Edited by: Marty Reyes on Jan 3, 2011 10:52 PM -
Suppress values in Cross-Tab and Cross-Tab Chart if null
I am developing a cross-tab report that has no-values contributing to the summary in a number of cells. For instance, if I were to display the average value for the testing of particle-counts by the day of the month, and no testing was performed on a particular day, then I would hope that the cell would be blank and a plot of the cross-tab would just omit that data point. However, Crystal interprets this as a 0.00 instead of NULL, and the plot (incorrectly) includes the zero-datapoint.
I can suppress the datapoint in the cross-tab if it's zero, but that isn't correct either (as, sometimes, zero will be the correct answer). Even then, though, I cannot suppress the datapoint on the plot.
Anyone have experience with a workaround for this?
Thanks - TimBTW...I found that I can work-around the plotting issue if I convert the chart to a "Group" type (instead of cross-tab). It will then ignore the null-values. Still thinking about cross-tab displaying zero for a summary value when it is working with no data.
Suggestions? -
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? -
Cross-Tab - conditional suppression and formatting
I have a cross-tab report of "widgets" sold. There are $10 widgets, $20 widgets, and $50 widgets. All widgets will always cost some round dollar amount, never anything like $10.99. My report shows weekly, month-to-date, and year-to-date sales for each widget denomination by both count and total amount by state. For example:
$10 $20 $50
count amount count amount count amount
New York
Week 5 $50 4 $80 1 $50
MTD
YTD
Delaware 1 $10
etc.
I also have totals by row, along with mark-up amounts (11% of gross sales amounts) and net sales (gross - mark-up). These last 3 columns are included in my dataset, not calculated in the cross-tab.
My problem is that I can't figure out how to do 2 things:
1. the count columns for mark-up and net will always be blank, so I want to suppress the "count" column header
2. I want to display the dollar amounts for those 2 columns with 2 decimal places, but the other amounts with no decimals.
Can this be done, and if so, how?
Thanks!
PhilHi Phil,
I also found the following information under Cross-tab Help for suppressing rows or columns. I hope this is what you're looking for. Sylvie
To suppress empty rows and columns
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 either the Suppress Empty Rows or Suppress Empty Columns check box.
Click OK.
Now, when you print the report, empty rows and/or columns will not appear.
To suppress row and column grand totals
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 either the Suppress Row Grand Totals or Suppress Column Grand Totals check boxes.
Click OK.
To suppress subtotals and their labels
If you have more than two groups in your Cross-Tab you can suppress the subtotal and label for one of them.
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.
Click the field whose subtotal you want to suppress.
The Suppress Subtotal and the Suppress Label check boxes become active.
In the Group Options area, select the Suppress Subtotal check box.
Click the Suppress Label check box to suppress the label associated with subtotal.
Click OK. -
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 reportTry 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 -
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
PhillipThanks 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 -
Post Author: Bill
CA Forum: General
I filter the data and produce a report, chart and cross tab. Now what I want to do is add a second cross tab, this one in the report footer. This second cross tab needs to be based upon a subset of the report's data. I tried adding a formula to the Section Expert>Report Footer>Suppress (No Drill down). Tried several different methods but the cross tab either shows all the data or none.
Is this the correct method?
Any help is appreciated. Thanks.Post Author: Bill
CA Forum: General
I should have added that if I put the following in the Detail formula of the Section expert:
{SurveyAnswers.SelectionAnswer}="Strongly Agree" OR {SurveyAnswers.SelectionAnswer}="Agree" OR {SurveyAnswers.SelectionAnswer}="NEUTRAL"
The the 3 above answers are excluded from the detail and I get the info I want the footer cross tab to be based upon. Putting the same filter formula in the report footer and running the cross tab returns all the (unfilterded) data.
There must be a way to do this but I'm stumped.
Again, suggestions are appreciated.
wal -
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 -
Hide Column in Cross Tab Report
Hi guys,
I have an issue with the Cross Tab in CR2008.
I'm using 2 columns to calculate an other column, but these 2 columns should not be displayed in the report.
I tried to suppress the column but it still shows a white space.
I tried to change the column width, but it cant get it smaller then 0,113.
Can anyone tell me how to set the column width smaller using a formula or how to suppress the whole column.
Thanks in advance.
WilliamHi William,
Instead of using all 3 columns in the crosstab, just drop your main columnn on.
In the Design window, not the Crosstab Experrt, right-click the summary field and select Format Field.
In the Common Tab, open the formula for Display String.
Now you can take the value of your summary using the CurrentFieldValue and make your total. You may need to summarize the supporting numbers to calculate properly but it should work here properly.
I've used this for things like running totals and repeating values between rows.
NOTE: This formula only returns a string so make sure you format your final value as a string.
Good luck,
Brian -
Shared Var in Cross-Tab Design
Post Author: bkormoski
CA Forum: General
I have a cross-tab design that requires me to used shared var from a subreport. The SV formulas are not in my available fields in cross-tab wizard. What other choices are there?
I am creating a summary financial statement that requires information from multi tables - because they are not directly related I am creating SV's to get the info I need. Any ideas welcome. THANKsPost Author: RichardN
CA Forum: General
I'm having a similar problem. I've created two variables in the main report
PLACE:
WhilePrintingRecords;Shared StringVar VPNum;VPNum
VENDPROD:
WhilePrintingRecords;{@Place}
I can insert VENDPROD into my cross-tab but the field is blank. On the details line, boty PLACE and VENDPROD display the correct (string) values. I've placed the Cross-Tab in both the Report Header and Report Footer sections and the VENDPROD field is always blank in the cross-tab. What am I doing wrong?
Thank you,
RN -
Calculations based on Summarized data in Cross Tab
First off, I'm pretty experienced with Crystal.
I've run accross something that seems like it should be realy easy to do, and the sort of thing you would expect to do in a cross tab... so maybe I'm missing something totally obvious.
I'm doing a year over year comparison of some financial data broken down by month and by quarter.
So, my Rows are Quarter, and a field called 'YEARMONTH' (calculated field, YYYYMM, for ease of sorting)
My column is Year, and for summarized fields, I have the data field I'm interested in which is a float. Let's call it 'Dollars' for sake of argument.
What I want to do is create a summary field (next to the total field) called 'Difference' or 'Delta' that calculates for reach row the difference between my two years (2008, and 2009)
The only solution I can come up with is to dummy in a record from the datasource with a year value of 'Difference' and some other dummy values so that it will show up as a column on the cross tab, and then somehow use the currentrowcolum function or some such creature to mask the output in the column. but now that I type it out here, I'm not sure it's going to work. I also don't think it's going to export the way I want it to either.
I'd really prefer it to be in a cross tab, and not in some manually created cross-tab emulation using manual running totals, but I'll go there if I have to.
Thanks a ton!This is what I did in my report to get the difference
my crosstab looks like this
2004 2005 Total
Total T1 T2 T
USA A B C
INDIA X Y Z
right click on T1 and go to format field and write the suppress condition like this
numberVar d:=0;
currencyVar array arr1;
currencyVar array arr2;
numberVar e;
if GridRowColumnValue('year')=2004 then
(e:=e+1;
redim preserve arr1[e];
arr1[e]:=CurrentFieldValue)
else
(e:=e+1;
redim preserve arr2[e];
arr2[e]:=CurrentFieldValue);
false
right click on T and go to format field and write the Display string condition like this
currencyVar array arr1;
currencyVar array arr2;
totext(arr1[1]-arr2[1])
right click on A and go to format field and write the suppress condition like this
currencyVar array four;
currencyVar array five;
numberVar d;
if GridRowColumnValue('year')=2004 then
(d:=d+1;
redim preserve four[d];
four[d]:=CurrentFieldValue)
else
(d:=d+1;
redim preserve five[d];
five[d]:=CurrentFieldValue);
false
right click on C and go to format field and write the Display string condition like this
currencyVar array four;
currencyVar array five;
numberVar g;
g:=g+1;
ToText(four[g]-five[g])
Note: Please select the option "column totals on top" for crosstab in customize style
Hope this helps!
Raghavendra -
Hierachichal display is not coming for field in cross tab crystal report
Hi,
I have a dimension "Cost center" in DSO on which Hierarchy is defined in SAP BI.
When I developed one cross tab report on this DSO, values for Cost Center fields are displayed in flat mode and not in Hierarchical mode.
I also set group option on this "Cost center" field in report And in Report menu "Hierarchical Grouping option" also check box ticked for "Sort data hierarchically" and also selected Instance id field.
how to get this?
**Note: same problem when report is developed on Infocube.*+
Please help me.
Thanks,
Dhana.Hi Dhana,
I've created a similar report to show matrix WBS x RBS, and WBS are grouped hierarchically.
My report developed in this way:
- I've created Hierarchical group located in detail section of report. In detail section I've put the row field of cross table.
- I've suppress all this section: group header, group footer and detail
- I've created the cross table in Report Footer
The report show correctly
Regards
Sandro
Maybe you are looking for
-
Help with a Program I am writing! Please!
Hello All, This is my first post...I hope to find some answers to my program I am writing! A couple things first - I am 17, and have designed a comp. science class for myself to take while a senior in high school, since there was not one offered. My
-
Mass Maintenance of freight rates
Hi, How do I mass maintain the freight rates (TK 11, 12, 13) We presently have rates ( about 2000) from one carrier X -Y 01/01/2010 - 01/31/2039 I want to expire the rates by the end 02/27/2011 Is there any transaction for mass expiring of rates inst
-
Need details of CLOB problems solved by new drivers
Hi all. I found a Tech Note on the Adobe site about updated drivers: http://kb.adobe.com/selfservice/viewContent.do?externalId=42dcb10a&sliceId=2 In the Notes section (near the end), it states, "Oracle users should use the latest 3.5 drivers for Orac
-
Cust master,Vendor master standard LSMW prog name?
Can anyone send LSMW Customer master,vendor master standard programs name?
-
Help. As I download Skype all goes well until the very end when I get an error code 2738. The skypw wuindo appears on my desktop, but it just says skype, tools, and help on the left hand corner and nothing else. Very frustrating.