CrystalKim
MIS
Hi all,
Trying to get these date range formualas straight in my head is very challenging. I am used to only doing formualas with one or two dates and not a range of dates so I apoligize for the many questions I have.
Anyhow, I am creating a report that is going to show sales. This report will have one column for the previous month and another column for the current month. The next column will be Current Year to date, and the other field will be previous year ytd.
My data looks somewhat like this:
CustName sale CloseDate
ab compa 5000 1/15/08
cd compa 4000 12/31/07
ef copa 3000 11/15/07
gd cop 2000 09/06/06
I have tried to make a formula like this but it hasn't worked.
If({tbl.CloseDate}) is between 1/1/07 and 1/31/07 then {tbl.Sale} else 0.
Does Crystal recongnize what I am asking it to do or do I need to format it a different way.
Any help would be most apppreicated.
Thanks
Trying to get these date range formualas straight in my head is very challenging. I am used to only doing formualas with one or two dates and not a range of dates so I apoligize for the many questions I have.
Anyhow, I am creating a report that is going to show sales. This report will have one column for the previous month and another column for the current month. The next column will be Current Year to date, and the other field will be previous year ytd.
My data looks somewhat like this:
CustName sale CloseDate
ab compa 5000 1/15/08
cd compa 4000 12/31/07
ef copa 3000 11/15/07
gd cop 2000 09/06/06
I have tried to make a formula like this but it hasn't worked.
If({tbl.CloseDate}) is between 1/1/07 and 1/31/07 then {tbl.Sale} else 0.
Does Crystal recongnize what I am asking it to do or do I need to format it a different way.
Any help would be most apppreicated.
Thanks