The median is the middle value or the 50th percentile of a data set. To quickly calculate the median in Power BI without DAX formulas refer to this section on summarizing data.
There are two types of median functions
Find the median revenue of sales:
median_revenue = MEDIAN(TransactionData[Revenue])
Use when you want to find the median of an expression
Find the median for the profit:
median_x = MEDIANX(TransactionData,TransactionData[Revenue]-TransactionData[Cost])
Find the median for profit given that the profit is less than $100.
median_profit | profit < 100 = MEDIANX( FILTER(TransactionData,(TransactionData[Revenue] -TransactionData[Cost])<100), TransactionData[Revenue]-TransactionData[Cost])
The functions used above are plotted in Power BI to compare