Useful for an account balance. Will get the last record for the given month, quarter or year depending on the function used.
At least two paramters: An expression and a date column.
closingBalanceMonth = CLOSINGBALANCEMONTH(SUM(TransactionData[Revenue]),CalenderDate[Date])
closingBalanceQuarter = CLOSINGBALANCEQUARTER(SUM(TransactionData[Revenue]),CalenderDate[Date])
closingBalanceYear = CLOSINGBALANCEYEAR(SUM(TransactionData[Revenue]),CalenderDate[Date])
Note: If the last date, the closing balance date, has no values for the expression used, it will return blank. For example closing balance month is empty in February since there was no revenue data for Feb 29th 2016 in this sample data.