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

Interface LevelAttribute

Date Level Attribute associated with a granularity - for example, Years, Quarters, Months, Days.

Methods

format

format(format): LevelAttribute

Gets a formatted instance with the given definition.

Parameters

ParameterTypeDescription
formatstringFormat string

Returns

LevelAttribute

A formatted instance of this level attribute


getFormat

getFormat(): string | undefined

String formatting of this instance.

Returns

string | undefined

string formatting


getSort

getSort(): Sort

Gets the sort definition.

Returns

Sort

The Sort definition


sort

sort(sort): LevelAttribute

Gets a sorted LevelAttribute with the given definition

Parameters

ParameterTypeDescription
sortSortSort definition

Returns

LevelAttribute

A sorted instance of this level attribute

Properties

expression

readonly expression: string

Expression representing the element in a JAQL query. It is typically populated automatically in the data model generated by the data model generator.


granularity

readonly granularity: string

Granularity of the level. See supported granularity values at DateLevels.


name

name: string

Element name


type

readonly type: string

Element type

Last Updated: