You can use a subquery in the baq to return the Max value using effective date or revision number.
@ckrusen covered it pretty well here…