Skip to Content
author's profile photo Former Member
Former Member

Crosstab highlight latest appointment time

I have a crosstab showing multiple Office Locations with Days of the Week as columns. The rows are Doctor Names. The cells show earliest and latest appointment times (per day).

Is there a way to yellow highlight the LATEST appointment time of the Calendar Day, no matter which location it was at?

Thanks for any help!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 03, 2016 at 08:18 AM

    Hi Cheryl,

    Try this please:

    Right-click one of the summary cells > Format field > Border tab > Click the formula button beside 'Background' and use this code:

    local TimeVar s := GridValueAt(0, CurrentColumnIndex, CurrentSummaryIndex);

    local numbervar i;

    for i := 1 to GetNumRows-1 do


    if GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex) < s then

    s := GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex);


    if CurrentFieldValue = s then





    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Abhilash Kumar

      Excellent!! Thank you for the extra help, it works perfectly!

      P.S. Is there is a way to also yellow highlight the date header of the column which happens to contain the resultant "highlighted latest appointment date"?


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.