Net revenue retention (NRR) and GRR in DAX

How to calculate net revenue retention and gross revenue retention for subscription businesses, the recurring revenue of a customer group twelve months later including expansion, contraction and churn, a worked example, the cohort method, monthly against annual NRR, and the DAX on an MRR model.

Short answer: net revenue retention (NRR) = recurring revenue today from the customers you had 12 months ago / their recurring revenue 12 months ago. It includes their expansion and subtracts contraction and churn, and excludes new customers. Gross revenue retention (GRR) is the same without expansion, so it cannot exceed 100%. With 1,000k MRR a year ago, +180 expansion, -40 contraction and -90 churn from those customers: NRR = (1,000 + 180 - 40 - 90) / 1,000 = 105%, GRR = (1,000 - 40 - 90) / 1,000 = 87%.

NRR above 100% means the existing base grows on its own, even with no new sales. GRR shows how much of the base is kept; together they separate "we keep customers" from "the customers we keep buy more".

How is it calculated?

ItemMRR
Starting MRR (1 Oct 2025)1,000
Expansion by those customers+180
Contraction by those customers-40
Churn of those customers-90
Their MRR on 30 Sep 20261,050
New customers since (not counted)260
Customers active on 1 Oct 2025, MRR (k)
  • NRR = 1,050 / 1,000 = 105%
  • GRR = (1,000 - 40 - 90) / 1,000 = 87%
  • NRR
  • GRR
0255075100125Q4 25Q1 26Q2 26Q3 26
NRR and GRR, trailing 12 months (%)

What is the DAX?

Using the MRR measure (MRR at the last date of the selection) per customer:

NRR 12M =
VAR D = MAX ( 'Date'[Date] )
VAR D0 = EDATE ( D, -12 )
VAR Base =
    ADDCOLUMNS (
        FILTER (
            VALUES ( Subscriptions[Customer ID] ),
            CALCULATE ( [MRR], 'Date'[Date] = D0 ) > 0
        ),
        "@Start", CALCULATE ( [MRR], 'Date'[Date] = D0 ),
        "@End", CALCULATE ( [MRR], 'Date'[Date] = D )
    )
RETURN DIVIDE ( SUMX ( Base, [@End] ), SUMX ( Base, [@Start] ) )

GRR 12M =
VAR D = MAX ( 'Date'[Date] )
VAR D0 = EDATE ( D, -12 )
VAR Base =
    ADDCOLUMNS (
        FILTER (
            VALUES ( Subscriptions[Customer ID] ),
            CALCULATE ( [MRR], 'Date'[Date] = D0 ) > 0
        ),
        "@Start", CALCULATE ( [MRR], 'Date'[Date] = D0 ),
        "@End", CALCULATE ( [MRR], 'Date'[Date] = D )
    )
RETURN DIVIDE ( SUMX ( Base, MIN ( [@End], [@Start] ) ), SUMX ( Base, [@Start] ) )

MIN ( [@End], [@Start] ) caps each customer at their starting MRR, which removes expansion and keeps contraction and churn: that is GRR. A blank end (churned) counts as zero.

Why measure over 12 months?

Monthly NRR (for example 100.4%) is hard to read and swings with renewals. The trailing 12-month version compares the same customers a year apart and matches how investors and boards read it. Show it quarterly as a trend, as in the chart.

What goes wrong?

  • Counting new customers. NRR is only about the starting group; new customers belong in MRR growth.
  • GRR above 100%. Expansion slipped in; cap each customer at the start.
  • Price increases. They raise NRR without customers buying more; note them.
  • Small bases. One large account's upgrade can move NRR by points; show the top movers.

Where can you check this?

Where do you start?

Build MRR per customer at month end, then NRR and GRR over 12 months by quarter. LTV to CAC brings acquisition cost into the picture.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.