Hi! I have added several layers to my map but want to change the values to 1-5 rather than having ranges such as 16-134, I have tried:
var density = $layer.Median
var ranking = When(density <=604 && density >= 605, '1',
density >=429 && density < 1604,'2',
density >= 278 && density <= 428, '3',
density >= 134 && density <= 278, '4',
density <16 && density >= 134, '5', 'na')
but recieve the error "Runtime Error: Cannot call member property on object of this type. Median"
I have also tried IIF statements but that also did not work. Any advice? thanks!