I'm working in ArcGIS Pro 3.6.3.
I am using this expression to calculated if a feature has a "Y" in that field.
var esaCount = 0
if ($feature.Hydric=="Y") {esaCount+=1}
if ($feature.FEMA_Flood=="Y") {esaCount+=1}
if ($feature.Depressions=="Y") {esaCount+=1}
if ($feature.NaturalAreas=="Y") {esaCount+=1}
if ($feature.Bedrock=="Y") {esaCount+=1}
if ($feature.Shoreland=="Y") {esaCount+=1}
if ($feature.SteepSlope=="Y") {esaCount+=1}
if ($feature.WetlandBuffer=="Y") {esaCount+=1}
if ($feature.Wetland=="Y") {esaCount+=1}
if ($feature.GWPA=="Y") {esaCount+=1}
return esaCount
If I apply it to the Unique Values Symbology, it works as expected.
If I try to use it with Graduated Colors or Symbols, or Unclassed Colors the result is always 1.