BAQs Calculated Fields - Ability to create a Global Variable

This might work by writing a Store Procedure and calling it as a custom function in the BAQ.