Reputation: 35
I'm pretty new to Crystal Reports and I can create Pie Charts just fine, but I can't figure out how to chart a JOIN. For example, I have two tables "A" and "B". In the "link" tab of the Database Expert I've drug a line so that A.FK goes to B.PK.
Table A Table B
-------- --------
PK | FK PK | FK
0 | 1 1 | Gizmos
1 | 1 2 | Gadgets
2 | 2
The pie chart for A.FK would come out looking correct but the value in A.FK would be used in the legend, when I'm expecting the JOINed value of B.FK. So instead of my chart having two slices called 1 and 2, I want the slices to read Gizmos and Gadgets.
Can anyone please assist? Thanks
Upvotes: 2
Views: 2405
Reputation:
This is because you are grouping the report by A.FK - you need to change it to group by B.FK.
To do this:
>
button to add it to the list of grouping fields (to the right).<
button to remove it from the list. Your chart should now be grouped on change of B.FK.Upvotes: 1