Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 19th, 2006, 05:23 PM
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to vashknight
Default Crosstab - Limiting Date On Formulas - Dynamic Dat

I'm using CR 10, and doing a report that uses two sub-reports. I have the parameter set and they are being passed to both sub-reports, both are cross tabs. One important parameter to mention is the date parameter, which is a range that selects the hours, and the results of calls that occurred for that day. So there are two types of data, the hours, and the call results.

The first sub-report handles the hours and other summaries. There is a formula that takes the datetimeout – datetimein and outputs the total hours. The only way that it takes and does this by a particular day is if the formula is in the cross-tab report.

The problem is when the formula is in the cross-tab report it sums it up by how many records it finds for that date. What I did to fix this problem is to divide by the count of rows.

It is fine when you do just one date, however when you do more than one date you end up with it dividing by the total amount of records it finds for all dates, not by the amount for that particular day.

The way that it counts the records is not by date specifically, it’s only by the field of a database itself.

Is there a way to make it dynamic to maybe pull an array of the counts per record for that day? If so then I would be able to divide it by the day, and the output is correct. The main problem is that I need it to dynamically pick out each date, since the amount of dates, and the actual dates will vary.

Also, is there a way that I can put it in the cross-tab report and actually give me the correct data without this whole divide issue?

The formula I'm using is basically 'count({WEEKLY.datetimein});'

The output should look like this

           10/16 | 10/17 | Total
    Hours 80.11 | 75.11 | 155.22
Total Calls 729 | 616 | 1345

But it actually outputs this currently

             10/16 | 10/17 | Total
       Hours 79.60 | 75.62 |155.22
Total Calls 689.74 | 655.26| 1345

Any help whatsoever is much appreciated, thank you. Let me know if you have any other questions. I really need some help on this, I've been struggling trying to find a solution.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formulas Juan0214 Access 4 July 2nd, 2008 02:04 PM
Concatenated dynamic date KYbluebird BOOK: Access 2003 VBA Programmer's Reference 5 June 11th, 2007 10:13 AM
Dynamic Date Display velcrobomb SQL Language 3 April 3rd, 2007 10:10 AM
Crosstab date query Brendan Bartley Access 3 March 29th, 2007 09:18 AM
Inputbox and Formulas bahachin Excel VBA 3 February 17th, 2005 01:39 AM



All times are GMT -4. The time now is 10:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.