StangFAST01 - new users monthly [ Big Number ]
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
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- forked from 01 - new users monthly @ https://flipsidecrypto.xyz/edit/queries/8ceba136-b558-46d8-8598-abf79e95ffab
with
new_users AS
(
SELECT
min( a.block_timestamp ) AS min_date
, a.origin_from_address AS new_users
FROM
ethereum.core.ez_dex_swaps a
WHERE
a.platform LIKE 'uniswap%'
GROUP BY 2
ORDER BY 1 DESC
)
,
final AS
(
SELECT
date_trunc( 'month' , a.min_date ) AS "date"
, count( DISTINCT a.new_users ) AS "new users"
, sum( "new users" ) over ( ORDER BY "date" ASC ) AS "total new users"
FROM
new_users a
WHERE
"date" >= '2023-01-01'
AND "date" < dateadd( 'month' , -1 , current_date )
GROUP BY 1
ORDER BY 1 DESC
)
SELECT
avg( "new users" ) , sum( "new users" )
FROM
final
Run a query to Download Data