Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Cross Tab Formatting Post Reply Post New Topic
Author Message
cbaldwin
Groupie
Groupie


Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Quote cbaldwin Replybullet Topic: Cross Tab Formatting
    Posted: 27 Jul 2017 at 5:16am
I have a cross tab similar to the following example. The field in my header is {alphabet} and alphabet includes A,B,C and D. The {count}values in my crosstab are 2,10,20 and 15 respectivly for A,B,C and D.

A   B   C   D
2   10 20 15

I would like to be able to format the {count}values in my crosstab based on the value itself (which i know how to do) but also on the value of the {alphabet} header.

For example if {alphabet}="A" and gridvalue<10 color equals red. and if {alphabet}="B" and gridvalue<5 color equals blue.

I know how to set the colors based on the gridvalue. I am not sure how to appropriately reference the value of the crosstab header {alphabet} and make the formatting based on the two values.

Thanks in advance for any insight.

CJB
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 27 Jul 2017 at 5:28am
maybe this?

http://crystalreportsbook.com/Forum/forum_posts.asp?TID=11213

and also search help (or this forum) for GridRowColumnValue

Edited by DBlank - 27 Jul 2017 at 6:20am
IP IP Logged
cbaldwin
Groupie
Groupie


Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Quote cbaldwin Replybullet Posted: 27 Jul 2017 at 6:04am
Thanks i will investigate your suggestions.
IP IP Logged
cbaldwin
Groupie
Groupie


Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Quote cbaldwin Replybullet Posted: 27 Jul 2017 at 9:19am
Exploring GridRowColumnValue ultimately led me to a perfect example of what I was seeking.

GridRowColumnValue (groupAlias, (optional) row/columnIndex)

I did have some problem trying to determine what to use as the groupalias for the column but i found that on the Cross Tab Expert-Customize Style Tab under "Alias for formulas"

Thanks for the help
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.