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 8623555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:18:34+00:00 2026-06-12T07:18:34+00:00

I have a report that I am trying to get the difference between two

  • 0

I have a report that I am trying to get the difference between two datetime variables of a change log.

The start datetime is just the first field in the details section, so I am just using Minimum to get that.

For the end datetime, I can’t do Maximum because the last record is usually after the case is closed (an email survey is sent out a week later). So I have a running total that only counts if the word “Closed is found on the line.

I then have a function that says if the running total=1 then put that datetime into a variable (F1) (I’ve tried local, shared and global). This works when I put the formula in the detail section. Only the first line that has Closed in it has the datetime stamp before it.

The issue is that when I try to use this variable in the group footer, the field is blank. I’m not understanding why the variable clears out and how to get it to stay there. Please help!!

F1:

datetimevar endts;

if {#RTotal0}=1 then
endts:={@datetime};

F2 (Used in group footer)

datetimevar endts;
endts;
  • 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-06-12T07:18:36+00:00Added an answer on June 12, 2026 at 7:18 am

    I was able to reproduce this using a similar query. You just need to force Crystal Reports to evaluate your function, so in your F2 function, add WhilePrintingRecords; to the first line, like this:

    WhilePrintingRecords;
    datetimevar endts;
    endts;
    

    This should force the report to evaluate the formula as it prints each grouping.

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

Sidebar

Related Questions

I have a layered worker class that I'm trying to get progress reports from.
I'm trying to generate a report of the activities that users have done within
I have small web app that generate PDF files as a report. I'm trying
I have a problem with the substr() command, I'm trying to get two different
I have a report that is getting info from bsis, bsas, bsid, bsad, vbrk,
I have a report that is basically a form with multiple empty fields and
I have a report that I run from a system once a week, and
I have a report that I'm exporting to PDF using the VS2008 version of
I have a report that is returning a one data field to a tablix
I have a report that I created in SQL Server Reporting Services 2008. I

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.