Crystal Reports suppress 0 in Pie Chart - crystal-reports

Thanks in advance for any help,
I have a Crystal Report made in Crystal Reports 2011. The report does a simple select from a view and uses about 6 of the columns.
In 2 consecutive sections there is a Cross Tab and a Pie chart, both reporting on the same formula field. The formula for the field is as follows:
iif( IsNull({IROView.OVERTURNREASON})=false, {OVERTURNREASON},"")
Basically, if my value is not null, I get the value, and if it is, I get an empty string.
In the Cross Tab, under the Customize Style tab, there is a Suppress Empty Rows and Suppress Empty Columns check box. I am looking for something similar for the pie chart because even though there is no slice for the empty string, the legend has a an entry for the blank string with the value 0 (or 0%).
Thanks again,

You may want to consider updating the charting engine to use the latest version of CRChart. Three-D Graphics wrote the original component for SAP (nee BusinessObjects nee Crystal Decisions nee Seagate Software); they own the source code. The #HIDE_ZERO macro would probably do exactly what you need to have done.

Related

Is it possible to adjust the amount of columns (left to right) in Crystal Report based on user input?

I am trying to get crystal to print the details field from Left to Right to an excel spreadsheet output, rather than from the top of the page to the bottom. Setting the details section to 'Format with Columns' and using the layout option of 'Across then Down' doesn't seem to acheive the effect I am looking for. I want to create a given number of columns to the right based on user input passed into Crystal parameters, but I can't seem to find anything within crystal reports that will allow this.
Is it possible that I'm missing something simple, or does Crystal Reports lack the functionality to accomplish columns/rows being generated from left to right rather than up to down?
Thanks in advance for any help!
No such functionality in Crystal alone but you can take control of the Excel output logic using a UFL (User Function Library) allowing a detail-level Crystal formula to write to a specified Excel cell. As the formula progresses through the detail rows, it would increment column/row targets based on the Columns parameter.
You can create the UFL yourself. Alternatively, at least one of the 3rd-party UFLs listed here provides such a function.

Formatting Excel Output of Crystal Reports with Multiple Subqueries

I've put together a summary report in Crystal Reports 2013 that has about 10-12 subreports. Each subreport is a fairly basic query that produces one or several lines rows and columns of data. I'm using SAP's Central Management Console to produce the reports, with the output an Excel output.
My problem is that my excel output is coming out unstandardized i.e. random extra empty rows and columns, data and header mismatches, different widths of rows and columns, etc.
I've been messing around with the formatting setting w/in Crystal Reports (standardizing size and shape of subqueries on the preview screen, supressing empty areas, etc.) but can't come close to getting the Excel output to look the way I want.
Is there a specific export formatting function/area within Crystal Reports that will allow me to design the export in the way I'd like? And if not, are there any ways to format multiple subqueries w/in Crystal Reports so their format in an Excel export is uniform?
If i really understood your issue, you have troubles with the alignment of data, cells and stuff like that in the spreadsheet, is it correct?
If so, the solution is to review the align of your fields in the report. It is very boring. You can use some functionalitis like:
right click a field and use "align to grid"
select two fields, right click and use "left align" and "top align"
change the property "gridsize" of the "report" to a higher value and use the keyboard to position the fields.
Avoid empty spaces between field at most.
Keep your eyes on the rulers.
Furthermore, check the version of Crystal Reports you are using. There is a good improvement about it from version 11 to 13.
Exporting to Excel seems a bit qwerky because the same steps do not necessarily work for all reports (my experience at least). Keep this in mind when reading the following steps. Perform the following steps on both the detail(footer if using grouping) and header rows where applicable:
Choose driver “Microsoft Excel(97-2003)”
Make sure the header and detail sections have no spaces in between the columns
Make sure the header and detail column boxes align perfectly (should see red crosses when alignment is correct).
Select all fields on the row, right-click, align to top (if this does try aligning to grid)
Right-click to the left of the detail columns and “Select All Section Objects”
Right-click in the same location and choose “Arrange Lines” then “Fit Section”
Perform steps 4 & 5 on the header columns as well
Open Section Expert, select “Suppress Blank Section” for all unused sections
If none of the above work, use driver “Microsoft Excel (97-2003) (Data Only) “
Headers will still appear in the report but will not be in bold

