Sorting summarized field into bins - crystal-reports

I have created a report grouping on the Finished Goods Item Number field fg_item_numb. It contains the columns Fg Item Number, invoice date, invoice #, Qty invoiced.
I have created a formula field # of days invoiced, which calculates the number of days we actually invoiced each item.
Distinct count ({#date invoiced,{invlin.fg_item_numb})
I have a list of items numbers and the number of days each item was invoiced.
Now I want to sort the items into bins based on the # of days invoiced (e.g. <50, 51-100, >100).
However, Crystal won't let me calculate these using the # of days invoiced field.

Related

Crystal Reports Crosstab Summary Row Count of Subset of Data

I have a crosstab report that counts the instances of records (that I have previously filtered via the Section Formula Record method).
I would now like to also include a second count of the records that are a subset of the original set of records.
IE In my booking app, I have a count of all the booked seats in a restaurant, I would now like a count of all the seats that were booked online. (and of course this is all grouped by restaurant at the top and then each row is the day.
I hope that makes sense, - thanks in advance.
Create a formula such as IF <Booked_Online> Then 1 ELSE 0
Then, SUM that formula to get the count of booked online.

How can I deselect an entire group based on the value of one member of the group?

We have customers that order product on an annual basis. I have a report that needs to show only customers and related orders that have NOT placed an order in the current year. I filter all orders down to the current year and the year prior.
Right now, if a customer has orders for last year, I want them to show on the report, but once the customer places an order for the current year, I want both the current year order and the prior year orders to drop off the report.
Our salespeople use this report to manage the customers that need to be contacted in the current year. Once the report is empty, they are done for the year.
I know how to suppress the rows based on the value of a single member of the group, but suppressing them does not remove them from the summary calculations, so I need them to either disappear, or I need to be able to change all values to zero for that customer once they place a new order.
Thank You.
I created a running total field to trap the current year.
If Year(#Date)=2019 then 0 else Qty
When I put the formula into a qty formula, I get the "Summary has been specified for a non-recurring field"

How to Sum the values of a field based on month and year?

Crystal Report
Report
The report shown have two fields month and year. How can I sum the values of Count field after every month?
You can use Running Total Field that available at the field explorer
1) The name of the field. Let say {Table A.Count}
2) Choose SUM

Crystal Report Gauge On Change of Date Period

I have a Crystal Report where I am using the 'gauge' chart to display On Time delivery for a business. The Gauge requires an "On Change Of", but I ahve two seperate values I want to display on the same gauge, one for overall and one for the last week. I can do this, by creating a null formula and setting the OnChange of to that, but then the needles are the same color. Any thoughts on how I can get one needle for overall and one needle for last week?
My Table is just a list of Manufacutring Orders with Due Dates and Completion Dates. I use a formula to decide if the order was on time, if it was I print the Order Number. Then I use a summary field with a distinct count of order numbers to determinie the total number on time orders. This divide by the total distinct order counts and then I get a percentage for OTD...
Okay this one deserves some more explanation. For each detail, which was essentially a list of sales orders, I had a date requested and a date completed. From those two fields I calculated a third field that returned either "On Time", "Late", or "3 Day Window" and I wanted to display a gauge chart of all records On Time.... Our OTD %
In addition to this I wanted to display the weekly numbers versus the numbers prior to that week. To do this I created a fourth column that returned either "This Week" or "Historical". I could now do a Multiple gauge type chart for each record with an on change of OTD State and Weeklyorhistorical. This produces side by side gauges labeled correctly with historical and weekly OTD.

How to detect if a table has rows in crystal 2008

Is there a built in crystal method to detect whether the a table in a crystal report has any rows?
I have created a sub report which has some Title text in the header and a detail line with the table info.
I want to be able to supress the title text from printing if there is nothing to print.
Also, is there any way to pass this to the "master" report so that I can suppress printing the sub report completely if there is nothing to print?
Regards
Use Count() function.
Use it with one of your data source fields.
from Crystal Reports 2008 Help:
Overloads
Count (fld)
Count (fld, condFld)
Count (fld, condFld, cond)
Count (x)
Arguments
fld is any valid database or formula field that can be evaluated by the function.
condFld is a field used to group the values in fld by.
cond is a String indicating the type of grouping for condFld. You only specify this argument when condFld is a Date, Time, DateTime or Boolean field. For more information on the valid strings for this argument, see Conditions for summary functions .
x is an array of values that can be evaluated by the function being used.
Returns
Number
Action
Enables you to count the values that appear in your report (for a specified field). For example:
If a sales report includes all orders made and the amount of each order, you can compute the total number of orders that appear on the report (a grand total count).
If you break orders into groups (for example, orders grouped by the state that they come from), you can compute the number of orders per group (in this case, per state).
If you break orders into date or Boolean groups (for example, orders grouped by the month in which they were placed), you can compute the number of orders per group based on a particular change in the date or Boolean field (in this case, per month).
If you specify a set of individual values, you can compute the number of values in the set. For information on this kind of counting, see Array summary functions .
Examples
The following examples are applicable to both Basic and Crystal syntax:
Count({orders.AMOUNT}, {orders.CUSTOMER ID})
This formula counts the number of orders in each group of orders in the Amount field (the total orders for each customer). The orders are separated into groups whenever the value in the Customer ID field changes.
Count({orders.ORDER AMOUNT}, {orders.ORDER DATE}, "monthly")
Counts the number of orders in each group of orders in the Amount field (the total orders for each month). The orders are separated into groups whenever the value in the Date field changes to a new month.
The following examples are applicable to Crystal syntax:
If Count({orders.ORDER ID}) >= 100 Then
"Congratulations on meeting your quota!"
Else
""
Prints the congratulatory message if the number of orders is 100 or more, and prints nothing if the number of orders is less than 100.
Count([1,2,3,4,5])
Returns 5. Counts the total number of values in the array.
Note: Using this function in a formula forces the formula to be evaluated at print time.
For more information on evaluation time considerations, see Evaluation Time.