Zum Inhalt springen
Search the hub

← All suppliers

CRM

Microsoft Dynamics 365

Dataverse Sales: account, contact, opportunity — load/skip and opportunity grain to a pilot mart.

Templates only — grain, filters, custom fields and ownership are firm-specific.

Copy formulas into the KPI Definition Card, then adapt grain and filters.

Example

Won actual value

What is actualvalue of opportunities with statecode = Won in the period?

SUM(opportunity.actualvalue) WHERE opportunity.statecode = 1 AND opportunity.actualclosedate IN period
Grain
opportunity
Fields
opportunity.actualvalue, opportunity.statecode, opportunity.actualclosedate, opportunity.transactioncurrencyid
Dimensions
owner, region, stage

Dataverse: statecode 0=Open, 1=Won, 2=Lost. Currency via transactioncurrencyid.

Adapt: Use statuscode for firm-specific won reasons; lock multi-currency reporting.

Example

Open estimated value

How much estimatedvalue sits in open opportunities?

SUM(opportunity.estimatedvalue) WHERE opportunity.statecode = 0
Grain
opportunity
Fields
opportunity.estimatedvalue, opportunity.statecode, opportunity.stepname, opportunity.closeprobability
Dimensions
owner, stage, source

Optionally × closeprobability for weighted pipeline.

Adapt: Clarify estimatedvalue vs actualvalue policy by stage.

Win rate (statecode)

What share of closed opportunities is Won (statecode=1)?

COUNT(statecode=1) / COUNT(statecode IN (1,2))
Grain
opportunity
Fields
opportunity.statecode, opportunity.statuscode, opportunity.actualclosedate
Dimensions
owner, source

Denominator closed only (won+lost), not open.

Adapt: Exclude statuscode values that mean cancelled from the denominator.

Avg won actual value

What is the typical actualvalue of won opportunities?

SUM(actualvalue WHERE statecode=1) / COUNT(statecode=1)
Grain
opportunity
Fields
opportunity.actualvalue, opportunity.statecode
Dimensions
owner, region

statecode=1 only; normalize currency.

Adapt: Lock median vs mean and base currency.

Line extended amount

How does extendedamount distribute across products on won opportunities?

SUM(opportunityproduct.extendedamount) WHERE parent opportunity.statecode = 1
Grain
opportunityproduct
Fields
opportunityproduct.extendedamount, opportunityproduct.quantity, opportunityproduct.productid, opportunity.statecode
Dimensions
owner, region

Only when opportunityproduct is loaded.

Adapt: Align product catalog / price list grain with the business.

Formula overview

Same formulas as a table — copy into KPI cards or SQL drafts.

Label Formula Grain Fields
Won actual value SUM(opportunity.actualvalue) WHERE opportunity.statecode = 1 AND opportunity.actualclosedate IN period opportunity opportunity.actualvalue, opportunity.statecode, opportunity.actualclosedate, opportunity.transactioncurrencyid
Open estimated value SUM(opportunity.estimatedvalue) WHERE opportunity.statecode = 0 opportunity opportunity.estimatedvalue, opportunity.statecode, opportunity.stepname, opportunity.closeprobability
Win rate (statecode) COUNT(statecode=1) / COUNT(statecode IN (1,2)) opportunity opportunity.statecode, opportunity.statuscode, opportunity.actualclosedate
Avg won actual value SUM(actualvalue WHERE statecode=1) / COUNT(statecode=1) opportunity opportunity.actualvalue, opportunity.statecode
Line extended amount SUM(opportunityproduct.extendedamount) WHERE parent opportunity.statecode = 1 opportunityproduct opportunityproduct.extendedamount, opportunityproduct.quantity, opportunityproduct.productid, opportunity.statecode

Tour