Guides · Beyond customer lists
Find gym or clinic members with no visit in 30 days
Match the members list to the visits export on the member ID, then count the Active members with no visit in the last 30 days, and write them to a file. In the test files, that is 7 of 13 Active members, paying 254.98 a month between them. 2 of them have never visited.
Ask your agent
With Sift connected (setup takes three steps), paste this and swap in your own paths.
Use Sift to match /path/to/members.csv on member_id to /path/to/visits.csv on member_id, as of 2026-11-01. How many Active members have no visit in the last 30 days, how many never visited, and what is their monthly_fee worth? Then write those members to a file, leaving out anyone who visited in the last 30 days or isn't Active.
What Sift sends back
"In the last 30 days" means 0 to 30 days before the date you give. A visit on 2026-10-02 counts; one on 2026-10-01 doesn't. One visit is dated 31/09/2026, which isn't a real day: Sift says so, and doesn't count it as a visit.
How the file is written
Sift writes the list with sift_prepare_import, the tool it uses to hold rows back before an import. Here it holds back the 9 members who visited in the last 30 days or aren't Active, each with a reason, and writes the other 7 to a file it calls ready. Your agent gets the counts and row numbers, not the rows.
What to do next
- Give the file to whoever calls or emails members. The 5 who used to visit are a different call from the 2 who never came at all.
- One member ID is in the visits but not on the members list. It might be a guest pass or a member missing from the export: check before trusting either file.
- A clinic works the same way: patients and appointments, matched on the patient ID.
Questions
Each member counts once. Sift says when a member has several visit rows, and a member counts as visited if any one of them is in the last 30 days.
Yes. The condition takes any number of days before the date you give. It can't look forward, to visits booked for next month.
No. Sift reads the files on your machine and hands back counts and row numbers. The list file stays on your machine.