I am using advanced formatting in an indicator to perform a calculation.
My $datapoint has a filter where FIELD1 = X
And my $reference refers to the same layer where FIELD1 = Y.
When using a category selector where the FIELD2 = A, $datapoint is always empty/no values are returned. This is known and expected. I'm trying to set up my Arcade so that it ignores empty values and still runs the calculation on $reference. Is this possible? So far I'm only getting No Data results when FIELD2 = A.
Here is my code:
var value1 = $reference.SUM_FIELD3 * 25;
var value2 = IIF(IsEmpty($datapoint.SUM_FIELD3), 0,$datapoint.SUM_FIELD3);
var total = value1 + value2;