/providers/{NamespaceID}/{ProviderID}/FactDataDifference

This endpoint returns the difference between old and new measure values for records over the time of the subscription.

This is calculated by taking the value of the measure at the start time of the subscription (old value), from the value of the measure at the time of subscription extraction (new value). For example, if your Cost measure was 100, and then updated to 250, the value of Cost in your subscription would be 150. (250 - 100).

This functionality is limited to Delta interactions, meaning to use this endpoint you must either:
  • Specify the header Prefer, set to odata.track-changes

  • Extract data from a subscription (the request must have a deltaid query parameter)

If you are performing the extraction with the Prefer header set to odata.track-changes, this performs the initial load of the subscription. This means that all data from the SAP Analytics Cloud model will be exported, and this data will be normal FactData. The difference in records will only be returned once you begin to extract the second subscription, as these will be the changes that have occurred on the model. For more information on the subscription flow, see Subscriptions.

API Request Details

URL

{BaseURL}/providers/{NamespaceID}/{ProviderID}/FactDataDifference

Request Type

GET

Content Type

application/json

Required Header (if no deltaid parameter set)

Prefer: odata.track-changes

Sample Response

{ 
    "@odata.context": "$metadata#FactDataDifference, 
    "value": [ 
        { 
            "Account": "400000", 
            "Product": "Mountain_Bike", 
            "Time": "202201", 
            "MyMeasure1": 10.33 
        } 
   ], 
    "@odata.deltaLink":  “{BaseURL}/providers/{NamespaceID}/{ProviderID}/FactDataDifference?deltaid={DeltaID}",  
}