[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 53
  • Last Modified:

Crystal Highlight Expert

I have to highlight a product that qualifies for multiple qualifications (attributes).  When I highlight for say low fat, if that product also qualifies for say healthy, it will highlight one and add a second to the report.
How can I just show the one I want highlighted?

Thanks!
0
evend
Asked:
evend
  • 3
  • 2
1 Solution
 
mlmccCommented:
How is your data setup?

Do you have one record with all the attributes or do you a joined table with the attributes so you have multiple records.?

DO you only want to show for a given attribute or do you want to show all records but only the attributes that meet your highlight criteria?

Product 1  has FAT and HEALTHY
Product 2 has HEALTHY
Product 3 has FAT
Product 4 has HEALTHY and Attribute 3

What should the report show?

mlmcc
0
 
evendAuthor Commented:
A joined table.

Products with attributes.  

I would like to show all products but just highlight products that are associated with a specific attribute.
However, some products are associated with multiple attributes. Hence why products multiply on the report.
I think??
0
 
mlmccCommented:
For the sample data I provided, what should be reported?

mlmcc
0
 
evendAuthor Commented:
If I want to see all products 1-4 but say highlight only 1 and 3 because they are 'FAT'.

Product 1  has FAT and HEALTHY
Product 2 has HEALTHY
Product 3 has FAT
Product 4 has HEALTHY and Attribute 3
0
 
mlmccCommented:
Look at this report
I grouped the report by product ID and put the name field in the group header
I used a parameter to select the desired attribute.

I then created a formula to use for counting the products with that attribute

Name - HasAttribute
If {'Product_Attributes_'.Attribute} = {?Attribute} then
    1
Else
    0

Open in new window


I used that formula to set the background color for the group name field
If Sum({@HasAttribute},{'Product_List_'.Product ID}) > 0 then
    crLime
Else
    crNoColor

Open in new window


Sample run
mlmcc
ProductAttribute.rpt
ProductAttributes.xls
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now