Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: Average formula not working
Author
Message
lahorichick
Groupie
Joined: 13 Aug 2009
Online Status: Offline
Posts: 54
Topic: Average formula not working
Posted: 24 Sep 2009 at 8:58am
i am working on a report that is grouped by:
Name
Invoice. Date (grouped in month)
i.e.
John total job completed 300 <--that's a distinct count.
8/2009 250<--that's a distinct count.
9/2009 50<--that's a distinct count.
I would like to calculate the average for the month....
how would i do that?
IP Logged
lahorichick
Groupie
Joined: 13 Aug 2009
Online Status: Offline
Posts: 54
Posted: 24 Sep 2009 at 12:22pm
Ok just in case this wasn't making sense.
Group#1 Salesman.Name
Group #2 Invoice.Date (Grouped per month)
Details- Invoice.Date etc.
What I would like....
G#1: John Total Invoices per Month Per Week Per day
700 350 88 18
G#2: 8/2009 500
7/2009 200
Total invoices : distinct count Summary for InvoiceNumbers
I can't do an average of a count summary- I tried passing as a variable and then doing the average. Still did not work.
Any suggestions. Plz
IP Logged
Jyothi Yepuri
Senior Member
Joined: 11 May 2009
Location: Australia
Online Status: Offline
Posts: 127
Posted: 24 Sep 2009 at 5:51pm
create formula for month as {@Month}
Totext(DATE({Invoice.Date}),"MM/yyyy")
for Average
DistinctCount ({InvoiceNumber}, { Salesman.Name})/DistinctCount ({@Month}, { Salesman.Name})
Hope gives you idea to calculate for week,day as well
Jyothi
IP Logged
lahorichick
Groupie
Joined: 13 Aug 2009
Online Status: Offline
Posts: 54
Posted: 25 Sep 2009 at 5:57am
Thank you for that...
i'm trying to get the per week and per day count but its not working..
plz help...
IP Logged
lahorichick
Groupie
Joined: 13 Aug 2009
Online Status: Offline
Posts: 54
Posted: 25 Sep 2009 at 6:20am
You had suggested to use:
Totext(DATE({Invoice.Date}),"MM/yyyy")
but i kept getting a dialog box "A date-time is required here"
so for my @month i have:
Totext(({INVOICE.DATE}),"MM/yyyy")
it appears to be working fine...i'm trying to do the same for the per week and per day count but thats not working
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.