How it works...

The implementation of this recipe is fairly straightforward. Our 09_Skewness measure first uses SELECTCOLUMNS to select Column1 from our base table, R09_Table. The SELECTCOLUMNS function returns a one-column table with the column named __Value. Our RETURN statement simply implements the skewness formula using the AVERAGEX function to calculate the mean of the __Value column, the MEDIANX function to calculate the median of the __Value column, and the STDEVX.P function to calculate the standard deviation of the __Value column.