Power Apps contains limited statistical functions (such as average), but unfortunately not this one. You would have to hard-code the formula
Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like. MVP (Business Applications) Visit my blog Practical Power AppsBuy me a coffee