Chapter 1 — Anatomy of Metrics

DAU/WAU/MAU: How Many Users Were Active

16 min

A word that appears 214 times in L.'s log

We won't close this case until you learn the language it's written in. Let's start with DAU. — QUERY

A cadet studies a holographic active-user calculation pipeline while a robot cat watches from a side console.
An “active user” is a definition, not a fact: three definitions applied to the same data produce three different DAU values.

DAU (daily active users) is the number of unique users who were active during a day. WAU covers a week, and MAU covers a month.

But DAU does not arrive as a ready-made number. It comes from a six-step process, and it's worth working through the whole process by hand once. After that, the logic becomes much easier to recognize.

The pipeline: log → number

  1. Start with the event log — rows containing user actions.
  2. Filter by time period: keep the rows whose timestamps fall within the day you need.
  3. Filter by activity event: keep only the rows whose event counts as “activity” under your definition.
  4. Keep the user_id column: you no longer need anything else — timestamps, sessions, properties.
  5. Remove duplicates: one user = one record, no matter how many rows that user generated.
  6. Count the records that remain. That's your DAU.

Walk through the March 14 log fragment from the previous lesson, using app_open as the activity event:

step 1: 9 log rows
step 2: all 9 are from the same day
step 3: keep only app_open → 4 rows (4412 in the morning, 7781, 4412 in the afternoon, 9003)
step 4: user_id → 4412, 7781, 4412, 9003
step 5: remove duplicate 4412 → 4412, 7781, 9003
step 6: DAU = 3

Pay attention to step 5. Cat 4412 opened the app twice — once in the morning and once in the afternoon. That cat counts once toward DAU. That's why DAU ≠ the number of app opens and ≠ the number of sessions.

For the same reason, WAU is not the sum of seven DAU values. A cat who comes back every day contributes 7 to the sum of daily DAU values but only 1 to WAU:

        Mon Tue Wed Thu Fri Sat Sun
Leo:     ●   ●   ●   ●   ●   ●   ●
Mia:     ●   ○   ●   ○   ●   ○   ●
Ginger:  ●   ●   ○   ○   ○   ●   ●
DAU:     3   2   2   1   2   2   3   → sum of DAU = 15
                                     → WAU = 3 (only three unique cats)

The ratio of average DAU for the week to WAU is a useful metric in its own right: it shows what share of the weekly audience is active on an average day. The closer the ratio is to one, the more days per week the average member of the weekly audience is active.

How DAU is builtuser_idtimeevent10109:01app_open10111:15app_open10212:03app_open10313:11purchasefilter: activity eventsuser_id of the kept rows101101102103distinct user_id{ 101, 102, 103 }DAU = 3the repeated 101 does not raise DAU
Six steps from an event log to DAU: log → time period → activity event → user_id → remove duplicates → count.

“Active” is a definition, not a fact

Step 3 contains the most important decision in the pipeline: which event counts as activity. There is no “active: yes/no” column in the log. There are only events, and someone has to decide which ones mean a user was active.

Take one day at Kotomarket — March 14 — and calculate DAU three times using three different definitions. The data stays the same, and the pipeline stays the same. Only step 3 changes:

activity definitionevent in step 3DAU on March 14
“opened the app”app_open10,000
“viewed at least one product”product_view7,400
“added something to the cart”add_to_cart2,100

The largest number is almost five times the smallest. The important point is this: all three are correct — if that's the definition you chose and documented. These are three different metrics, each with its own meaning:

  • app_open measures product reach: how many people opened the product at all. It can be useful for evaluating traffic or responses to push notifications;
  • product_view measures engagement: the person opened the product and started looking at items. That's a stronger signal of interest;
  • add_to_cart measures purchase intent. It's the strictest of the three definitions, so it produces the smallest number.

In the log, L. argues with the team: “Someone who opens a push notification and immediately closes the app isn't active. They're annoyed. If we count annoyance as activity, we're lying to ourselves.” The team kept app_open because competitors used the same definition and they wanted to preserve comparability. That's a reasonable argument too. The important part is that the decision was deliberate and documented.

A common mistake is comparing the DAU of two products without asking how each one defines activity. “Their DAU is one million, ours is two hundred thousand” means little if their activity means opening the app while ours means completing a target action. The same label can refer to different metrics, making a direct comparison meaningless.

The acronym doesn't define the window

The second decision is hidden in step 2: the time period. The word “week” has at least two different meanings, and they produce different numbers.

Calendar window. A week means Monday through Sunday. A month runs from the first day to the last day. This kind of window is easy to compare (“week 11 versus week 10”) and easy to explain, but the periods do not always have the same conditions or length: behavior may differ during a holiday week, and February is two or three days shorter than March.

Rolling window. “The last 7 days including today” or “the last 30 days.” Every day has its own window, so you can plot rolling WAU day by day. Adjacent points usually change less sharply because six of their seven days overlap: each new point adds one day and drops one day.

