RelativeTimeFilterBuilder class
Power BI Relative Time filter builder component
- Extends
Inherited Properties
target |
Methods
build() | Creates Relative Time filter
|
in |
Sets inLast as operator for Relative Time filter
|
in |
Sets inNext as operator for Relative Time filter
|
in |
Sets inThis as operator for Relative Time filter
|
Inherited Methods
with |
Sets target property for filter with column aggregation target object
|
with |
Sets target property for filter with column target object
|
with |
Sets target property for filter with hierarchy level aggregation target object
|
with |
Sets target property for filter with hierarchy level target object
|
with |
Sets target property for filter with measure target object
|
with |
Sets target property for filter with target object
|
Inherited Property Details
target
Method Details
build()
Creates Relative Time filter
const relativeTimeFilterBuilder = new RelativeTimeFilterBuilder().build();
function build(): RelativeTimeFilter
Returns
inLast(number, RelativeDateFilterTimeUnit)
Sets inLast as operator for Relative Time filter
const relativeTimeFilterBuilder = new RelativeTimeFilterBuilder().inLast(timeUnitsCount, timeUnitType);
function inLast(timeUnitsCount: number, timeUnitType: RelativeDateFilterTimeUnit): RelativeTimeFilterBuilder
Parameters
- timeUnitsCount
-
number
The amount of time units
- timeUnitType
- RelativeDateFilterTimeUnit
Defines the unit of time the filter is using
Returns
inNext(number, RelativeDateFilterTimeUnit)
Sets inNext as operator for Relative Time filter
const relativeTimeFilterBuilder = new RelativeTimeFilterBuilder().inNext(timeUnitsCount, timeUnitType);
function inNext(timeUnitsCount: number, timeUnitType: RelativeDateFilterTimeUnit): RelativeTimeFilterBuilder
Parameters
- timeUnitsCount
-
number
The amount of time units
- timeUnitType
- RelativeDateFilterTimeUnit
Defines the unit of time the filter is using
Returns
inThis(number, RelativeDateFilterTimeUnit)
Sets inThis as operator for Relative Time filter
const relativeTimeFilterBuilder = new RelativeTimeFilterBuilder().inThis(timeUnitsCount, timeUnitType);
function inThis(timeUnitsCount: number, timeUnitType: RelativeDateFilterTimeUnit): RelativeTimeFilterBuilder
Parameters
- timeUnitsCount
-
number
The amount of time units
- timeUnitType
- RelativeDateFilterTimeUnit
Defines the unit of time the filter is using
Returns
Inherited Method Details
withColumnAggregation(string, string, string)
Sets target property for filter with column aggregation target object
const filterBuilder = new FilterBuilder().withColumnAggregation(tableName, columnName, aggregationFunction);
function withColumnAggregation(tableName: string, columnName: string, aggregationFunction: string): RelativeTimeFilterBuilder
Parameters
- tableName
-
string
- columnName
-
string
- aggregationFunction
-
string
Returns
Inherited From FilterBuilder.withColumnAggregation
withColumnTarget(string, string)
Sets target property for filter with column target object
const filterBuilder = new FilterBuilder().withColumnTarget(tableName, columnName);
function withColumnTarget(tableName: string, columnName: string): RelativeTimeFilterBuilder
Parameters
- tableName
-
string
- columnName
-
string
Returns
Inherited From FilterBuilder.withColumnTarget
withHierarchyLevelAggregationTarget(string, string, string, string)
Sets target property for filter with hierarchy level aggregation target object
const filterBuilder = new FilterBuilder().withHierarchyLevelAggregationTarget(tableName, hierarchy, hierarchyLevel, aggregationFunction);
function withHierarchyLevelAggregationTarget(tableName: string, hierarchy: string, hierarchyLevel: string, aggregationFunction: string): RelativeTimeFilterBuilder
Parameters
- tableName
-
string
- hierarchy
-
string
- hierarchyLevel
-
string
- aggregationFunction
-
string
Returns
Inherited From FilterBuilder.withHierarchyLevelAggregationTarget
withHierarchyLevelTarget(string, string, string)
Sets target property for filter with hierarchy level target object
const filterBuilder = new FilterBuilder().withHierarchyLevelTarget(tableName, hierarchy, hierarchyLevel);
function withHierarchyLevelTarget(tableName: string, hierarchy: string, hierarchyLevel: string): RelativeTimeFilterBuilder
Parameters
- tableName
-
string
- hierarchy
-
string
- hierarchyLevel
-
string
Returns
Inherited From FilterBuilder.withHierarchyLevelTarget
withMeasureTarget(string, string)
Sets target property for filter with measure target object
const filterBuilder = new FilterBuilder().withMeasureTarget(tableName, measure);
function withMeasureTarget(tableName: string, measure: string): RelativeTimeFilterBuilder
Parameters
- tableName
-
string
- measure
-
string
Returns
Inherited From FilterBuilder.withMeasureTarget
withTargetObject(IFilterTarget)
Sets target property for filter with target object
const target = {
table: 'table1',
column: 'column1'
};
const filterBuilder = new FilterBuilder().withTargetObject(target);
function withTargetObject(target: IFilterTarget): RelativeTimeFilterBuilder
Parameters
- target
- IFilterTarget
Returns
Inherited From FilterBuilder.withTargetObject