CRYSTAL REPORT - SHOW FIELD IN GROUP HEADER BASED ON THE DATA IN GROUP DETAILS - crystal-reports-2010

I have a problem that needs to resolve.
*I have group header and group details.
*I wanted to put a field in group header inside a textbox based on the data that has on the group details.
see picture for more details:
group header image
group details image

Create a detail formula:
IF {Loan.Type} = "CAL" or {Loan.Type} = "MPL" Then 1 ELSE 0
Then, in the group header use a SUM of that formula for the group to find out if there are such cases.

Related

How to repeat row group header on each page in SSRS on group

I have a simple (I think) report with a dataset that is grouped by 1 field in the report that is set to page break on each instance. The tablix is a list, with 1 row group header, 1 detail row and 3 footers; the footers contain subreports. I'm trying to get the group header to repeat on every page. I've set the static tablix member RepeatOnNewPage = True. I think I've tried every iteration of KeepTogether/KeepWithGroup, and the current group is never repeated on the next page. I have no idea what I could be missing.
Any other things you can think of for me to check?

crystal reports filtering the group

I created a crystal report and I have grouped my data with distinct count >1 like I have part number I filtered the parts the present more than once and I want to filter out the groups with a specific number at the group level like if the part number is present in specific stock sat 59 show all the stock number along with 59 for that specific part number?
it's really important for me so help me if anyone know's anything
Please describe your sample data properly as I understand you need to add group on stock_number and suppress group header and footer, after that by going 'Section Expert',select detail section click button against suppress then in formula windows, write formula
If({stock_number}=59) then false else true;

Create multipe charts using filtered data from a table

I'm developing a report on Report Builder 3.0 that should look like following image.
Each pie chart should receive the value of the properties "Approved" and "Reproved" for a specific date and machine.
Is it possible to filter these properties on each Date/Machine group? The DataSet may include other properties that will be shown on the Property/Value table, but will not be included on the chart
At this moment I have the following model for the report
I´ve tryed to use the lookup function, but, as expected, it returns all the values on the DataSet. Is it possible to narrow the search scope?
Below is the DataSet that I'm using for the test:
|Machine|Machine_ID|Date|Property|Value|
|--------|---|----------------------|--------|---|
|Machine5|A|2017-02-12 20:00:00.000|Total|200|
|Machine5|A|2017-02-12 20:00:00.000|Approved|150|
|Machine5|A|2017-02-12 20:00:00.000|Reproved|50|
|Machine2|B|2017-02-12 20:00:00.000|Total|0|
|Machine2|B|2017-02-12 20:00:00.000|Approved|0|
|Machine2|B|2017-02-12 20:00:00.000|Reproved|0|
|Machine1|C|2017-02-12 20:00:00.000|Total|100|
|Machine1|C|2017-02-12 20:00:00.000|Approved|80|
|Machine1|C|2017-02-12 20:00:00.000|Reproved|20|
|Machine1|C|2017-02-13 20:00:00.000|Total|300|
|Machine1|C|2017-02-13 20:00:00.000|Approved|200|
|Machine1|C|2017-02-13 20:00:00.000|Reproved|100|
Thank you.
This should be doable with row groups in a list.
Insert a list
Add a parent row group to group on DATE.
Group your details region on MachineID
Insert a tablix into the detail region rectangle
Insert a graph next to it
Insert a column next to the detail region (to the left) to get the MachineID column
It should look like this..
This shows the two row groups, and the detail region with the tablix and the graph.

Dynamically shows Crystal Report group footer

I need to do something specific in Crystal Report for Visual Studio 2005.
Let's say the following data:
The report regroup the data with the prdCode field, which gives something like this:
Now, I need to add a subtotal everytime one of the 4 first columns changes (Lot / Cédule/ Brand/ Contenant in the report). In this case, I should have a subtotal for the first row (lot=153363 and next one is 171008). Then, another subtotal at the last line of lot=171008 and Cédule = 023854. Then another subtotal at lot=171008 and cédule = 023863, etc.
I have no idea how I can do this. Adding Groups won't help, as I will have 5 group footers display for the first row only. In the case of the above image, I should display only 5 subtotals. A subtotal is the sum of the Total Gross/Tare/Net fields.
Anyone can help me out on this?
thanks for your time and help
Yes you are correct adding 5 groups doesn't solve the issue and also it doesn't make any sense, Instead combine all your fields and create a single group that will seggregate the records as required.
Try following approach.
Create a formula #grouping and write below cide
ToText(Lot)&ToText(Cédule)&Brand&Contenant
Now create a group with this formula and take summary in group footer

Formula to show specific database field Crystal

Is there any way to set up a formula to display a value depending on the value in another field?
Say if new_field = -1 then display info in new_field2 of that data row? How would a formula for that work?
I've tried it now with doing a formula that just has
if{table.order} = 3 then {table.value} ...the value is a number...but it is just showing 0.0 each time while the value is showing up normally with the other records that display above when just dragging and dropping the database value field into my group. I'm trying to put this formula in the report footer to display additional information on one of the records.
Create a formula similar to the following: #DisplayNote
Global stringvar xx;
if {db.field1.value} = 1 then xx:= "your text" else xx:= ""
Then create a running total formula: #DisplayText
Select the #DisplayNote formula as the field to summarize.
Type of summary = maximum
Then place the #DisplayText on the pagefooter.
In the footer, it is too late to display info on any single record in the report. They have all been processed and are gone by the time the footer is proocessed.
You could probably set up a global variable and set the value in a hidden formula in the detail section when the interesting record is processed. The use a formual to display the global variable value in the footer.
Try inserting the maximum of the formula value into the report footer, instead of the formula value itself.

Resources