How to calculate an AVG of numbers in a column "A" where only including records containing value "X" in the column B

Could somebody help with a formula? Thanks in advance :slight_smile: