WAU: new and returning, web, 4 weeks from March 10, 2025
Instructions
A week starts on Monday (date_trunc('week', …)). For users of the platform 'web', count for each week from March 10, 2025 to April 6, 2025 inclusive (by event_time): wau (the number of distinct users with at least one event in that week), new_users (how many of them signed up (users.signup_at) in that same week), returning_users (how many signed up in one of the earlier weeks) and returning_pct (returning_users / wau × 100, rounded to 1 decimal place). Output week (the date of the Monday, type date), wau, new_users, returning_users, returning_pct. Sort by week.
Hints
Each next one is more detailed and costs more
Query
Result
Click Run to see the query result, or Check to submit your solution.
Dataset schema
Table relationships
- N:1Many-to-one
events.→user_id users.id - N:1Many-to-one
purchases.→user_id users.id
Table data
Select a table in the diagram or list to view its rows.