Cathy Liu
09/01/2026, 5:00 AMkapa.ai
09/01/2026, 5:00 AMRev LY (M5).
Alternative Solutions If you need to rank while excluding zero/null metric values, you can use MAQL:
1. Incorporate the condition into your metric definition:
You can update or create a custom MAQL metric using WHERE TOP/BOTTOM IN and include the condition directly in the ranking calculation [WHERE TOP or BOTTOM IN; Slack forum]:SELECT {metric/your_metric}
WHERE BOTTOM(5) IN (
SELECT {metric/vs_LY_percent} BY {attribute/venue}, ALL OTHER
WHERE {metric/Rev_LY} <> 0
)
2. Filter via MAQL at the metric level without visual filters:
You can define the metric itself to only evaluate where Rev_LY <> 0 before ranking or aggregating. đ 0 button đ 0 button âšī¸ Tip: Mention @kapa.ai in the thread for follow-ups.
đ Our Support team monitors all messages and will jump in if needed.