Conduit Docs
  • Getting Started
    • Importing Data
    • Connecting Multiple Accounts
    • How To Invite Additional Team Members to Your Account
    • How Does the Trial Work?
    • What's a Table/Data Schema?
    • Number of Sub-Connections
    • Default Time Range for Downloading Data
    • Conduit Data Lake
    • Conduit vs Boost.Space
    • Conduit vs Reportz.io
    • Conduit vs Google Looker Studio
  • Use Cases
    • Use Case: AI-powered Text Extraction
    • Use Case: Track Ad Campaign Performance with Conduit
    • Use Case: Enhancing Project Management with Copilot
    • Use Case: Using Conduit for Financial Analysis
    • Use Case: Use ChatGPT with your data
    • Use Case: Build financial models from raw transactional data and generate P&L statements.
    • Use Case: Marketing data analytics
    • Use Case: Using data science frameworks using your data in spreadsheets Low-Code
    • Use Case: Custom Dimensions for Ad Operations
    • Use Case: Custom dimensions for E-Commerce
    • Use Case: Extract invoices from PDF
    • Use Case: Export data from SaaS applications to your spreadsheet
    • Use Case: Online store and a physical retail locations consolidated
    • Use Case: Pull data from Advertisement platforms to a spreadsheet
    • Use Case: Consolidation of data received as separate files, for example, separate Excel reports
    • Use Case: Names, IDs, SKUs normalization
    • Use Case: Integrating Conduit with a custom CRM using SSO/OAuth2
    • Use Case: Chat Bot for Your Data
    • Use Case: Display Net sales On a Dashboard by Subtracting Ad spend from Total Sales
    • Use Case: Conduit for Healthcare Applications
  • Security & Data Privacy
    • Data Retention Policy
    • How Conduit Complies with GDPR?
    • Security
  • Spreadsheets
    • Writing data to spreadsheets: Overwrite and Update
    • Using Formulas in Spreadsheets
    • The Time Range in formulas
    • The table in the spreadsheet does not start from the first line
  • Conduit for Digital Agencies
    • How to Use White Label
    • What is a Workspace and a Sub-account
    • Use Case: Creating a Dashboard for Two Clients
    • Users in Your Team vs. Sub-Accounts in Workspaces
    • Deleting a Workspace
    • How to Log Into a Workspace
    • How to Buy Additional Workspaces
    • Schedulers in Workspaces
  • Troubleshooting
    • Error codes and how to troubleshoot data-related issues
    • Google Drive Refusing To Connect
    • Why Are my Shopify stats different?
    • Facebook Integration: How to Fix the GraphMethodException Error
  • Copilot
    • Copilot Roles: Data Analyst vs AI Generalist
    • Conduit Copilot vs. ChatGPT – What's The Difference?
    • How to Tune the Copilot
    • Data Sources for Copilot
  • For Developers
    • IP Addresses of Conduit Servers
    • Create an AI Сopilot for your app
    • Manage your AI Copilot users
    • Upload CSV files to Conduit via API (Guide)
  • Integrations
    • Instagram Integration
    • Dashboard Widgets Based On a SQL Connection
    • GA4 Integration Notes
    • Salesloft Integration
    • Self-service and Manual integrations
    • Installing Google Sheets Add-On
    • Slack Integration
    • YouTube Integration
    • HubSpot Integration
    • Conduit integration for Bigcommerce
    • Xero Integration
    • Recharge integration
    • Wrike Integration
    • Zoho Integration
    • Monday.com Integration
    • ActiveCampaign Integration
    • ClickUp Integration
    • FreshSales Integration
    • Google Ads Quality Score
    • Facebook Ads Reach
    • Shopify Net Sales and Returns
    • Gorgias tickets with Spam/Deleted/Auto-Close statuses
    • Looker Studio Connector
  • Workflows
    • Workflows – Adding New Columns
    • Workflows – using the Join by Key block
    • Workflows – using the Union block
    • Workflows – using the Transpose block
    • Workflows – creating a weekly Ad Spend report
Powered by GitBook
On this page
Edit on GitHub
  1. Integrations

Dashboard Widgets Based On a SQL Connection

PreviousInstagram IntegrationNextGA4 Integration Notes

Last updated 11 months ago

Metrics in SQL connection

Dashboards utilize two main UI elements: tables and widgets. Tables display datasets featuring multiple columns, with data originating from various sources. Widgets, on the other hand, display single metrics. The data source for widgets must include a metric.

To clarify, datasets contain dimensions and metrics. Dimensions are typically string or date/time data, while metrics are numerical values that can be aggregated. To use widgets, you need metrics. Where do you find them?

When you first connect SQL data, Conduit automatically categorizes all columns as dimensions. If you attempt to create a widget at this stage, you will encounter a message stating 'No metrics found'

Step 1

The initial step is to define metrics. Start by accessing the UI SQL connection terms.

Choose the "Metric" button, make sure you set the correct data type and click on the 'Save' button

Step 2

Once defined, the column can be used in Workflow, and it will be recognized as a metric:

Step 3

We are now ready to create a widget using this metric.

Converting non-integer columns to metrics

If you encounter an error message during step 1 that reads "Column 'Started Free Trial' has incorrect type, consider changing it to dimension," this is likely due to the SQL type of the column not being an Integer.

In such instances, you'll need to employ a forced data type conversion within your SQL expression.

For instance, if you're using the Boolean type to track steps in a Funnel, you can convert a Boolean to an integer with a CAST expression. The specific syntax for this conversion varies based on your SQL server.

Example:

CAST(registered AS INTEGER) AS "Registered"

After executing this, click the "Run SQL" button once more. You should now be able to change the column type to Metric without errors.

Manual updating of workflow's metadata

When you modify columns or their types in the SQL connection, these changes do not automatically reflect in Workflows and Dashboards. This means you will want to rebuild the SQL select block after altering column types.