CRM and sales · data source guide
Salesforce data in Power BI
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
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
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
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
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.
Open Pipeline = CALCULATE ( SUM ( Opportunity[Amount] ), Opportunity[IsClosed] = FALSE () )Win rate
Won opportunities divided by closed opportunities, by count or amount.
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).
Attainment % = DIVIDE ( [Closed Won], SUM ( Quota[Amount] ) )Average sales cycle
Days from created to close for won deals.
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.
Coverage = DIVIDE ( [Open Pipeline This Qtr], [Quota Remaining] )Modelling notes for Salesforce
- Currency: multi-currency orgs store Amount in the opportunity currency; use the converted amount field or a rate table, never sum mixed currencies.
- History: Opportunity holds the current stage only. Stage-by-stage conversion needs OpportunityHistory or field history tracking.
- Ownership changes: report on the owner at close for attainment and on the current owner for pipeline, and say which in the title.
Templates for Salesforce data
Free page layouts with a background, theme JSON and PBIP project. Swap the sample tables for your own queries.
Executive template
Executive KPI ScorecardFree Power BI executive dashboard template: five headline KPIs, revenue vs target trend, unit breakdown and a scorecard table on one 16:9 page.
Sales template
Regional Sales PerformancePower BI regional sales dashboard template: a large sales map, four KPIs, revenue by region bars and a top-accounts table on one page.
Sales template
Sales PipelinePower BI sales pipeline dashboard template with pipeline value, win rate and cycle-time KPIs, a stage funnel, pipeline creation trend and closing deals.
Sales template
Sales Rep Quota AttainmentDark Power BI sales quota attainment template: a rep leaderboard, bookings vs quota by month, attainment distribution, win rate and deal size per rep.
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.
Visual
Funnel ChartSales pipeline: leads → MQLs → SQLs → opportunities → closed won; Marketing funnel: impressions → clicks → landing page views → sign-ups
Visual
Bullet ChartExecutive KPI scorecards (5-10 KPIs in a grid); Sales attainment across reps or regions
Visual
Waterfall ChartRevenue walk: prior year → price → volume → mix → FX → current year; Budget reconciliation: budget → categorical variances → actual
Visual
HeatmapHour-of-day × day-of-week traffic or activity patterns; Correlation matrix between dozens of numeric metrics
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.
No connector of its own in Microsoft's list
HubSpot in Power BIHubSpot data in Power BI
Connector in Microsoft's list
Dynamics 365 in Power BIDynamics 365 data in Power BI via the Dataverse, Business Central and Customer Insights connectors
Connector in Microsoft's list
Excel in Power BIExcel data in Power BI
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.