calendar WAU:   [Mon Tue Wed Thu Fri Sat Sun][Mon Tue Wed Thu Fri Sat Sun]
                 one number for the week     next number

rolling 7d WAU: [Mon ... Sun] → [Tue ... Mon] → [Wed ... Tue] → ...
                 a new number EVERY day

Both approaches are valid. Problems begin when people mix them up, which happens often because both are simply called “WAU.”

The phrase “WAU for the week” doesn't define anything. The acronym tells you that the period is a week long, but it doesn't tell you where the boundaries are. Ask: calendar week or last 7 days?

A common failure mode looks like this: the “Control Panel” shows a rolling 30d MAU line, while the investor presentation shows calendar MAU for the previous month. The numbers don't match, and half a day gets wasted hunting for an “error” that doesn't exist.

One more detail can break comparisons: time zone. If one report cuts days at midnight and another uses Miami time, the day boundary shifts by several hours. Evening and nighttime events can land on different calendar days. That can change daily metrics such as DAU, and hourly charts can also show false “dips” and “spikes” around the day boundary.

Sum of DAU ≠ WAUMonDAU 2TueDAU 3WedDAU 1ThuDAU 2FriDAU 3SatDAU 2SunDAU 2ABCthree peopleΣ DAU = 15that is not how WAU worksWAU = 3correctthe same person on different days counts once in WAU
WAU is not the sum of seven DAU values: each user counts once in the weekly window, no matter how many days they were active.

You can't change a definition without saying so

January. At Kotomarket, average DAU for the month is calculated using app_open, giving 10,000.

February. A new analyst decides that “opened and closed” shouldn't count as activity and switches the calculation to product_view. Average DAU for the month drops to 7,500.

On the “Control Panel” , it looks like this:

January  ████████████████████  10,000
February ███████████████       7,500   −25%

Management sees a 25% drop and declares an emergency. The team spends a week searching for the cause: a release? advertising? competitors? seasonality?

But the cause is the methodology. In this example, the product did not change at all. Step 3 in the pipeline changed — the definition of an active user.

This is not a hypothetical story: half of the “mysterious drops” in L.'s log come from changes like this. That leads to a rule more important than any dashboard:

If you change the definition, recalculate the history. Apply the new definition to the entire historical period you're comparing with the current values, if the raw data allows it. Then every point on the chart measures the same thing. You should still document the definition change in the change log and mark it on the chart.

If you can't recalculate history — for example, because the required events weren't collected in the past — show the new metric as a separate line instead of presenting it as a continuation of the old one.

A common mistake is to quietly “improve” the calculation without telling anyone because the new definition is objectively better. Even when it really is better, an unannounced change makes the chart misleading: the chart implies comparability, but the values are not comparable.

Entry No. 9 in L.'s log: “Three times this year, we searched for the cause of a drop that never happened. Every time, it was a colleague who had improved something in the query. Now we have a rule: every metric change gets an entry in the change log and a marker on the chart.”

One day, three definitions of activity. Run the cell and compare the results. Then change the numbers as if the product had doubled in size and check that the gap between the definitions is still there. round(number, 1) rounds a number to one decimal place.
python
Practice: write the code
The March 14 log contains 13,100 app_open events, and we know that each active user opened the app 1.31 times on average that day. Recover DAU under the definition “active = opened the app” and store it in dau_open. The same log contains 9,620 product_view events, with an average of 1.3 views per active user. Calculate DAU under the definition “active = viewed a product” and store it in dau_view.
python
Practice: write the code
On March 14, DAU = 4,200. For the calendar week containing March 14, WAU = 32,000. For the calendar month containing March 14, MAU = 68,000. Calculate two “stickiness” ratios as percentages: sticky_week = DAU/WAU and sticky_month = DAU/MAU. They show what share of the weekly and monthly audience is active on a single day.
python
Check yourself
Daily DAU for one week is: 100, 100, 100, 100, 100, 100, 100. What can you say about WAU?
Check yourself
DAU in February is 25% lower than in January. You discover that starting February 1, activity is measured using product_view, while it used to be measured using app_open. What should you report?
Key takeaways
  • DAU comes from a pipeline: event log → period filter → activity-event filter → user_id → remove duplicates → count unique users
  • “active” is part of the metric definition: app_open, product_view, and add_to_cart produce 10,000, 7,400, and 2,100 on the same day, and all three numbers can be correct
  • WAU ≠ the sum of seven DAU values; the ratio of average DAU for the week to WAU shows what share of the weekly audience is active on an average day
  • the acronym doesn't define the window: a calendar week and the last 7 days are different metrics; time zone is part of the definition too
  • if you change the definition, recalculate history using the new rule; if you can't produce a comparable historical series, clearly mark the definition change on the chart

Next is a short but important lesson on where percentages come from: numerator, denominator, and the difference between “+20” and “+20%.”