Hi,
By parent/child, I mean something hierachical like account and sub-account.
I have data like the following. When parent and child are the same and you don't see any other rows, it means this parent basically does not have children. Parent and child are key/id columns. Amount is just a number field.
parent child amount
------ ----- ------
10 10 9
20 20 3
20 30 6
20 40 1
Let's assume that page 1 shows 10/10, page 2 shows 20/20, page 3 shows 20/30, page 4 shows 20/40.
In a crystal report, I have parent as group-header-1 and child as group-header-2. I have child in group-header-2 section. I, however, want to supress child when the parent and child are the same, and there are no more children. Put another way, if parent and child are the same, and there are more children, then show. In the example above, on page 1, I don't want the child 10 to show. On page 2, I do want child 20 to show. On page 3, I do want child 30 to show. On page 4, I want child 40 to show.
Right now, my group supression formula is:
parent = child
and
count(child) > 1
good - page 1 does not show child
bad - page 2 does not show child (I want child to show here)
good - page 3 shows child
good - page 4 shows child
I've played around with the AND and the >, doing different combinations of and/or/>/= and I just can't get the result I want.
Is there anything else I can provide to you to help me?
Thanks so much
By parent/child, I mean something hierachical like account and sub-account.
I have data like the following. When parent and child are the same and you don't see any other rows, it means this parent basically does not have children. Parent and child are key/id columns. Amount is just a number field.
parent child amount
------ ----- ------
10 10 9
20 20 3
20 30 6
20 40 1
Let's assume that page 1 shows 10/10, page 2 shows 20/20, page 3 shows 20/30, page 4 shows 20/40.
In a crystal report, I have parent as group-header-1 and child as group-header-2. I have child in group-header-2 section. I, however, want to supress child when the parent and child are the same, and there are no more children. Put another way, if parent and child are the same, and there are more children, then show. In the example above, on page 1, I don't want the child 10 to show. On page 2, I do want child 20 to show. On page 3, I do want child 30 to show. On page 4, I want child 40 to show.
Right now, my group supression formula is:
parent = child
and
count(child) > 1
good - page 1 does not show child
bad - page 2 does not show child (I want child to show here)
good - page 3 shows child
good - page 4 shows child
I've played around with the AND and the >, doing different combinations of and/or/>/= and I just can't get the result I want.
Is there anything else I can provide to you to help me?
Thanks so much