Query editor
SELECTCAST(token_id AS VARCHAR) AS token_id,ROUND(SUM(gross_revenue_usd), 2) AS lifetime_revenue_usd,ROUND(SUM(gross_revenue_usd) FILTER (WHERE sale_month = CAST(DATE_TRUNC('month', CURRENT_DATE) AS DATE)), 2) AS current_month_revenue_usd,COUNT(DISTINCT tx_hash) AS paid_orders,COUNT(DISTINCT buyer) AS unique_buyers,CAST(SUM(CAST(quantity AS DOUBLE)) AS BIGINT) AS units_sold,ROUND(AVG(unit_price_crypto), 8) AS average_unit_price_crypto,MAX(currency_symbol) AS currency_symbolFROM query_7995475WHERE gross_revenue_crypto > 0GROUP BY 1ORDER BY current_month_revenue_usd DESC NULLS LAST, lifetime_revenue_usd DESCLIMIT 30