First, identify the denominator by counting distinct French users who had any event on 2025-08-31. Then, identify the numerator by counting distinct French users who were either caller or callee in at least one video call on that same day. Finally, compute the percentage as numerator divided by denominator, ensuring you use the same user base for both counts.
Pro tip: Clarify whether 'French' refers to the user's country attribute or the event's country; typically, it's the user's country. Also, consider using a single query with conditional aggregation to avoid multiple scans of large tables.
Count distinct users with any event on 2025-08-31 who are French. This represents the daily active users (DAU) for that day.
Count distinct French users who participated in at least one video call on 2025-08-31, either as caller or callee. This requires unioning caller and callee IDs from the video call events.
Use conditional aggregation or subqueries to compute both counts in a single query, then calculate the percentage as numerator divided by denominator.
Ensure that users with multiple events or multiple video calls are counted only once. Also, consider if there are users with no events but still considered DAU (unlikely).
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.