I have tried that, but the formulas don't show up in the list of available parameters.
I am searching a table, that is linked to two other tables. Lets call them A B and C. A islinked to B with "pid", and C to C with "dept".
For each "pid", there are a number of records in B linked to this "pid". I need to sum up the number of distinct values ("code") from B (there could be multiple records with one "pid" that have the same "code" value. And tere is an undetermined number of possible values of "code". These individual sums (for each "pid") should be added to the corresponding "code" sums for all records in A with pid "pid" that belong to a "dept". Then I should plot number of "code" (for all code values) for each dept.
Not sure this make it very clear, but hope it help me get an answer