Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: how to write a formula Post Reply Post New Topic
Author Message
L140
Newbie
Newbie


Joined: 10 Nov 2009
Location: Canada
Online Status: Offline
Posts: 6
Quote L140 Replybullet Topic: how to write a formula
    Posted: 12 May 2011 at 9:23am
I need help to write a formula to query a specific result as follows
 
The result should yield the following condition
 

Total # of calls/records each client opened per day and from these calls breakdown by # of calls opened by same agent per each client on the same date.

 

Basically i want a breakdown by each Client / # of Calls / by date / by Agent.

 

For instance,

 

Jane Smith called 3 times on Monday, 2 times on Tuesday and 4 times on Friday, in a week she called 9 times in total. Out of these 9 calls 3 calls were opened by agentA on Friday and this same agentA opened 2 calls for this client on Monday. The rest of the calls were opened by various agent.

 

So, my result should show 2 calls opened on Monday and 3 calls on Friday opened by this agent for the client Jane Smith.

Client               # of Calls         Date                 By Agent

Jane Smith       2                      Monday                        AgentA

Jane Smith       3                      Friday               AgentA

 

This sounds simple but I know it’s complicated. I desperately need help to come up with a formula to meet this requirement.

 Cry
L140 :)
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 13 May 2011 at 4:02am
Are you querying your data from a database?
If so, is this information already formatted as such?

If not, how is your data formatted?
(for instance, maybe you have some sort of "log" that records all of this information)

Edited by Keikoku - 13 May 2011 at 4:07am
IP IP Logged
L140
Newbie
Newbie


Joined: 10 Nov 2009
Location: Canada
Online Status: Offline
Posts: 6
Quote L140 Replybullet Posted: 13 May 2011 at 4:06am
I am tyring to build a report to yield the results in the example. I am using the Crystal Report 10 version.
 
Not sure how I can achieve this result i.e. how to build this query in a formula or something.
 
L140 :)
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 13 May 2011 at 4:16am
Ok.

Since you are building a query I am assuming you are retrieving your data from a database.

Never used crystal 10 before, so I'm not sure if they have the Add Command feature though. I haven't worked with SQL expressions either.

Edited by Keikoku - 13 May 2011 at 4:18am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.035 seconds.