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

Function quarterToDateSum

quarterToDateSum(measure, name?): CalculatedMeasure

Creates a calculated measure that calculates the running total starting from the beginning of the quarter up to the current day, week, or month.

The time resolution is determined by the minimum date level of the date dimension in the query that uses the returned measure.

Parameters

ParameterTypeDescription
measureMeasureMeasure to apply the QTD Sum to
name?stringName for the new measure

Returns

CalculatedMeasure

A calculated measure instance

Example

Calculate the running total of total cost from the Sample Ecommerce data model, starting from the beginning of the quarter up to the current day, week, or month.

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