• Very useful function, thank you.

    Hopefully not a stupid question?!! but is there is reason why this is a table-valued function rather than scalar?