• If you want to have this as a calculated measure in your cube you can create one from Visual Studio Business Intelligence Dev Studio.

    You may find this useful:

    http://msdn.microsoft.com/en-us/library/ms166568.aspx