Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to keep track of referrals, 3 referrals deep?

Featured Replies

I'm trying to build a DB that I can enter in a customer, and how much he spent per month, then track who referred him. The problem is Customer A earns 1 point for every dollar spent in a month, he also earns 1 point for every dollar spent by someone he refers (Customer B). But Customer B refers Customer C. Customer A receives 1/2 a point for every dolar customer C spends, and 1/4 point for every dollar customer D spends, who is referred by Customer C.

I sincerely apologize for the terrible and confusing example, but I need a way to enter in every customer's amount spent, then caclulate the number of points each person earns in that period...

Any help would be appreciated. Thanks guys.

Interesting issue.

How far back does the referral go?

I can see a self-join and a calculation that sums the related records * 0,5 which will automatically half the amount for each referal back.

The devil is in the detail though.

The devil is indeed in the details - and while I can see "3 referrals deep" in the title, it's the spending part that's not quite clear to me. Will there be a single amount spent by a person in each month - or can a customer spend several amounts in the same month?

  • Author

The devil is indeed in the details - and while I can see "3 referrals deep" in the title, it's the spending part that's not quite clear to me. Will there be a single amount spent by a person in each month - or can a customer spend several amounts in the same month?

Yes, but basically what I will do is use Quickbooks and pull how much total was spent in each month by each customer, then i will place all the amounts spent by each customer, and then calculate how much each person earns. I don't need it so much for accounting, as a glorified calculator to tell me how much to pay people. A history would be nice as well, to see how much people earned total over the year, etc, but the primary goal is to track the referrals and be able to calculate how much they earn each month.

Interesting issue.

How far back does the referral go?

I can see a self-join and a calculation that sums the related records * 0,5 which will automatically half the amount for each referal back.

The devil is in the detail though.

I have only had the program a few months, and I have done them all manually, but as it's growing, it's clear I need a computerized system. I would start it from now on, I don't need to import any data. Thanks!

then i will place all the amounts spent by each customer

Well, that's the crucial point here: where will you place those amounts. If it's in the Customers table, then you can have only one amount per customer at a time. Which may be fine, if - as you say - you just want to calculate the points ad hoc, without keeping history. In fact, it's very simple to do it this way.

  • Author

Well, that's the crucial point here: where will you place those amounts. If it's in the Customers table, then you can have only one amount per customer at a time. Which may be fine, if - as you say - you just want to calculate the points ad hoc, without keeping history. In fact, it's very simple to do it this way.

Any chance you could point me in the right direction, or let me know the way to do it? Thanks.

I was waiting for you to confirm one amount per customer at a time is satisfactory.

  • Author

I was waiting for you to confirm one amount per customer at a time is satisfactory.

Oh, ok, sorry. Yes, that's all I need. History would be great, and I can work on that later, but if I can at least get the calculation part up and running, that will help me to do the reports now. Thanks.

  • 2 weeks later...
  • Author

See if this helps:

Hey, I GREATLY appreciate your assistance. I haven't been back to work for a while, but I just downloaded it and it appears to do everything I need! Thank you again... Maybe you can send me your email so I have it on file in case I do a big job and need a consultant? Thanks.

I've sent you a private message.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.