Notices



Reply
 
LinkBack Thread Tools Display Modes

Old 02-27-2008, 10:37 AM   #1 (permalink)
Member

Join Date: Jun 2007
Posts: 40
Rep Power: 0 AlzheimerNiagara is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

Suppress subtotals if there is only one record?

I know you can suppress a section if it is blank, but I'm wondering if I can suppress that section if there is only one record included in the subtotal. If you can see the attached picture, I've got group totals that only include one record and this total gets displayed in 2 different groups. I've grouped first by fund, and then by credit card type but a lot of times we'll only have say 1 visa donation per fund. I want these subtotals because we need them to show our memorial donations, but is there any way to suppress the other totals that only have 1 amount in them?

Thanks, I really don't know a whole lot about Crystal Reports (i.e. nothing) so any help is greatly appreciated!!
Attached Images
File Type: jpg testreport.jpg (80.0 KB, 10 views)
__________________
Erin Cunningham
Database Coordinator
ecunningham@alzheimerniagara.ca
Alzheimer Society of Niagara Region

I'm just learning
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-27-2008, 10:58 AM   #2 (permalink)
Crystal Reports Guru

DrewAllen's Avatar

Join Date: May 2006
Location: Philadelphia, PA
Posts: 1,155
Rep Power: 4 DrewAllen is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Information Edge (TIE)
- API/VBA

Yes, it's fairly easy. All you need to do is go into Format Section (Section Expert in XI) and click on the conditional suppression for that section. Then you'll want to use a formula like
Code:
Count({ID Field}, {Group Field}) = 1 
You may want to use DistinctCount() instead of Count().

Drew
__________________
J. Drew Allen
Children's Hospital of Philadelphia

Crystal Reports and SQL Server Consultant

It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-27-2008, 11:08 AM   #3 (permalink)
Member

Join Date: Jun 2007
Posts: 40
Rep Power: 0 AlzheimerNiagara is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

Thanks for the quick response!

I'm trying to use the formula:

DistinctCount ({Gf.Gf_Amount}, GroupName ({Gf.Gf_Credit_Type})) = 1

and is says the running total or something can't be created. I imagine the groupname part is wrong....do I just need the part inside the {}?

I always think formulas should be written if...then...else but now I see that the then...else part is implied in the conditional formatting so that will be REALLY helpful in the future!!
__________________
Erin Cunningham
Database Coordinator
ecunningham@alzheimerniagara.ca
Alzheimer Society of Niagara Region

I'm just learning
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-27-2008, 11:10 AM   #4 (permalink)
Member

Join Date: Jun 2007
Posts: 40
Rep Power: 0 AlzheimerNiagara is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

Lol....i guess I was a bit hasty in that post

Just tried

DistinctCount ({Gf.Gf_Amount}, {Gf.Gf_Credit_Type}) = 1

and it worked fine!

Thanks a lot!
__________________
Erin Cunningham
Database Coordinator
ecunningham@alzheimerniagara.ca
Alzheimer Society of Niagara Region

I'm just learning
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-27-2008, 11:19 AM   #5 (permalink)
Crystal Reports Guru

DrewAllen's Avatar

Join Date: May 2006
Location: Philadelphia, PA
Posts: 1,155
Rep Power: 4 DrewAllen is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Information Edge (TIE)
- API/VBA

Quote:
Originally Posted by AlzheimerNiagara View Post
Just tried

DistinctCount ({Gf.Gf_Amount}, {Gf.Gf_Credit_Type}) = 1
If you're going to use Amount, do not use DistinctCount(). Only use distinct count with fields that should be distinct like ID fields. These will be things like the Constituent ID, the Constituent System Record ID, the Gift ID, or the Gift System Record ID. In your case, you'll probably want to use one of the gift IDs.

Drew
__________________
J. Drew Allen
Children's Hospital of Philadelphia

Crystal Reports and SQL Server Consultant

It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
formula, subtotal, supress


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Cheap Gas - Loans - Mortgage - Loans
All times are GMT -6. The time now is 05:08 AM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64