Analysis service should be able to use both the string and integer values of attributes with an enumeration set data type.
If an AF attribute is based off an enumeration set, currently an analysis will only evaluate accurately if that attribute is compared to the string portion of the enumeration set. An analysis should be able to use both strings and integers when evaluating.
Brent Bregenzer commented
It looks like this now works in AF 2018, though I'm not sure in which version the change was made.