I'm trying to set an Approver field (Person or Group) to a SharePoint Security Group based on the value of the department field. Is this possible to do within Powerapps or would it be better to create a Flow?

I'm trying to set an Approver field (Person or Group) to a SharePoint Security Group based on the value of the department field. Is this possible to do within Powerapps or would it be better to create a Flow?