Using CR 2008
OK here is the desired result:
Total 7 days Total 14 days
John Jones 1 0
Mike Smith 0 1
What's currently happening
Total 7 days Total 14 days
John Jones 6 0
Mike Smith 0 9
here are the formula's:
formula Last Contact Date:
if {BANNER_DAR.LAST_CONTACT} <> "Conversion" then
right({BANNER_DAR.LAST_CONTACT}, 19)
formula ToDate Last Contact:
Date({@Last Contact Date})
formula 7 Day Count:
if (datediff("d", {@ToDate Last Contact}, CurrentDate) >= 7 and
datediff("d", {@ToDate Last Contact}, CurrentDate) <= 13) then 1 else 0;
formula 14 Day Count:
if datediff("d", {@ToDate Last Contact}, CurrentDate) >= 14 then 1 else 0;
the display formulas
Total 7 Day
WhilePrintingRecords;
sum({@7 Day Count}, {BANNER_DAR.SPR_NAME})
Total 14 Day
WhilePrintingRecords;
sum({@14 Day Count}, {BANNER_DAR.SPR_NAME})
so the problem that I am getting is that 7 Day Count is looping and it should not be looping as it should only give a 1 and then move on to second record. Any ideas?
OK here is the desired result:
Total 7 days Total 14 days
John Jones 1 0
Mike Smith 0 1
What's currently happening
Total 7 days Total 14 days
John Jones 6 0
Mike Smith 0 9
here are the formula's:
formula Last Contact Date:
if {BANNER_DAR.LAST_CONTACT} <> "Conversion" then
right({BANNER_DAR.LAST_CONTACT}, 19)
formula ToDate Last Contact:
Date({@Last Contact Date})
formula 7 Day Count:
if (datediff("d", {@ToDate Last Contact}, CurrentDate) >= 7 and
datediff("d", {@ToDate Last Contact}, CurrentDate) <= 13) then 1 else 0;
formula 14 Day Count:
if datediff("d", {@ToDate Last Contact}, CurrentDate) >= 14 then 1 else 0;
the display formulas
Total 7 Day
WhilePrintingRecords;
sum({@7 Day Count}, {BANNER_DAR.SPR_NAME})
Total 14 Day
WhilePrintingRecords;
sum({@14 Day Count}, {BANNER_DAR.SPR_NAME})
so the problem that I am getting is that 7 Day Count is looping and it should not be looping as it should only give a 1 and then move on to second record. Any ideas?