Creating and managing plan groups

You’ll need to be a Staff, Admin or Owner user in ChartMogul Subscription Analytics to create and manage plan groups. Learn more about user roles and permissions.

Create plan groups to filter your data by plans that are all related in some way, such as all monthly plans. Select the plans to include in your group manually or create a smart plan group that is always up-to-date using criteria you define. Plans can also be grouped using our API.


Here's what we cover in this article:


Before you begin


Creating a plan group

To create a plan group from the plan group manager:

  1. Go to Settings & Data > Manage > Plans.
  2. Select the Plan groups tab.

    Screenshot of the Plans page with the Plan groups tab selected.

  3. Click Add Plan Group.

To create a plan group when applying a plan filter:

  1. Go to any chart, customer list or dashboard and click the Apply a filter or saved segment   button.
    Screenshot of the Monthly Recurring Revenue chart showing the location of the Apply a filter or saved segment button.
  2. Select Plan as a filter.
  3. Click Add Plan Group.
    Screenshot of the plan and plan group selection dropdown showing the Add Plan Group button.

Follow the instructions below to create a manual or smart plan group.


Creating a manual plan group

Manual plan groups are collections of plans you select manually. Unlike smart plan groups, they don’t update automatically based on set criteria.


To create a plan group manually:

  1. Go to Settings & Data > Manage > Plans and click Add Plan Group.
  2. Make sure Manual Selection is selected.
  3. Define a Name for the new plan group, then select the plans you want to include. Use the search box to search for plans. Select Use regex to use regular expressions.
  4. Click Save.
  • Screenshot of the Add Plan Group dialog highlighting the Name field, the Manual Selection tab and the Save button.


ChartMogul adds your new plan group to the plan group manager and Plans filter drop-down.


Creating a smart plan group

Smart plan groups update automatically based on set criteria. When a new plan meets the criteria, it is automatically included in the corresponding groups. ChartMogul has three default smart plan groups: monthly, quarterly and annual.

Screenshot of the plan and plan group selection dropdown showing three smart plan groups: All monthly plans, All quarterly plans, and All annual plans.

To create your own smart plan group:

  1. Go to Settings & Data > Manage > Plans and click Add Plan Group.
  2. Select SMART Selection.
  3. Under Plan Name or ID contains the following text, enter text that must be present in the plan name or ID.  Select Use regex to use regular expressions.
  4. Optionally, select one of the following under Plan Billing Interval is:
    • Any
    • Daily
    • Weekly
    • Monthly
    • Quarterly
    • Annually
  5. The dialog will show a list of plans matching your criteria. Click Save.

ChartMogul displays your smart plan group in the drop-down when it includes plans that meet the criteria. For instance, if you have no quarterly plans, then the group All quarterly plans is not displayed. Smart plan groups are not included in API responses. Default smart plan groups cannot be edited or deleted.

The service period of a plan is determined by interval units and interval counts. Therefore, there are multiple ways of representing plans of different lengths. For instance, a yearly plan could be represented as having a monthly interval that repeats 12 times, a yearly interval that repeats once and so on.

The combination of interval units and interval numbers for each default smart plan group is broken down below.

  • All monthly plans: month × 1; week × 4 – 5, day × 28 – 35
  • All quarterly plans: quarter × 1; month × 3; week × 12 – 14; day × 84 – 98
  • All annual plans: year × 1; quarter × 4; month × 12; week × 52 – 53; day × 364 – 371

Regular expressions

Regular expressions (regex) are patterns used to match text based on specific sequences of characters or rules. They make your searches more flexible.

Let’s say you want to create a manual plan group of Platinum and Gold plans. Without regular expressions, you must first look for plans containing the word "Platinum" and then repeat this process for the word "Gold."

With Use regex selected, simply type "(Platinum|Gold)", and ChartMogul will return all plans whose name or ID contain either "Platinum" or "Gold."

It’s not possible to create a similar smart plan group without regex. You can only create two separate groups: one for "Platinum" plans and one for "Gold" plans. Selecting Use regex allows you to match plans that have either of these words.

Regex searches are case-sensitive.

Here are example regular expressions to use when creating manual and smart plan groups:

Regex

Meaning

Example matches

(Platinum|Gold)

Contains "Platinum" or "Gold"

  • Enterprise Gold
  • Gold Annual
  • Platinum Max

(Platinum|Gold|Silver)

Contains at least one of "Platinum", "Gold" or "Silver"

  • Platinum Plus
  • Enterprise Silver
  • Silver Value
  • Gold Pro

(Volume|volume|VOLUME)

Contains one of the capitalization variants of "volume"

  • Volume
  • volume
  • VOLUME

(?=.*Silver)(?=.*Enterprise)

Contains "Silver" and "Enterprise"

  • Silver Enterprise
  • Enterprise Silver Pro

(?=.*Silver)(?=.*Enterprise)(?=.*Max)

Contains all of "Silver", "Enterprise" and "Max".

  • Silver Enterprise Max
  • Enterprise Silver Pro Max

^(?!.*(Growth|Enterprise|Starter).*)

Does not contain "Growth", "Enterprise" or "Starter".

  • Silver Basic
  • Volume Plus

^Enterprise

Starts with "Enterprise"

  • Enterprise Regular
  • Enterprise Premium

Pro$

Ends with "Pro"

  • Gold Pro
  • Silver Enterprise Pro

Enterprise.*Pro

Contains a phrase of any length starting with "Enterprise" and ending with "Pro"

  • Enterprise Pro
  • Enterprise Annual Pro Starter
  • Gold Enterprise Flex Pro

\d

Contains a digit

  • Premium 1
  • Silver 500

\d{3}

Contains a sequence of at least three digits

  • Bronze 100
  • Platinum 1000

[5-9]

Contains a digit from 5 to 9

  • Gold 900
  • Starter 50

Learn more about regular expressions or test them in action.


Managing plan groups

View all plan groups by navigating to Settings & Data > Manage > Plans and selecting the Plan groups tab.


Plan groups are displayed as a table with two columns: Name and UUID. Smart plan groups are marked by the lightning bolt symbol.

Screenshot of the Plans page with the Plan groups tab selected.


Editing a plan group

To edit a plan group, click the pen icon.

Screenshot of the plan group table with the pen icon highlighted.


Change the name or type of selection (manual or smart). For a manual plan group, adjust the selected plans. For a smart plan group, update the criteria. Click Save to apply your changes.


Screenshot of the Update Plan Group dialog with the Save button highlighted.


Deleting a plan group

Deleting a plan group is permanent.

To delete a plan group, click the trashcan icon. Click OK to confirm.

Screenshot of the plan group table with the trashcan icon highlighted.

Comparing plan group segments

You can compare plan groups using segmentation. To compare two plan groups, navigate to a chart and click the Apply a filter or saved segment button.


Screenshot of the Monthly Recurring Revenue chart with an arrow pointing to the Apply a filter or saved segment button.


Select Plan > is one of and one of the plan groups listed at the top. Click Add to add a segment to the chart.

Screenshot of the plan and plan group selection dropdown with the Add button highlighted.

Repeat the steps to add a segment for a second plan group.


With both segments applied to the chart, you can compare the two plan groups. In the example below, the MRR from annual plans is larger than the MRR from monthly plans.

Screenshot of the Monthly Recurring Revenue chart comparing two segments: All monthly plans and All annual plans.

Still need help? Contact Us Contact Us