Presight
  • 👋INTRODUCTION
    • What is Presight?
    • Core Concepts
      • Metrics
      • Events
      • Segments
        • Source Columns
        • Custom Segments
    • The Presight Workspace
      • Workspace Overview
      • The Data Docs
      • Data Library (Datahub)
  • ➡️DATA IN
    • Connect
      • Data Warehouse
      • Data Connectors
        • API Connector
        • Google Sheets Connection
        • CSV Import
        • Dimensional Dates (Dimdates table)
        • QuickBooks Online
        • HubSpot Connector
    • Sync
    • Tables & Columns
      • Browse & Edit
      • Primary Key
    • Governance
  • ⚙️MODEL
    • Data Relationships
      • Table Relationships
      • Hierarchy
    • Metrics
      • Create Metrics
      • Ownership & Permission
      • Deletion
    • Events
      • Creating Events
    • Custom Tables
      • Table Builder
        • Filter a Dataset
        • Simple Data Enrichment
        • Advanced Enrichment - Segmentation
      • Custom SQL Query
    • Segments & Custom Segments
      • Dimensions from Data Sources
      • Create a New Dimension
    • Formulas
      • Metric Formulas
      • Data Transformation Formulas
  • 📊ANALYSIS
    • The Data Docs
      • Explorations
        • Docs Widgets
      • Reports
      • Dashboards
      • Layout & Beautify
      • Organize
      • Collaboration
    • Data Widgets
      • Charts
        • Query Syntax
        • Data in a Chart
        • Interacting with a Chart
          • Breakdown
          • Chart Filter
          • Time Change
          • Chart Menu
          • View Constituent Records
          • Version views in Chart
        • Chart Configuration
      • Metric Table
        • Creating a Table
        • Interact with a Table
          • Adding Metrics
          • Adding Sections and Organizing metric list
          • Table Filter
          • Table Summaries
          • Quick Chart Creation from Table
          • Timeline Navigation
        • Table Menu
        • Table Breakdown
        • Breakdown Options
        • Interact with Table Metrics
        • [Advanced] Automatic Variance Calculation
      • Records Table
        • Accessing Data Records on-demand
    • Breakdowns & Filters
      • [Advanced] Dimension Path
    • Event Analytics
      • Event Funnel
      • Cohort
      • Event Path
    • Segmentations
      • Metric Segments
      • Filtered Segments
    • Ask AI (Beta)
      • Ask Presight
      • Presight AI in your Chat Tools
  • 📈PLANNING
    • Creating Versions
    • Interacting with Versions
    • Interacting with Future Data
    • Forecasting a Metric
  • 🏛️GOVERNANCE
    • Overview
    • Table Restriction
    • Metric Permission & Sharing
    • Doc Sharing
  • ⬇️DATA OUT
    • Export Data
Powered by GitBook
On this page
  • How to use Cube Builder
  • Supporting Formulas in Cube Builder
  1. MODEL
  2. Custom Tables
  3. Table Builder

Advanced Enrichment - Segmentation

PreviousSimple Data EnrichmentNextCustom SQL Query

Last updated 5 months ago

How to use Cube Builder

The following example will help you to understand how to create a cube/ a table and use it in the workspace.

For instance, you need to know if the customers buying goods in the given month also had orders in the last month, to analyze the continuity in buying behaviors of the customers. So, you need to classify the current buying customers in two groups: "Buy in 2 consecutive months" and "Only buy this month".

Follow the steps to create a table with the given condition:

  • Create a new cube from left-side panel or from the breakdown menu; name the table "Continuity Status"

  • Add the following columns into the table. If the inputs are just taken from raw table data, drag them from the side list and drop them to the table. If the inputs need to be calculated, use formulas (formula list is in the next section).

    • Column 1: Customer ID from Invoices table - this is raw data, just drag and drop; name the Column "Customer ID"

    • Column 2: the analysis requires monthly status so Invoice month should be shown by using formula: MONTH(Invoice Date) - choose Invoice Date from table Invoices; name the Column "Invoice Month"

    • Column 3: count Invoice in the given month, using formula: COUNT(Invoice ID, Invoice Date) - choose Invoice ID and Invoice Date from table Invoices; name the Column "Invoice Count this month"

    • Column 4: check if there is any invoice in the previous month of the given month, using formula: PREVIOUS(Invoice Count this month, Invoice Month, Customer ID) - Invoice Count this month, Invoice Month and Customer ID are the columns that have been created from table Continuity Status; name the Column "Invoice Count previous month"

    • Column 5: name the status, using formula: IF(Invoice Count previous month<>0&&Invoice Count previous month<>NULL, "Buy in 2 months", "Only buy this month"); name the Column "Continuity Status"

Here below is the result:

  • Then, Save Table

  • Before saving, you can check and change Table name, Description and choose to show or hide any of the columns of the newly created table.

  • After saving the cube, you can find the cube and its dimensions in the dimension list when breaking-down:

  • You can breakdown any metrics that have relationship with the table(s) you use in the cube. In the example, we can breakdown Sales, Buying Customer Count, Order Count and others:

Supporting Formulas in Cube Builder

⚙️