Associations are not supported in global filters. Does the error happen when the filter is disabled? If not, then the problem is you're using this unsupported Ledger.Ledger
construction.
But you can use it this way:
[FilterDef('BookingRevenue', '{$alias).LedgerId < 1000')]