newRankingFilter()
Home > @gooddata/sdk-model > newRankingFilter
newRankingFilter() function
Creates a new ranking filter.
Signature:
export declare function newRankingFilter(measureOrRef: IMeasure | ObjRefInScope | string, operator: RankingFilterOperator, value: number): IRankingFilter;
Parameters
Parameter | Type | Description |
---|---|---|
measureOrRef | IMeasure | ObjRefInScope | string | instance of measure to filter, or reference of the measure object; if instance of measure is provided, then it is assumed this measure is in scope of execution and will be referenced by the filter by its local identifier |
operator | RankingFilterOperator | TOP or BOTTOM operator to use in the filter |
value | number | Number of values to use in filter |
Returns: