Print Page | Close Window

Highlighting - parameter for whole group

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22269
Printed Date: 28 Apr 2024 at 1:19pm


Topic: Highlighting - parameter for whole group
Posted By: bbfdsue
Subject: Highlighting - parameter for whole group
Date Posted: 17 Mar 2017 at 6:49am
I'm trying to highlight a Client group heading that has several products. Each product has a year of purchase and a qty.

I'm trying to Highlight the Client group heading if that client didn't purchase anything at all in 2016.

How do I make the highlight parameter look at the whole group of products? I'm finding it highlights the client group if it hasn't bought SOME of the products in 2016 even if they have bought others in 2016.

How do I make it look at the products as a single parameter rather than several.

Suz



Replies:
Posted By: DBlank
Date Posted: 17 Mar 2017 at 10:03am
create a grouping flag that gives you a group total you can use for what you want.
row level formula
//flag
if table.saleyear = 2016 then 1 else 0
sum this at the client group level and if that sum = 0 highlight
if sum(@flag,client)=0 then crYellow



Print Page | Close Window