cjbrown815
IS-IT--Management
Hello,
I have a formula field in a manual crosstab report that calculates the age of the product when we survey it. This works great for everything except for our post manufactured products (diced and shredded). I need to cleave out the dice and shred products and minus for days from the production date. (WKLY_MozzWM_Dice,WKLY_MozzPS_Dice,WKLY_MozzWM_Shred,WKLY_MozzPS_Shred)
DATE1 = PRODUCTION DATE
DATE3 = SURVEY DATE
FORMULA
If {SAMPLE.SAMPLE_TYPE}in ["WKLY_25#_Gigantino","WKLY_55#_Giganti","WKLY_Boccino","WKLY_Cheddar",
"WKLY_Grat_Romano","WKLY_Mandarini",
"WKLY_Parmesan","WKLY_Parmesan_Grat","WKLY_Parmesan_Shred","WKLY_Provo_DeliStyle","WKLY_Provo_Nello",
"WKLY_Provolettina","WKLY_Salamini"] then
{@in Months}else
(datetimevar d1:={SAMPLE.DATE3};
datetimevar d2:={SAMPLE.DATE1};
totext(Datediff("n",d2,d1)/60 /24,0,"") & " days" )
-CJ
SQL2005// CRXIr2// XP Pro
"Progress lies not in enhancing what is, but in advancing toward what will be"
-KHALIL GIBRAN 1883-1931
I have a formula field in a manual crosstab report that calculates the age of the product when we survey it. This works great for everything except for our post manufactured products (diced and shredded). I need to cleave out the dice and shred products and minus for days from the production date. (WKLY_MozzWM_Dice,WKLY_MozzPS_Dice,WKLY_MozzWM_Shred,WKLY_MozzPS_Shred)
DATE1 = PRODUCTION DATE
DATE3 = SURVEY DATE
FORMULA
If {SAMPLE.SAMPLE_TYPE}in ["WKLY_25#_Gigantino","WKLY_55#_Giganti","WKLY_Boccino","WKLY_Cheddar",
"WKLY_Grat_Romano","WKLY_Mandarini",
"WKLY_Parmesan","WKLY_Parmesan_Grat","WKLY_Parmesan_Shred","WKLY_Provo_DeliStyle","WKLY_Provo_Nello",
"WKLY_Provolettina","WKLY_Salamini"] then
{@in Months}else
(datetimevar d1:={SAMPLE.DATE3};
datetimevar d2:={SAMPLE.DATE1};
totext(Datediff("n",d2,d1)/60 /24,0,"") & " days" )
-CJ
SQL2005// CRXIr2// XP Pro
"Progress lies not in enhancing what is, but in advancing toward what will be"
-KHALIL GIBRAN 1883-1931