Roadmap
New FeatureDeployed

Advanced customer report with grouping by custom fields

Descrição

Create a custom report for the customer base that allows grouping, filtering, and aggregating information using selection-type custom fields, tags, and funnel stages. This makes it easier to analyze specific customer segments, measure funnel conversions, and get dynamic lists for sales and support actions, without relying on external spreadsheets.

The user will be able to choose which columns to display, select one or more select-type custom fields, tags, or funnel fields to group results, and apply time or owner filters. There will be basic aggregation options (count, sum, average) and the ability to save report templates and export results in a compatible format for external use. The interface should be simple, with field selection and data preview before final generation.

The expected result is a practical report builder that lets sales and support teams quickly identify customer segments, track funnel performance, and export actionable insights for campaigns or follow-ups.

How to use

Advanced Reports User Guide

How to set up and generate custom reports

Step 1: Prepare the base JSON

Before creating the report, you need a JSON file with sample data:

  1. On the Customers page, apply the filters you want (stages, tags, etc.)
  2. Click the export button
  3. Select "Export as JSON"
  4. Save the file (example: clientes_setembro.json)

Tip: Use data from a representative period (e.g. last month)


Step 2: Create a new configuration

  1. On the Customers page, click the "Advanced Reports" button (purple icon)
  2. Click "New configuration"
  3. The 5-step wizard will open

Wizard — Step by step

Step 1: JSON upload

  1. Click "Choose file" or drag the JSON into the area
  2. The system will automatically analyze:
    • How many records it has
    • Which fields are available
  3. Click "Next"

Step 2: Configure groupings

Here you define how data will be grouped (like a pivot table).

Practical example:

If you want a report by Source and then by Status:

  1. Click "Add first grouping"
  2. Select the field: Source (Origin channel)
  3. Set the column title: "Source"

Smart normalization (optional)

To unify variations (e.g. "Facebook", "facebook", "fb"):

  1. Click "Add normalization rules"
  2. The system automatically suggests similar groups
  3. Click "Apply" on groups that make sense
  4. The pending list shrinks as you process them

Blank values (optional)

  • Check "Show blank values at the end" if you want to include records without this field filled
  • Set a label: e.g. "Not informed", "No source"

Add more levels

  • Click "Add grouping level" to create sub-groupings
  • Example: Level 1 = Source, Level 2 = Status

Click "Next"


Step 3: Total column

  1. Check "Show total column" (recommended)
  2. Set the name: "Total"
  3. Click "Next"

Step 4: Subdivisions

Here you create columns that break the total into specific categories.

Example: Reasons for not buying

  1. Click "Add first subdivision"
  2. Set the title: "High price"
  3. Check what to show:
    • Quantity (title: "High price")
    • Percentage (title: "% High price")

Configure filters:

  1. Click "Add condition"
  2. Select the field: "Reason for no treatment"
  3. Enter terms: high price, too expensive, high value
  4. Match type: "Contains"
  5. Operator: AND (all conditions) or OR (any condition)

Term suggestions

The system shows the most common values for the field:

  • See how many records each value has
  • Click values to add them automatically

Live preview

  • Shows how many records match the filter
  • E.g. "Preview: 45 records (23.5%)"
  • If it shows 0, adjust terms or match type

Add more subdivisions

  • Click "Add subdivision" to create other columns
  • Example: "Bought from competitor", "Did not reply", "No interest"

"Other" column (optional)

At the end of the page, you can enable a column for records that did not fit any subdivision:

  1. Check "Enable"
  2. Set the title: "Other"
  3. Choose what to show: Quantity and/or Percentage
  4. Select which subdivisions to subtract from the total:
    • None = subtract ALL
    • Check only those you want to subtract
    • Example: If you only check "High price" and "No interest", "Other" will be: Total - (High price + No interest)

Click "Next"


Step 5: Review and save

  1. Review the entire configuration
  2. See the preview of CSV headers that will be generated
  3. Read the notice about required filters
  4. Set a name for the configuration: e.g. "Monthly report - Sources"
  5. Click "Save configuration"

Generating the report

After saving, you can generate the report at any time:

Required conditions:

  1. On the Customers page, apply a registration date filter

    • Required: Range of at most 6 months
    • Example: 06/01/2024 to 11/30/2024 (valid)
    • Example: 01/01/2024 to 12/31/2024 (invalid — too large)
  2. Apply other desired filters (optional):

    • Stages
    • Tags
    • Custom fields

Export:

  1. Click "Advanced Reports"
  2. Find the saved configuration
  3. Click the "Export CSV" button (download icon)
  4. Wait for processing (may take a few seconds)
  5. The CSV file will download automatically

Example of final result

Generated CSV:

Source,Total,Facebook,% Facebook,Instagram,% Instagram,Other,% Other
Google Ads,100,45,45.0,30,30.0,25,25.0
Facebook,80,75,93.8,0,0.0,5,6.2
WhatsApp,50,10,20.0,15,30.0,25,50.0
Not informed,20,0,0.0,0,0.0,20,100.0

You can open this CSV in Excel, Google Sheets, or any spreadsheet tool!


Important tips

Best practices

  1. Test with small data first

    • Use 1 month of JSON to test
    • Then expand to longer periods
  2. Normalization is your friend

    • Unify variations before generating the report
    • Saves manual cleanup time later
  3. Use specific filters

    • The more specific, the more useful the report
    • Example: "Facebook leads from last quarter"
  4. Name configurations well

    • Use descriptive names: "Monthly report - Sources and reasons"
    • Makes them easier to find later
  5. Blank values

    • Always consider enabling so you do not lose data
    • Helps identify fields that need to be filled

Cautions

  1. Date filter is required on export

    • The system will block if it is missing
    • Maximum 6 months for performance reasons
  2. Filter terms

    • Use terms that actually exist in the data
    • Check suggestions to be sure
  3. Subdivisions can overlap

    • One customer can fall into multiple categories
    • "Other" accounts for this and never goes negative
  4. First letter case matters

    • "facebook" is different from "Facebook"
    • Use normalization to fix this

Common problems

"Preview: 0 records"

Solution:

  • Check that terms are correct
  • Try "Contains" instead of "Exact"
  • Consult the suggested values list

"Date filter required"

Solution:

  • Go back to the Customers page
  • Apply registration date filter
  • Make sure the range is ≤ 6 months

"Blank values do not appear"

Solution:

  • In Step 2, check "Show blank values"
  • Set a name for them

"Other column is zero"

Solution:

  • Normal if subdivision sum = total
  • Check you selected the right columns to subtract

Use cases

1. Lead source report

  • Grouping: Source
  • Subdivisions: Facebook, Instagram, Google, WhatsApp
  • Other: Less common sources

2. Analysis of reasons for not buying

  • Grouping: Status
  • Subdivisions: High price, Bought from competitor, No interest
  • Other: Various reasons

3. Hierarchical report

  • Level 1: Source
  • Level 2: Status
  • Subdivisions: Product interest types
  • Date filter: Last quarter

Need help?

Contact technical support and have ready:

  • Name of saved configuration
  • Period of data you are trying to export
  • Screenshot of error screen (if any)

Last updated: October 2024 Version: 2.0

Progresso

100%

Clínica Moshé Bergel · 30 de outubro de 2025