DESTINEEJSH
Programmer
Hello everyone in the Tek-Tips Forums.
I need help with the following scenario:
We need to calculate the amount of contacts that closed for all patients each month based on a formula. So January isn't necessarily Jan 1 - Jan 30. Also when we run February, we want January to hold the value it held when it was run in January. The same would be true for March, we would like Jan and Feb to hold the same values they had when they were run in those months. I've set up the following formulas, but when I check the count values, they are always zero.
In the ReportHeader, I set all of the count formulas = 0.
According to everything I’ve read about working with print-time reports, you are supposed to split Detail into Detaila and DetailB then put the Count Formulas in DetailB. The values are also zero. They don’t appear to be incrementing.
Any ideas on what I may be doing wrong?
Formulas and view of how the chart is supposed to look is below.
Examples Of Month Formulas:
Jan = “Jan”
Feb = “Feb”
Mar = “Mar”
Examples of Counts Formulas in DetailB:
M-JanCnt
Global NumberVar JanCnt;
if (isnull ({PAT_ENC.ENC_CLOSE_DATE}) and {PAT_ENC.CONTACT_DATE} <= date (2011,01,31) and currentdate > date (2011,01,31)) or
({PAT_ENC.CONTACT_DATE} <= date (2011,01,31) and {PAT_ENC.ENC_CLOSE_DATE} > date (2011,02,11))
then
JanCnt := JanCnt + 1
M-FebCnt
Global NumberVar FebCnt;
if (isnull ({PAT_ENC.ENC_CLOSE_DATE}) and {PAT_ENC.CONTACT_DATE} <= date (2011,02,28) and currentdate > date (2011,02,28))
or
({PAT_ENC.CONTACT_DATE} <= date (2011,02,28) and {PAT_ENC.ENC_CLOSE_DATE} > date (2011,03,11))
then
FebCnt := FebCnt + 1
The horizontal axis would be the months and the vertical axis would be the count.
Any guidance would be greatly helpful.
Thanks,
Debbie
I need help with the following scenario:
We need to calculate the amount of contacts that closed for all patients each month based on a formula. So January isn't necessarily Jan 1 - Jan 30. Also when we run February, we want January to hold the value it held when it was run in January. The same would be true for March, we would like Jan and Feb to hold the same values they had when they were run in those months. I've set up the following formulas, but when I check the count values, they are always zero.
In the ReportHeader, I set all of the count formulas = 0.
According to everything I’ve read about working with print-time reports, you are supposed to split Detail into Detaila and DetailB then put the Count Formulas in DetailB. The values are also zero. They don’t appear to be incrementing.
Any ideas on what I may be doing wrong?
Formulas and view of how the chart is supposed to look is below.
Examples Of Month Formulas:
Jan = “Jan”
Feb = “Feb”
Mar = “Mar”
Examples of Counts Formulas in DetailB:
M-JanCnt
Global NumberVar JanCnt;
if (isnull ({PAT_ENC.ENC_CLOSE_DATE}) and {PAT_ENC.CONTACT_DATE} <= date (2011,01,31) and currentdate > date (2011,01,31)) or
({PAT_ENC.CONTACT_DATE} <= date (2011,01,31) and {PAT_ENC.ENC_CLOSE_DATE} > date (2011,02,11))
then
JanCnt := JanCnt + 1
M-FebCnt
Global NumberVar FebCnt;
if (isnull ({PAT_ENC.ENC_CLOSE_DATE}) and {PAT_ENC.CONTACT_DATE} <= date (2011,02,28) and currentdate > date (2011,02,28))
or
({PAT_ENC.CONTACT_DATE} <= date (2011,02,28) and {PAT_ENC.ENC_CLOSE_DATE} > date (2011,03,11))
then
FebCnt := FebCnt + 1
The horizontal axis would be the months and the vertical axis would be the count.
Any guidance would be greatly helpful.
Thanks,
Debbie