Answer by warren for SPLUNK enterprise i am trying to calculate results where if > 4% of failure is anomaly?

The logic appears correct, but why multiply by 100?

Save yourself a step:

| inputlookup sample.csv 
| eval isananomaly = if((Failcount / Totalcount) > .04 , 1 , 0)

from User warren – Stack Overflow https://stackoverflow.com/questions/64249711/splunk-enterprise-i-am-trying-to-calculate-results-where-if-4-of-failure-is-a/64262356#64262356
via IFTTT