Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stacked Bar Chart errors

Status
Not open for further replies.

CrystalBox

IS-IT--Management
Mar 24, 2005
151
US
I'm using Crystal 11, Access is my Database. I created a stacked bar chart based on the "Protected Groups" Age, Ancestry, Color, Disability etc. Each group bar shows two number values, the top value is the total cases and the bottom value is the number of cases of the total that are what I call "A" cases. Here's an example of what the first three bars look like:

Age: 50(total)\10("A" cases)
Ancestry: 36(total)\8("A" cases)
Color: 77(total)\18("A" cases)

The problem occurs when the first group in the chart, the "Age" group, has no "A" cases; I get the follow result instead:

Age: 50(total)\40("A" cases)
Ancestry: 36(total)\28("A" cases)
Color: 77(total)\59("A" cases)

I'm using a data field and a formula under the "Chart Expert" "Data" tab, "On change of":
{EXP_INITIAL_PROT_GRP.INIT_PROT_GRP_DESC} and If{EXP_CLASSIFICATION.CLASSIFICATION}="A" and {EXP_CLASSIFICATION.DATE}=maximum ({EXP_CLASSIFICATION.DATE},{EXP_CLASSIFICATION.CL_INTAKE})
Then "A" Else "Total Cases"

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top