Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7595049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:34:27+00:00 2026-05-30T21:34:27+00:00

I have crosstab which has row columns indicating different classes, and then peoples names

  • 0

I have crosstab which has row columns indicating different classes, and then peoples names across the top.

|         | Required | Person 1 | Person 2 | Person 3 |
| Class 1 | 8      6 | 1      6 | 3      6 | 4      6 | 
| Class 2 | 6      2 | 3      2 | 2      2 | 1      2 |

Each field contains 2 values The first value is the number of hours spent in the class, the second field is the number of hours required for certification.

The Required field id my grand total summary.

In the cross tab expert the fields are defined as follows.

Rows:

Command.descr -> a field containing the class names

Columns:

Command.fullname -> a field containing students full names

Summarized Fields:

Sum of Command.evlength -> summation of all time spent in a given course

Max of @required -> this formula returns the number of required hours based on the course name

I am trying to highlight the field Sum of Command.evlength if it is greater than or equal to the value of Max of @required.

My solution was to perform background formatting. Right-Click on the Sum of Command.evlength field, select Format Field. Click the borders tab, check Background, and enter a formula.

The formula I was using is:

if CurrentFieldValue >= {@required} then color(152, 251, 152) else crNoColor

This is not the correct formula. My crosstab has been placed in the footer, which causes {@required} to contain the last value in the grid which in the above example is 2.

From my research I thought I would have to use GridRowColumnValue(row or column name) to access the value of {@required} in the crosstab, but I could not come up with the correct string to represent it.

Does anyone have a way for me to correctly perform this comparison?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:34:28+00:00Added an answer on May 30, 2026 at 9:34 pm

    Frustratingly I don’t think you can use the highlighting expert to compare to a dynamic value. You could swap the columns round then add the following formulas:

    To the max_of_required background colour:

    whileprintingrecords;
    global numbervar required_hrs := currentfieldvalue;
    crNoColor;
    

    To the sum_of_command.evlength background colour:

    whileprintingrecords;
    global numbervar required_hrs;
    if currentfieldvalue >= required_hrs then
     crRed
    else
     crNoColor;
    

    I think there are a few other ways but i’m not as confident with those so start here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a crosstab in crytal report, in which it is required to
I have a crosstab which shows a count of a callid for this month
I have a set of data that needs to be displayed as a crosstab
Have just started using Visual Studio Professional's built-in unit testing features, which as I
So I have a simple crosstab report that calculates number of sales in the
Hi i have a long formula field which I would like to include as
This picture shows a sample of what my columns look like in my crosstab
I have a problem with creating a pivot table in PostgreSQL using the crosstab()
I have a very simple XML datasource structured like this: <datasource> <row> <column>Some text
I have a switch statement in a crosstab query: Switch([Age]<20, Under 20, [Age]>=20 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.