kvrogers
asked on
Crystal Reports: Need a formula for the first time patient seen and last time during a certain time period
Here is the formula to give me a readable date a patient was seen:
CDATE({Archrg99.D_ServiceF rom}-18261 )
I need to know the formula that will look for the first time the patient was seen and the last time the patient was seen during a certain time period of 01/01/2012 to current. I can configure the date range OK.
KR
CDATE({Archrg99.D_ServiceF
I need to know the formula that will look for the first time the patient was seen and the last time the patient was seen during a certain time period of 01/01/2012 to current. I can configure the date range OK.
KR
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Well upon validation this did not work.
For the field FIRST DATE OF SERVICE, I am getting duplicate information for some patients.
What other information from me would be helpful. I can upload the report but I will have to take out some patient information and just leave the Pat_Ext_ID as this is a Group By and take away anything else. Would that help?
KR
For the field FIRST DATE OF SERVICE, I am getting duplicate information for some patients.
What other information from me would be helpful. I can upload the report but I will have to take out some patient information and just leave the Pat_Ext_ID as this is a Group By and take away anything else. Would that help?
KR
What do you mean by "duplicate"? There will only be one minimum and one maximum for each group. Where are you seeing duplicates?
Uploading the report might be helpful.
James
Uploading the report might be helpful.
James
ASKER
I did manage to get the formula to work.
I took out the Patient ID code from the formula above and it worked correctly.
Also noted that my JOINS were not correct.
Once I did all this it worked perfectly.
Thank you.
KR
I took out the Patient ID code from the formula above and it worked correctly.
Also noted that my JOINS were not correct.
Once I did all this it worked perfectly.
Thank you.
KR
ASKER
KR