Yes, each part of the expression, the sum and the count, return values individually. It is when I attempt to divide the value which is summed using the sum function that is breaks:
{{lookback_gains.sum("change") /2 }}
And produces this error:
“Unterminated RegExp in expression {{lookback_gains.sum(“change”) /2 }}”
In addition to this bug, the Operation feature does not work. It is not clickable although if you type an expression in that contains an operand, it can parse it, which causes it to show up in the Data Formatter.
Clicking on this does nothing
But typing this {{change > 0}}
makes it so the Data Format window displays this:
However, the Select button to save the change does not work and an error is raised about field validation for the value field, even though it contains a value:
So you have to click on Cancel and just rely on what you’ve entered manually. After saving my action file and testing, I see no issues, everything works as expected, so this leads me to believe that there is a bug on the GUI side that prevents the Operation option from being clicked and also one that throws a validation error, even though there does not appear to be any issue with the logic/syntax.
The outcome of testing is:
Could someone please move these posts into the bug section? If additional detail is required for me in order for you to investigate just let me know!