We help IT Professionals succeed at work.

Capture a value in Crystal Reports

451 Views
Last Modified: 2014-12-01
I have a report that displays warranty item count totals based on month.  The totals change daily as new items are added (open) and existing items are completed (closed).  I would like to capture those values at the end of each month, so that I can see a trend.  Example:  
As of 11:59 PM, January 31st, 2014. the total open warranty items was 58.
As of 11:59 PM, February 28th, 2014. the total open warranty items was 52.
As of 11:59 PM, March 31st, 2014. the total open warranty items was 46.
As of 11:59 PM, April 30th, 2014. the total open warranty items was 38.
etc.

The formula must capture the count of open items and then save that number as a value that I can reference as a static number.  

Thanks in advance for any suggestions.
Comment
Watch Question

Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
I assume you mean in the report and not elsewhere as in another application or in a SQL query.

What are you trying to do with the numbers?

You could produce counts (as summary values) for each month then use them in the report footer to show trends.

What data do you have available that the counts are based on?

mlmcc

Author

Commented:
Yes, I would want to display the results in the report.

I simply want to display a point in time count.

The count would be based on a completion date.  If the item is open, the date value is 01/01/1900.  When the item is completed, an actual date is assigned.

Jan    Feb    Mar
58     52      46

I want to capture those numbers at a point in time.  I don't want the January and February count to change as items are completed.  The formula would have to count how many items have a date of 01/01/1900 as of 1/31 and then store that count as "January Total".  

Some of those item will then be completed over the next month, as well as new items added.  Again, the formula would count how many items have a date of 01/01/1900 as of 2/28 and then store that count as "February Total", and so on.
CERTIFIED EXPERT
Top Expert 2011

Commented:
You can run a report and calculate the totals in a cross tab in real time. I guess you have a Open and Closed date for each item . If yes , you can get the number of open items as of the end of each month. It is never a good idea to stash the data

Author

Commented:
Here's the problem if I count them in real time.  As time goes by, the real time numbers will change.  I want a static snapshot what was open at the end of each month, regardless of when the items were entered into the system.  If I use real time data, as any open items are closed, I think the prior month totals will change.  Again, I want a record and they should not change as time goes by.
Senior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2011

Commented:
I was part of the team , which developed R-Tag, which is using a newer technology and provides unbeatable number of options to export data. Nevertheless, these kind of tools are not designed to manage data. They are designed to run reports. What will happen if you run the report twice and it exports the data 2 times ?
You need to  prepare your data in  a way , which will allow you to generate reports without saving a copy. A sample structure will involve 2 dates - CreatedDate when the record was physically created and EffectiveDate when the record become effective.   For example you may receive an email to close a record after hours on November 28th - Friday, but you will be able to close it on December 1st - Monday. The EffectiveDate will be November 28th and CreatedDate - December 1st,. Then, you can choose, which date to use in your report.

RecordID  CreatedDate   EffectiveDate       Status
ABC           1/1/2014          1/1/2014              Open
ABC           12/1/2014        11/28/2014         Close

This is a classic AsOn - AsIfOn structure and will allow you to report by the status at a specific point in time. For example you can easily find that ABC was effective 1/1/2014-12/28/2014 and at the same time you can report your data by the time it is created

Author

Commented:
I reviewed and demoed Visual Cut and found, that while cumbersome, it will do what I need in order to capture and export point in time information.  I actively use another program, reportal (http://www.reportalsoftware.com/), which has similar schedule and export functionality, so my plan is to try using reportal first.  If that doesn't work, I will go back to Visual Cut.

Thanks for the recommendation.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.