In your User model you should have this getter
public function getPoints() { return $this->hasMany(\frontend\models\Points::className(), ['user_id' => 'id'])->sum('value'); }
In your UserSearch model you can do
public function search(...) { $query = User::find()->joinWith('points');
Now you can add this column to use this column in your sorts and filters.
source share