I want to calculate the average of two fields of type number, and have this average in a third field to make different sorts in views.
- I have a content X which has as fields: A, with the number 6, B, with the number 8;
- I would like a field C, in which would be automatically calculated the average, namely 7;
- The field C would then allow me to do different sorting with views.
Do you know what is the best approach to do this (drupal 8 or 7) ?