Troubles with IsNull Crystal Reports

I'm using Crystal Reports 12.3 and Peachtree Accounting 2012 to manage some database. My task now is simply make a report that contains customers that have not placed orders in last 30 days. I'm new to it so I'm asking your help.
My first trying was to use this formula (I'm doing all my stuff in Formula Editor -> Record Selection):
not ({Customers.LastInvoiceDate} in Aged0To30Days)
Everything seems to be fine except null values. I need to include in report records with null values. So I rewrite the formula to:
not ({Customers.LastInvoiceDate} in Aged0To30Days) OR IsNull({Customers.LastInvoiceDate})
But in Peachtree Accounting 2012 I'm seeing a customer with a blank LastInvoiceDate field which is not in report.
Is there some kind of bug in my last formula? Or is there some "other" black values for DateTime type?
You should always check for nulls first, so try reversing the second formula to
isnull({Customers.LastInvoiceDate}) or not({Customers.LastInvoiceDate} in Aged0To30Days)
If Crystal encounters a null and it is not explicitly handled first, then the rest of the formula will crap out and not evaluate. Another way to get around this is to tell Crystal to use 'Default Values for Nulls' instead of 'Exceptions for Nulls' in the Formula Workshop (It's a dropdown setting in the Formula Workshop toolbar).
length(trim({Customers.LastInvoiceDate})) = 0
One statement with no need for isnull function and OR operator.

Crystal Report - Placing decimal point

I'm getting an integer value as 2345 but I want to display it as 234.5
is it possible??
To get what you are looking for in a simple fix is like what kingpin stated above. Divide the value by ten. To do this just create a new formula in crystal by going into your field explorer and right clicking on the formula fields section. Under there should be a option to create a new formula. Then in window that comes up put the field you want to manipulate in the formula and then divide that by ten. And there you go. Now use the formula field in the report instead of the original field.
Here is a example of how it could look.
{Table_Foo.value_Bar} / 10
There is a field property for it. Don't have access to crystal reports at the moment, but I know it's there:
Crystal Report Provides an easy to use default thousand separator for numeric Fields. You can use it by checking Thousand Separator from Field Properties.
If you need a customized separator, check Customized Thousand Separator in Crystal Report.
You also might want to find some tutorials on the Crystal Reports themselves if you still have trouble.

Removing currency format in Crystal Reports pie chart legend

I'm using Crystal Reports for VS2010 and am creating a pie chart report. I can get the chart to format OK, however I'm having two difficulties:
I'm showing the values and the percentages in the legend, however the values are being shown with a currency symbol, which I don't want. I've checked all the chart properties and none of the formats are set to currency.
I'd like to display the legend in descending order of percentage. Presently it's being shown in label order.
Any help appreciated!
Ideas for #1:
Try right click chart | Chart Options... | Legend | Show Values - not sure this will work
Create a formula that converts currency into a number, use this formula in chart instead of currency field
Ideas for #2:
Select Report | Group Sort Expert... | All | Descending (works in CR v11)
CR isn't THAT horrible. Well, maybe... ;-)
Anyway, I ran across this in the CR Designer when a user called in a panic about a report that someone else had developed. The only format choices the designer could get were % or $ - neither were what was specified: just straight count.
I took couple of runs at formatting the legend, right-click chart options, etc. and got nowhere...
In CR Designer, tho', there is Chart Expert, with a tab Options. In the left-hand side of Options, midway, there is a section called "Data points". In Data points, you can select wx to have labels for each slice, or values, or both.
If you Check Values, you can then select the format for the value. This will change the format of the legend, also.
Afterwards, you can UN-CHECK Show Value, the legend keeps the format.
I know this post is old, but i found it while trying to find a solution(unsuccessful) But did some tinkering and found that if you edit the series occurrences and then show values and then turn values back off for the series it takes away the currency value.
Similar to what was suggested prior with "Data points" just i guess the new way to find it.