Returns the median numeric value of all metric or KPI Facts in the FactList, ignoring null or NaN values.  If no facts are in the list or all the facts have null or NaN values then return the default value passed to the function or NaN if a default value is not supplied.

// returns a FactList
var list = metrics.get('support response time');

// if list is empty NaN is returned
var median = list.median();

if (!isNaN(median)){
    return median;

Did this answer your question?