LBass,
I played with this quite a bit to see what the limits are and I got it to work. There are no summary formulas used, but you need three numeric columns to work with.
1) The Total Field can be any numeric, like a Quantity field or a formula that adds several columns together to get a combined number. It can be a formula but doesn't have to be.
2) A conditional formula that is the first field but only in records that meet a condition. ie:
If <condition>
Then TotalField
Else 0
3) The percentage field, which is:
If ConditionFormula > 0
then ConditionFormula/TotalField*100
else 0
You put these three into the cross tab as summarized fields. The first 2 get summed and the last is a weighted average of the third weighted by the first.
The only limitation I found is that the condition field has to be a subset of the values in the total field. I couldn't, for instance, get this to work where I had Prior year, Current Year and I wanted a percentage increase. For that kind of percentage you might want to look at another thread that uses a different technque:
thread149-865741
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Tips and Tricks / Guide to Crystal in VB
- TEK2(AT)kenhamady.com