Churned customers from Azure SQL
Introduction
Planning to use data about your churned customers from Azure SQL to start making predictions in Faraday? Great!
Since Azure SQL is natively supported by Faraday, it's easy to onboard your data and use it for predictions by creating a Churned customers cohort.
Cohorts are the building blocks of your predictions in Faraday, and your Churned customers cohort will enable you to predict how likely a customer is to churn. Follow the steps below to create your Churned customers cohort.
Getting started
Make sure you have a Faraday account (signup is free!) and that it's not in test mode.
Prerequisites
You'll need data representing one of the your churned customers available in Azure SQL. This data must take the form of one of the following:
- Each row represents a single cancellation event that a person could experience in order to become a churned customers
- Each row represents a fully qualified churned customer
You'll also need the following connections available in your Faraday account:
- Azure SQL — or create one first
Shortcuts
Your account may already have a cohort representing your churned customers. Before following the instructions below, check your existing cohorts.
Your account may already have a dataset with Churned customers or Cancellation data. If you see one listed among your existing datasets, you can skip the "Dataset" section below and proceed directly to the "Cohort" section.
Dataset
Connecting your data
First, you'll add data representing your churned customers from Azure SQL to Faraday using a Dataset.
- In the navigation sidebar, choose Datasets.
- Click the New Dataset button.
- Fill out the form
- Wait briefly while Faraday analyzes your data. It shouldn't take long.
Describing your data
Next, you'll help Faraday understand what your data means, starting with recognizing people in your data.
Identities
Your data may contain multiple identities per person, like billing and shipping. Choose one to start with.
- Click the Add identity set button.
- Fill out the form
- Provide a memorable name for this identity set, like "billing," "shipping," or "customer." You can only use lowercase letters, numbers, and underscores here for technical reasons.
- For each identity property listed on the left side of the table, use the dropdown on the right to see if there's a column in your data that contains this kind of data for your chosen identity set. (If not, you can leave that dropdown blank.)
- Click the Finish button.
If there are other identity sets in your data, feel free to use the Add identity set button and repeat the process.
Behavior
Now you have to make a decision about your data:
A. Does each row represent a single cancellation event that a person could experience in order to become a churned customer?
B. Or, alternatively, does each row represent a fully qualified churned customer?
Option A: each row represents a cancellation event
- Click the Add event button.
- Fill out the form:
-
Check the dropdown for an existing event that resembles a cancellation. If you find one, choose it.
-
Otherwise, choose Create a new event stream.
-
Click the Next button.
-
If you're creating a new event stream, enter a memorable name, like "cancellation." You can only use lowercase letters, numbers, and underscores to name event streams.
-
Under the Timestamp section, use the dropdown on the left to choose a column in your data that contains a "timestamp" for when that row's Cancellation event occurred. You may have to use the dropdown on the right to choose the correct format for your timestamp.
-
Skip the Value section.
-
- Click the Finish button.
Option B: each row represents a single churned customer
-
Skip the Events section
-
Click the Add trait button.
-
Fill out the form:
- In the Trait name textbox, enter a memorable name like "is_churned customer_member".
- Choose any column that is guaranteed to be non-empty in your data.
-
Click the Finish button.
You're done connecting your data to Faraday! Now let's use it to define a Churned customers cohort.
Cohort
Your Churned customers cohort is a formal, fluid representation of your churned customers. You'll use this cohort, along with others, as building blocks to configure Faraday to make powerful predictions about your churned customers and others.
Filtering
Here you will specify the qualifications a person needs to meet to be part of this cohort. If everyone in the dataset should be a member, you can skip this section.
Follow the instructions for option A or option B - whichever one you picked above.
Option A: each row represents a cancellation event
-
Click the Add event button.
-
Fill out the form:
-
Click the Finish button.
-
Skip the Traits section.
Option B: each row represents a single churned customer
-
Skip the Events section.
-
Click the Add trait button.
-
From the list of traits, choose the is_churned customer_member trait you created above (you can filter by "User defined" or the search bar to find it easier).
-
Click Next
-
Fill out the form:
- From the dropdown, select Any values (non-null).
Finishing touches
Your new cohort is now ready to use!
Conclusion
With your Churned customers cohort created from a dataset based on Azure SQL churned customers data, you're ready to use your cohort in a prediction!