Hello,
I am trying to figure out a meaningful symbology for my data.
I have a submission that has 3 stages on which they either pass or fail. I want to be able to symbolize based on the main two stages and the third would only be if first two stages pass.
These are the variations I want to achieve when symbolizing:
Stage 1 & Stage 2 Pass
Stage 1 Pass & Stage 2 Fail
Stage 1 Fail & Stage 2 Pass
Stage 1 , 2, 3 Pass.
This is the sample expression I have written but it doesn't show what I need.
var Stage1P= $feature.inspectionresult
if (Stage1P=="Pass")
return "Stage 1 Pass";
var Stage1F= $feature.inspectionresult
if (Stage1F=="Fail")
return "Stage 1 Fail";
var Stage2P= $feature.installationresults
if (Stage2P=="Pass")
return "Stage 2 Pass";
var Stage2F= $feature.installationresults
if (Stage2F=="Fail")
return "Stage 2 Fail";
var Stage3P=$feature["ns_serviceentrance"]
if (Stage3P=="Pass")
return "Stage 3 Pass";
var Stage3F=$feature["ns_serviceentrance"]
if (Stage3F=="Fail")
return "Stage 3 Fail"
if (Stage1F=="Fail" && Stage2P=="Pass")
return "Stage 1 Fail & Stage 2 Pass"
if (Stage1P=="Pass" && Stage2F=="Fail")
return "Stage 1 Pass & Stage 2 Fail"
if (Stage1P=="Pass" && Stage2P=="Pass" && Stage3P=="Pass")
return "Stage 1-2-3 Pass"
Appreciate any help on this.