CRM and sales · data source guide

Salesforce data in Power BI

Salesforce is where most B2B pipeline lives: accounts, opportunities with stages and amounts, activities and the users who own them. In Power BI it usually feeds a pipeline and forecast page, a rep scorecard and a win/loss analysis, refreshed daily for the Monday forecast call.

Connector status

Connector in Microsoft's list

  • Salesforce Objects
  • Salesforce Reports

Both connectors are in Microsoft's index for Excel, Power BI (semantic models) and Power Query Online. Salesforce Objects reads tables (Opportunity, Account, User…) directly; Salesforce Reports imports a saved Salesforce report.

Checked against Microsoft Learn's Power Query connector list on 5 November 2026. Connectors change; check the list before you build.

How to get Salesforce data into Power BI

In order of preference for a report that refreshes on its own.

  1. 1

    Use Salesforce Objects for the model

    Get data → Salesforce Objects, sign in, and pick Opportunity, Account, User and OpportunityHistory (for stage changes). Select only the columns you report on: Salesforce objects carry hundreds of fields and wide tables slow refresh.

  2. 2

    Use Salesforce Reports for one-off views

    Salesforce Reports imports a report as it is defined in Salesforce. It is convenient but returns the report's own columns and is subject to Salesforce's report API limits, so build the model from Objects and keep Reports for quick checks.

  3. 3

    Model a star schema

    Keep Opportunity as the fact table with a Date table related on CloseDate, and Account, User (owner) and Stage as dimensions. Add a stage sort-order column so funnels follow the sales process rather than the alphabet.

  4. 4

    Schedule refresh in the Service

    Salesforce is a cloud source, so a gateway isn't needed for scheduled refresh. Set credentials on the semantic model in the Service and refresh before the forecast call.

Typical Salesforce KPIs

Table and column names in the DAX are illustrative: rename them to match your model.

Open pipeline

Amount of open opportunities, usually by stage and close quarter.

DAX
Open Pipeline = CALCULATE ( SUM ( Opportunity[Amount] ), Opportunity[IsClosed] = FALSE () )

Win rate

Won opportunities divided by closed opportunities, by count or amount.

DAX
Win Rate = DIVIDE ( CALCULATE ( COUNTROWS ( Opportunity ), Opportunity[IsWon] = TRUE () ), CALCULATE ( COUNTROWS ( Opportunity ), Opportunity[IsClosed] = TRUE () ) )

Quota attainment

Closed-won amount against the owner's quota for the period (quota usually comes from a separate sheet).

DAX
Attainment % = DIVIDE ( [Closed Won], SUM ( Quota[Amount] ) )

Average sales cycle

Days from created to close for won deals.

DAX
Avg Cycle Days = AVERAGEX ( FILTER ( Opportunity, Opportunity[IsWon] ), DATEDIFF ( Opportunity[CreatedDate], Opportunity[CloseDate], DAY ) )

Pipeline coverage

Open pipeline closing this quarter divided by the remaining quota.

DAX
Coverage = DIVIDE ( [Open Pipeline This Qtr], [Quota Remaining] )

Modelling notes for Salesforce

Templates for Salesforce data

Free page layouts with a background, theme JSON and PBIP project. Swap the sample tables for your own queries.

Power BI visuals for Sales · More by department: Sales templates · Executive templates

Visuals for Salesforce KPIs

Chart types that suit these KPIs, with data shapes and example prompts.

Salesforce and Power BI: questions

Does the Salesforce connector need a gateway?

No for Salesforce itself, which is a cloud source. A gateway is only needed if the same model also reads on-premises data.

Can I use DirectQuery with Salesforce?

The Salesforce connectors are import connectors. Schedule refresh to match how often the numbers are reviewed.

Related data sources

Other sources teams often combine with this one.

Salesforce is a trademark of its owner. Product names are used only to describe compatibility; VizForge is not affiliated with, endorsed by or sponsored by the owner or by Microsoft.

Design the Salesforce report page first

Lay out KPI cards and visual slots in the free Design Studio, then export the background, theme JSON and a PBIP project to bind to your data.

The design studio for Power BI. Free, in your browser, no sign-up.