Good Afternoon,
I am using Crystal Version 9 and SQL Server 2000 (Sales Database).
I have created a Dz Mfg report and I am having a problem with the calender1stqtr (actually all quarters). The amount returned is not correct, so I am using this formula incorrectly or doing the wrong formula to get this information. I am also having a problem with the YTD formula.
Here is how my report looks:
W/E 5/15/04 W/E 5/8/04 QTD YTD
Regs 8025 7450 20 1275
Qtrs 758 620 128 270
Here is my formula for the QTD formula:
if {tblBudgetManufactured.EndDate} = Calendar1stQtr and {tblCompany.CompanyName} = {?Bakery} then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
else if {tblBudgetManufactured.EndDate} = Calendar2ndQtr and {tblCompany.CompanyName} = {?Bakery} then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
else if {tblBudgetManufactured.EndDate} = Calendar3rdQtr and {tblCompany.CompanyName} = {?Bakery} then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
else if {tblBudgetManufactured.EndDate} = Calendar4thQtr and {tblCompany.CompanyName} = {?Bakery} then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
Here is my YTD formula:
if {tblBudgetManufactured.EndDate} in YearToDate
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
I created this formula for the week ending date using a parameter that allows the user to select the WE Date for the first WE Date on my report and it is working great:
if {tblBudgetManufactured.EndDate} = {?WE Date}
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
I created this formula to select the 2nd WE Date and it is working great:
if {tblBudgetManufactured.EndDate} = {?WE Date}-7
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
I am at a loss has to what I am doing wrong. I went through the tech questions/information here on the site and could not find anything related to what I am doing.
Please help!
Thank you and have an awesome day today!
Sincerely,
Myla
I am using Crystal Version 9 and SQL Server 2000 (Sales Database).
I have created a Dz Mfg report and I am having a problem with the calender1stqtr (actually all quarters). The amount returned is not correct, so I am using this formula incorrectly or doing the wrong formula to get this information. I am also having a problem with the YTD formula.
Here is how my report looks:
W/E 5/15/04 W/E 5/8/04 QTD YTD
Regs 8025 7450 20 1275
Qtrs 758 620 128 270
Here is my formula for the QTD formula:
if {tblBudgetManufactured.EndDate} = Calendar1stQtr and {tblCompany.CompanyName} = {?Bakery} then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
else if {tblBudgetManufactured.EndDate} = Calendar2ndQtr and {tblCompany.CompanyName} = {?Bakery} then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
else if {tblBudgetManufactured.EndDate} = Calendar3rdQtr and {tblCompany.CompanyName} = {?Bakery} then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
else if {tblBudgetManufactured.EndDate} = Calendar4thQtr and {tblCompany.CompanyName} = {?Bakery} then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
Here is my YTD formula:
if {tblBudgetManufactured.EndDate} in YearToDate
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
I created this formula for the week ending date using a parameter that allows the user to select the WE Date for the first WE Date on my report and it is working great:
if {tblBudgetManufactured.EndDate} = {?WE Date}
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
I created this formula to select the 2nd WE Date and it is working great:
if {tblBudgetManufactured.EndDate} = {?WE Date}-7
and {tblCompany.CompanyName} = {?Bakery}
then {tblBudgetManufactured.Qty}*{tblBudgetManufactured.EaCount}/12
I am at a loss has to what I am doing wrong. I went through the tech questions/information here on the site and could not find anything related to what I am doing.
Please help!
Thank you and have an awesome day today!
Sincerely,
Myla