Can you allow the summary layer filter field of the summary widget in Web App Builder to allow data to be summarised by a different layer.
For example points in one layer could be filtered if they fall within polygons of another layer.
It would allow for more complex summary statistics.