Add to Claude

Guides · Beyond customer lists

Lapsed memberships: who didn't renew in the last 30 days

Tools: sift_count, sift_fix_dry_run, sift_fix_applyWorks with Claude Code

Count the members whose end date fell in the last 30 days and who have no renewal date, and total the fees they paid. In the test file of 24 club members, that is 8 lapsed, worth 860.00 a year, with 3 more due to end in the next 30 days.

Ask your agent

With Sift connected (add it to Claude Code), paste this and swap in your own paths and column names.

Use Sift on /path/to/club_memberships.csv as of 2026-11-01. Count the members whose end_date is within the last 30 days and whose renewed_on is blank, and total their annual_fee. Then count the ones whose end_date is due in the next 30 days and who haven't renewed yet. Then, with /path/to/rules.memberships.json, dry run set_if to write Lapsed in the follow_up column for the lapsed members, and apply it if I say yes.

What Sift sends back

Ended in the last 30 days13 of 24
of which not renewed: lapsed8, fees of 860.00 over 7 (one fee blank)
Ended over 30 days ago, never renewed3
Due to end in the next 30 days, not yet renewed3, fees of 450.00
End date not a date1 ("TBC"), counted in neither, and Sift says so
set_if dry run, then apply8 rows marked Lapsed, 24 rows in and 24 out

A count gives numbers, not names. To get the list, the set_if fix writes Lapsed in a follow_up column on a new copy of the file. Its changes-only file lists the 8 member IDs, one per row. The blank fee is left out of the total and counted, never treated as 0.

How the dates are counted

What to do next

Questions

Why give an "as of" date?
So the count is repeatable. The last 30 days and the next 30 days are measured from the date you give, never from today's clock.
Can it tell me who is due to renew soon?
Yes. due_within_days counts dates from the as-of date up to that many days after it. In the test file, 3 members end in the next 30 days and haven't renewed.
Does it work on an Excel export?
The counts read CSV, Excel, JSON and Parquet. The set_if fix that writes the follow_up column works on CSV only, so save the sheet as CSV for that step.

The same counts work for any end date: subscriptions, contracts, insurance policies, licences.

More guides

Guide Find unpaid invoices by matching invoices to payments Guide Find Active accounts that stopped ordering Guide Dry run, receipt and undo: how Sift changes a file safely