on 06-01-2011 4:05 PM
Using Crystal XI (with all the patches)
In my table/view I have a field called "Bill_Item" which has values such as "AAA111", "AAA477", "BAA985", "BBC287" etc.
I know I can sum based on the field like this:
Sum({Table1.Amount}, {Table1.Bill_Item})
But what I really need is more like this:
Sum({Table1.Amount}, Left({Table1.Bill_Item}, 3))
Is there a way of doing this? (other than the way I wrote it above which throws an error)
Create a formula
@subPart
Left({Table1.Bill_Item}, 3)
Group on this formula
The use formula
Sum({Table1.Amount}, ({@SubPart})
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.