Hi all. I’ve created a Customer Relationship Management (CRM) system using Appsheet. Currently under the household section, I have a data row for “Referred By”. This does a great job for me to create charts and dashboards to track the first-level referrals. I would love to be able to track second, third, etc level of referrals so I can create some charts and dashboards for those too. I am stuck trying to think of the best way to do that, if it is possible.
Example: If client A refers client B, I can easily track that. If client B then refers client C, I can also easily track that. I would like to set it up where I can have it show that client A referred client B but also show any clients that client B refers as flowing back up to client A. That way, I can see everything that came from the initial client A referral.
The best way is to build these lists as they are added, rather than trying to construct them later as needed.
I would add 2 columns to allow flexibility in obtaining direct versus indirect referrals:
Direct Referral - a Ref column assigned the Client who referred the new client. This automatically creates the [Related Direct Referrals] column for each Client.
Indirect referrals - an EnumList assigned the LIST of Clients by expression in hierarchy of referrals.
When a new row is added, you only need to look at the current Direct Referral row to build the Indirect Referrals:
Direct Referral = assigned the Client who made the referral.
Now, to get ALL referrals - direct and indirect - initiated from Client A, you would add the [Related Direct Referrals] column to all Clients that INCLUDE Client A in their [Indirect Referals] column. It would be an expression something like:
[Related Direct Referrals] + SELECT(Clients[Client ID], IN([_THISROW].[Client ID], [indirect Referrals]))
That is very helpful, thank you. A couple of questions.
The direct referral would just be added in manually by the user, which makes sense. For the indirect referrals though, will that formula (or a similar formula) be able to pull in all of the indirect referrals to add them automatically, or is that something that would have to still be added in manually? Ideally I want to set it up so that would pull in automatically.
For the all referrals part. Would it make sense to add that in as a 3rd column or is there a better way you’d recommend?
Ideally I want to be able to create charts and dashboards to be able to filter or show how many referrals came from a given individual so I want to make sure I set up my data well so that it will be easy to create those charts in AppSheet. Any additional recommendations would be great.
Automatically…the expression I provided should be assigned to the [Indirect Referrals] column and would be updated each time you add or edit the Client row.
This depends on how you intend to use it which is why I was vague. If your plan is to view this list within the app, then I would add it as a Virtual column so that it stays updated with any data additions or updates.
If you expect to utilize this list only in a report, e.g. a PDF generated report, then I would only implement the expression in the PDF template so it doesn’t contribute to app performance.
Yes, one of the reasons I suggested separate columns. I don’t know what statistics you might report on but at a minimal it could be count of direct referrals and count of indirect referrals. You would need to add additional columns for these numeric columns to visualize counts on a chart. Any other stats you want to capture would be additional columns.
It sounds that you are in a way trying to build a chain of referrals. So if A refers B and B refers C, then C is also linked to A .
If it is so, you could possibly get some ideas from using this sample app
The sample app is about building hierarchy charts. However the concept is based on a hierarchy rank that links the employees in the reporting structure. You could possibly use it to link referral chain.
I played with the Hierarchy Charts sample app and created the following sample app where the customer referral names are linked in an hierarchical way. The sample app can show upto 4 levels of linked referrals which I believe is good enough in any practical scenario.
The table view that displays the client referral links looks like below.