saeedmznDimension X Transactions Distribution
Updated 2023-03-27
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
›
⌄
with events as (select TX_ID
from flow.core.fact_events
where EVENT_CONTRACT ilike '%Dimension%'
group by 1
),
per_user as (
select
proposer ,
count (DISTINCT tx_id) num_transactions
from flow.core.fact_transactions
where tx_id in (select tx_id from events )
and TX_SUCCEEDED = true
group by 1
)
select case when num_transactions = 1 then 'one Transaction'
when num_transactions BETWEEN 1 and 2 then '1 - 2 transactions'
when num_transactions BETWEEN 2 and 5 then '2 - 5 transactions'
when num_transactions BETWEEN 5 and 10 then '5 - 10 transactions'
when num_transactions BETWEEN 10 and 15 then '10 - 15 transactions'
when num_transactions BETWEEN 15 and 20 then '15 - 20 transactions'
else 'greater than 20 transactions'
end range ,
count (proposer) num_users
from per_user
group by 1
Run a query to Download Data