How use filter with ash.calculation?

You cannot filter on a calculation that is defined in elixir using calculate/3.

calculate :active_customer?, :boolean, expr(amount > 0 and status == :active)

If you define your calculation with an expression, you will be able to use it in filters.