Based on the sample data below I am trying to calculate the percentage
(number / sum of all numbers) * 100
I go to calculate field and create a new field and enter the following, however I keep getting `100%` for each data point. What am I doing wrong with the expression?
var IBPL_Total = sum($feature.data)
var IBPL_PctTotal = ($feature.data/ IBPL_Total)*100
return IBPL_PctTotal
Sample data:
data = (1, 2, 3, 4, 5, 6, 7, 8, 10)