With user_tx_table as (select
block_timestamp::date as dayz,
from_address,
count(distinct tx_hash) as txs
from polygon.core.fact_transactions
where block_timestamp::date >= '2023-01-01'
group by 1, 2 )
--status = 'SUCCESS'
select
dayz,
{{param_IgVW}}(txs) as stats_tx_count
from user_tx_table
group by 1