react-awesome-query-builder icon indicating copy to clipboard operation
react-awesome-query-builder copied to clipboard

Function SUM of N fields

Open bartmint opened this issue 3 years ago • 2 comments

Hello, I would like to create a function that will allow me to sum up all available fields of number type and some custom value and compare this sum to the field on the left.

What I mean. After selecting a field, operator (">" for example) and clicking on the "SUM" function, I would like to see a list with all available fields and a custom field for entering a value. Then I can choose which fields I want to sum - possibly all of them.

And in this way create similar functions such as average, min, max etc.

My question is: whether it is currently possible?

bartmint avatar Dec 02 '21 13:12 bartmint

If I understand correctly, in argumnets of SUM function you want to see multiselect widget to select multiple fields. It's not currently possible. Currently you can select only 1 field as an argument for function. Feels like a good feature request for functions suport.

ukrbublik avatar Dec 03 '21 10:12 ukrbublik

Correct

bartmint avatar Dec 03 '21 12:12 bartmint