Teamleader Focus

Pipeline conversion rate

SQL query for Teamleader Focus

Calculate the conversion rate from leads to deals in pipelines.

SELECT SUM(CASE WHEN dealPhases.name = ‘Lead’ THEN 1 ELSE 0 END) AS num_leads, SUM(CASE WHEN dealPhases.name = ‘Deal’ THEN 1 ELSE 0 END) AS num_deals, (SUM(CASE WHEN dealPhases.name = ‘Deal’ THEN 1 ELSE 0 END) / SUM(CASE WHEN dealPhases.name = ‘Lead’ THEN 1 ELSE 0 END)) * 100 AS conversion_rate FROM pipelines JOIN deals ON pipelines.id = deals.pipeline_id JOIN dealPhases ON deals.deal_phase_id = dealPhases.id

Teamleader Focus data model

Teamleader Focus
Table Tags

Teamleader Focus
Table Companies

Teamleader Focus
Table Contacts

Teamleader Focus
Table Business Types

Teamleader Focus
Table Deals

Teamleader Focus
Table Quotations

Teamleader Focus
Table Meetings

Teamleader Focus
Table Calls

Teamleader Focus
Table Call Outcomes

Teamleader Focus
Table Events

Teamleader Focus
Table Invoices

Teamleader Focus
Table Credit Notes

Teamleader Focus
Table Subscriptions

Teamleader Focus
Table Products

Teamleader Focus
Table Product Categories

Teamleader Focus
Table Time Tracking

Teamleader Focus
Table Tickets

Teamleader Focus
Table Users

Teamleader Focus
Table Work Types

Teamleader Focus
Table Activity Types

Teamleader Focus
Table Milestones

Teamleader Focus
Table Projectsv

Teamleader Focus
Table Tasksv

Teamleader Focus
Table Project Groups

Teamleader Focus
Table Materials

Teamleader Focus
Table Current User

Teamleader Focus
Table Custom Field Definitions

Teamleader Focus
Table Pipelines

Teamleader Focus
Table Invoice Lines

Teamleader Focus
Table Quotation Lines

Teamleader Focus
Table Deal Phases

SQL - Combine data

Magical SQL for Teamleader Focus with Peliqan.io

Explore data in a rich spreadsheet UI. Use Magical SQL to combine and transform data. SQL queries become new tables that can be shared with business users and used in any BI tool such as Microsoft Power BI, Tableau or Metabase.

Let AI do the work for you

Let AI do the work for you

Peliqan’s AI assistant helps you to write SQL queries to get to insights fast. Ask your question in plain English and immediately see the result in Peliqan’s rich spreadsheet viewer.

Peliqan Overview

Ready to get instant access to
all your company data ?