sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Function pastDay

pastDay(measure, name?): CalculatedMeasure

Creates a calculated measure that calculates the value for the previous day.

Parameters

ParameterTypeDescription
measureMeasureMeasure to apply past value to
name?stringName for the new measure

Returns

CalculatedMeasure

A calculated measure instance

Example

Calculate total cost for the previous day from the Sample Ecommerce data model.

measureFactory.pastDay(measureFactory.sum(DM.Commerce.Cost))
Last Updated: