Functions let you filter/sort your data and do statistical analysis.
For a list of all functions, refer to Basic Functions and Advanced Functions.
When including functions in a calculated metrics formula, always apply the function before dragging in metrics or segments.
Watch this video to understand the use of functions.