Query editor
WITH avg_lifespan AS (select avg(months_active) as avg_user_lifespanfrom query_4667390), stat as (selectcount(distinct call_tx_signer) as users-- , count(distinct date_trunc('month' , call_block_date ) ) as months_active, sum(amount_usd) as total_revenue-- , avg(months_active) as avg_user_lifespan, sum(amount_usd) / count(distinct call_tx_signer) / count(distinct date_trunc('month' , call_block_date ) ) as arpu_app-- , sum(amount_usd) / count(distinct call_tx_signer) / count(distinct date_trunc('month' , call_block_date ) ) * avg(months_active) as ltv_appfrom query_4667115)-- limit 20-- group by 1selectusers , total_revenue as total_app_revenue , avg_user_lifespan , arpu_app, arpu_app * avg_user_lifespan as ltv_appfrom avg_lifespan, stat