cjbrown815
IS-IT--Management
Hello,
I have two formulas to bring in specific sample types into two line graphs {@EOD TANKS} and {@BOD TANKS}. The problem is:
The line graphs are still showing sample types that I am not specifying in the formula. I only want lines for the sample types I'm asking for in the formula. What am I missing?
grouping by DATE1 (production date)
Line graph A is located in section RHb
The graph is changing on DATE1 & @EOD TANKS-A
Show values
Sum of @XRESULTS
Line graph B is located in section RHc
The graph is changing on DATE1 & @BOD TANKS-A
Show values
Sum of @XRESULTS
Formulas
@EOD TANKS
If ({SAMPLE.SAMPLE_TYPE}= "SPC-EOD-Conc Strg Tk" and {SAMPLE.TEXT4} like "*902*")
then
"EOD Tk 902"
else
If ( {SAMPLE.SAMPLE_TYPE}= "SPC-EOD-Conc Strg Tk" and {SAMPLE.TEXT4} like "*903*" )
then
"EOD Tk 903"
else
If {SAMPLE.SAMPLE_TYPE}= "SPC-EOD-Conc Line"
then
"EOD Con Line" else "Bad Data"
@BOD TANK
If ({SAMPLE.SAMPLE_TYPE}= "SPC-BOD-Conc Strg Tk" and {SAMPLE.TEXT4} like "*902*")
then
"BOD Tk 902"
else
If ( {SAMPLE.SAMPLE_TYPE}= "SPC-BOD-Conc Strg Tk" and {SAMPLE.TEXT4} like "*903*" )
then
"BOD Tk 903"
else
If {SAMPLE.SAMPLE_TYPE}= "SPC-BOD-Conc Line"
then
"BOD Con Line" else "Bad Data"
@XRESULTS
if isnumeric({SAMPLEPARAM.SRESULT}) then
val({SAMPLEPARAM.SRESULT})
else
if left({SAMPLEPARAM.SRESULT},1) = "<" then
0
else
val(mid({SAMPLEPARAM.SRESULT},2))
Thanks,
-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 two formulas to bring in specific sample types into two line graphs {@EOD TANKS} and {@BOD TANKS}. The problem is:
The line graphs are still showing sample types that I am not specifying in the formula. I only want lines for the sample types I'm asking for in the formula. What am I missing?
grouping by DATE1 (production date)
Line graph A is located in section RHb
The graph is changing on DATE1 & @EOD TANKS-A
Show values
Sum of @XRESULTS
Line graph B is located in section RHc
The graph is changing on DATE1 & @BOD TANKS-A
Show values
Sum of @XRESULTS
Formulas
@EOD TANKS
If ({SAMPLE.SAMPLE_TYPE}= "SPC-EOD-Conc Strg Tk" and {SAMPLE.TEXT4} like "*902*")
then
"EOD Tk 902"
else
If ( {SAMPLE.SAMPLE_TYPE}= "SPC-EOD-Conc Strg Tk" and {SAMPLE.TEXT4} like "*903*" )
then
"EOD Tk 903"
else
If {SAMPLE.SAMPLE_TYPE}= "SPC-EOD-Conc Line"
then
"EOD Con Line" else "Bad Data"
@BOD TANK
If ({SAMPLE.SAMPLE_TYPE}= "SPC-BOD-Conc Strg Tk" and {SAMPLE.TEXT4} like "*902*")
then
"BOD Tk 902"
else
If ( {SAMPLE.SAMPLE_TYPE}= "SPC-BOD-Conc Strg Tk" and {SAMPLE.TEXT4} like "*903*" )
then
"BOD Tk 903"
else
If {SAMPLE.SAMPLE_TYPE}= "SPC-BOD-Conc Line"
then
"BOD Con Line" else "Bad Data"
@XRESULTS
if isnumeric({SAMPLEPARAM.SRESULT}) then
val({SAMPLEPARAM.SRESULT})
else
if left({SAMPLEPARAM.SRESULT},1) = "<" then
0
else
val(mid({SAMPLEPARAM.SRESULT},2))
Thanks,
-CJ
SQL2005// CRXIr2// XP Pro
"Progress lies not in enhancing what is, but in advancing toward what will be"
-KHALIL GIBRAN 1883-1931