Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a question about how to filter

Status
Not open for further replies.

thehugedeal

Technical User
Jan 9, 2004
38
CA
I am pretty new at crystal but I have a problem that I can’t figure out

I am creating a report with crystal 8.0.
I have linked two-database table together to gather the information needed. One of the table fields is “code” and the other table field is “calls”. I have select one field from the table “codes” (occurrences) and one filed from the table “calls” (calls answered). Now what I want to do is just filter the codes occurrences total that I need only and have the calls answered total stay the same. But when I filter the code occurrences total, the calls answer field is filtered as well. Is there any way I can just filter that one field and not the calls answered. I need the calls answered field to stay the same.

Thank You

Bruno

 
Please explain your problem with some sample data and exptected output. It is kind of hard to understand what you are trying to do. Also are these fields from the same table or two different tables? You might want to put the layout of the report too.

Kchaudhry
 
Sorry Like I said I am new at this

The fields are from two different tables.

This is how it is

Agents name occurrences of codes calls answer

Bill Joel 700 500

John smith 658 700



This is how the report would look like if the occurrence were not filtered.

What I would like to do is to filter the occurrences of codes. For each call answer, the agent must put in a code. But there are times where they put in a wrong code or do not put a code at all. If they do not put in a code, the system gives out a default code. Which is wrong. And is not what I want. So I have filtered the occurrences to the codes that I want only. But when I do that, the calls answer numbers changes as well. Which is incorrect.

Example

Agents Name Occurrences of codes Calls answer

Bill Joel 300 250

John smith 400 520



So now the occurrences have been filtered the way I want but the calls answer has changers as well.

The calls answer changed to correspond with the changes made with the filter to the codes

This is how I would like it to look.


Example

Agents Name Occurrences of codes Calls answer

Bill Joel 300 500

John smith 400 700



I would like the Occurrences of codes to be filtered the way I want it to be but leave the Calls answer alone
I want the total calls answer without being filted

I hope this helps!!!!
 
It sounds like a linking issue. Please specify your table linking, type of joins used and the name of the fields being linked. Seconldy are you using summaries for these Occurences of Codes and Calls answered? If yes, then what kind of summary are you using?

Kchaudhry
 
It is a left outer Join [=(+),*=]
Name of the tables being used
ActivityCodeStat
AgentPerformanceStat

Fields being used :
Agent Login (ActivityCodeStat)
Agent Name (ActivityCodeStat)
Occurrences (ActivityCodeStat
CallsAnswered (AgentPerformanceStat)

For the Occurrences and the Calls Answered I am using a sum summary for each agent and gettin a sub total for each
 
Ok, try creating a formula @CallsAnswered

if {table.callsanswered} > "0"
then 1 else 0

Now insert a summary of this forumla. This should get you the correct value.

Kchaudhry
 
sorry still trying it....
database seems to be slow
 
Sorry for the long wiat, system went down

The formula that you gave me did not work but did help me figure out the problem.

I added a date filed as well, when I added the date field. There seems to be a problem when trying to display the report

Because there is more then one type of code, this is what is showing

Time calls answered Occurrences

11/20/03 12:00:00am 20 8 Account Inq
11/20/03 12:00:00am 20 15 Default code
11/20/03 12:00:00am 20 2 Promise to Pay

Then the sum total ends up being

11/20/03 12:00:00am 60 25 Total

Where it should really be


11/20/03 12:00:00am 20 25 Total

So now I found the problem

Sorry for the hassle

now I am just trying to figure out how work it out






 
Are you placing these fields in the details section or the header/footer? Secondly by looking at the above example it seems like you don't need the sum of calls answered. This should be handled by just adding the field itself not sum.

Kchaudhry
 
Thank You so much. What i was trying to do was to making things easier and just made it harder for myself

Thank You
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top