Crystal Version 9.0 & SQL Server 2000
Good Afternoon,
I have posted this before and did not explain this right, hopefully this time someone can help, ahhhh!
I need to show QTR and YTD information on my report, based on the Parameter date that is selected. My parameter is based on the weekending date (which shows a Saturday date in the database). I created formulas to show the weekly that is selected based on the parameter and it works.
When I try using the parameter {?WEDate} in my formula it show the incorrect information and will not work. Is there a way that I can create a formula that is based on the year only so if the user selects the current year or a prior year that will show the YTD totals?
I also want to create a formula to show QTD totals based on the parameter WE Date or at least some kind of formula that will show what the qtrly total was for the date that is selected in the parameter. I am totall stumped on this one. Please help!
This is the formula that I tried for the YTD and it does not work!
if {?WE Date} IN YEARTODATE
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
else if {?WE Date} IN YEARTODATE - 1
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
I have not come up with anything for the QTD. I tried using the Crystal CalendarQTR's but this does not work either.
Sincerely,
Myla
Good Afternoon,
I have posted this before and did not explain this right, hopefully this time someone can help, ahhhh!
I need to show QTR and YTD information on my report, based on the Parameter date that is selected. My parameter is based on the weekending date (which shows a Saturday date in the database). I created formulas to show the weekly that is selected based on the parameter and it works.
When I try using the parameter {?WEDate} in my formula it show the incorrect information and will not work. Is there a way that I can create a formula that is based on the year only so if the user selects the current year or a prior year that will show the YTD totals?
I also want to create a formula to show QTD totals based on the parameter WE Date or at least some kind of formula that will show what the qtrly total was for the date that is selected in the parameter. I am totall stumped on this one. Please help!
This is the formula that I tried for the YTD and it does not work!
if {?WE Date} IN YEARTODATE
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
else if {?WE Date} IN YEARTODATE - 1
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
I have not come up with anything for the QTD. I tried using the Crystal CalendarQTR's but this does not work either.
Sincerely,
Myla