Dominican1979
IS-IT--Management
Hello everyone,
Thanks in advance for reading my post. So here is what I'm trying to do. I have a customs invoice that has two groups:
1 - Grouped by Country (coming from product order lines)
2 - Within the country grouped by manufacturer (also coming from the order lines)
There is a twist on the groups above, however, I created two formulas to actually do the groupings as follows:
@Country = if {Table.ProductGroup} = 12007 Then {Table.Country}
else "Japan"
@Manufacturer = if {Table.ProductGroup} = 12007 Then {Table.Manufacturer}
else "XYZ Manufacturer"
NOTE: Each record line has a field called "HCCode" which is used to report to customs what type of product is being shipped
I've tested these groupings and they work great as they're supposed to. Where I run into a problems is on my sub-report.
I created a sub report on the Group Footer for the @Country group, to summarize the quantities and amounts of products within each country.
The sub-report parameter field link I'm using is actually the @Country formula (also the main group on the main report) and I'm selecting the sub-report data based on the HCCode field (mentioned above)
In terms of the sub-report I have a group on HCCode. I'm placing the group name on the sub-report group footer where I'm also placing running total fields to summarize by country.
For example I have a running total field setup this way:
field to summarize: quantity
evaluate for: every record
reset on change of group: HCCode
When I run the report, I get no data on the sub-report.
I'm thinking the reason for this is because since I'm doing the formula groupings having the formula only looking at one product group and taking the actual value for the country from the database if the product group is matched and just changing the country to "Japan" for all others, then the HCCodes aren't being associated with this country since it's not coming directly from the database. That's just my theory.
I'm hoping someone could shed some light on how I can over come this, and still have Crystal summarize the data on the sub-report using the formula gropings along with the HCCode values that are coming from the database.
I'm using Crystal XI
Thanks!
Thanks in advance for reading my post. So here is what I'm trying to do. I have a customs invoice that has two groups:
1 - Grouped by Country (coming from product order lines)
2 - Within the country grouped by manufacturer (also coming from the order lines)
There is a twist on the groups above, however, I created two formulas to actually do the groupings as follows:
@Country = if {Table.ProductGroup} = 12007 Then {Table.Country}
else "Japan"
@Manufacturer = if {Table.ProductGroup} = 12007 Then {Table.Manufacturer}
else "XYZ Manufacturer"
NOTE: Each record line has a field called "HCCode" which is used to report to customs what type of product is being shipped
I've tested these groupings and they work great as they're supposed to. Where I run into a problems is on my sub-report.
I created a sub report on the Group Footer for the @Country group, to summarize the quantities and amounts of products within each country.
The sub-report parameter field link I'm using is actually the @Country formula (also the main group on the main report) and I'm selecting the sub-report data based on the HCCode field (mentioned above)
In terms of the sub-report I have a group on HCCode. I'm placing the group name on the sub-report group footer where I'm also placing running total fields to summarize by country.
For example I have a running total field setup this way:
field to summarize: quantity
evaluate for: every record
reset on change of group: HCCode
When I run the report, I get no data on the sub-report.
I'm thinking the reason for this is because since I'm doing the formula groupings having the formula only looking at one product group and taking the actual value for the country from the database if the product group is matched and just changing the country to "Japan" for all others, then the HCCodes aren't being associated with this country since it's not coming directly from the database. That's just my theory.
I'm hoping someone could shed some light on how I can over come this, and still have Crystal summarize the data on the sub-report using the formula gropings along with the HCCode values that are coming from the database.
I'm using Crystal XI
Thanks!