Hello all,
I'm still pretty new with Crystal, but I'm learning fast. I'm working on a reporting project and have made several breakthroughs, however at the moment I'm stuck on one formula I've been working on for the last few days. The idea is to count closed incidents (status=2) where they were created before the current date and closed in the current month. However, I'm getting some wacky numbers, and I'm not sure where they are coming from. I'm doing a sum of the formula grouped by rep. I should also mention that because of some limitations in the veiwer, I have had to create a workaround for date ranges. Part of the work-around means I have to change the date of the CurrentDate to the first of the month while running the report.
The formula is:
If ({INCIDENTS.ID_STATUS}=2) and ({INCIDENTS.DT_CREATED}<CurrentDate) and (Month({INCIDENTS.DT_CLOSED})=Month(CurrentDate))
Then
1
Else
0
If anyone has any ideas why this might be giving me the incorrect numbers, they would be most welcome. For example, I am a rep in the system. I should have 11 records that fit the criteria, however it's displaying 132 for me. The correct numbers are, I have 77 total tickets for the month, 66 where created and closed within this month and 11 created prior to this month and created within this month.
Thanks in advance!
I'm still pretty new with Crystal, but I'm learning fast. I'm working on a reporting project and have made several breakthroughs, however at the moment I'm stuck on one formula I've been working on for the last few days. The idea is to count closed incidents (status=2) where they were created before the current date and closed in the current month. However, I'm getting some wacky numbers, and I'm not sure where they are coming from. I'm doing a sum of the formula grouped by rep. I should also mention that because of some limitations in the veiwer, I have had to create a workaround for date ranges. Part of the work-around means I have to change the date of the CurrentDate to the first of the month while running the report.
The formula is:
If ({INCIDENTS.ID_STATUS}=2) and ({INCIDENTS.DT_CREATED}<CurrentDate) and (Month({INCIDENTS.DT_CLOSED})=Month(CurrentDate))
Then
1
Else
0
If anyone has any ideas why this might be giving me the incorrect numbers, they would be most welcome. For example, I am a rep in the system. I should have 11 records that fit the criteria, however it's displaying 132 for me. The correct numbers are, I have 77 total tickets for the month, 66 where created and closed within this month and 11 created prior to this month and created within this month.
Thanks in advance!