Calculating the median in a Pivot table. Its alternative method.(Microsoft Excel)

Introducing how to achieve this using only formulas without add-ins or macros.