In QGIS 2 you could perform a weighted point within a polygon layer using Processing toolbox > Vector Analysis > Count points in polygon (weighted)
.
I could well be missing something, but I can't find the same function in QGIS 3 (screenshot below). Has it been superseded by another function?
Maybe it requires a plugin?