Compartilhar via


RelativeDateFilterBuilder class

Componente do construtor de filtros data relativa do Power BI

Extends

Propriedades herdadas

target

Métodos

build()

Cria o filtro Data Relativa


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().build();
includeToday(boolean)

Define o filtro IncludeToday for Relative Date


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().includeToday(includeToday);
inLast(number, RelativeDateFilterTimeUnit)

Define inLast como operador para o filtro Data Relativa


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().inLast(timeUnitsCount, timeUnitType);
inNext(number, RelativeDateFilterTimeUnit)

Define inNext como operador para filtro De Data Relativa


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().inNext(timeUnitsCount, timeUnitType);
inThis(number, RelativeDateFilterTimeUnit)

Define inThis como operador para o filtro Data Relativa


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().inThis(timeUnitsCount, timeUnitType);

Métodos herdados

withColumnAggregation(string, string, string)

Define a propriedade de destino para filtro com objeto de destino de agregação de coluna

const filterBuilder = new FilterBuilder().withColumnAggregation(tableName, columnName, aggregationFunction);
withColumnTarget(string, string)

Define a propriedade de destino para filtro com objeto de destino de coluna

const filterBuilder = new FilterBuilder().withColumnTarget(tableName, columnName);
withHierarchyLevelAggregationTarget(string, string, string, string)

Define a propriedade de destino para filtro com objeto de destino de agregação de nível de hierarquia

const filterBuilder = new FilterBuilder().withHierarchyLevelAggregationTarget(tableName, hierarchy, hierarchyLevel, aggregationFunction);
withHierarchyLevelTarget(string, string, string)

Define a propriedade de destino para filtro com objeto de destino no nível da hierarquia

const filterBuilder = new FilterBuilder().withHierarchyLevelTarget(tableName, hierarchy, hierarchyLevel);
withMeasureTarget(string, string)

Define a propriedade de destino para filtro com objeto de destino de medida

const filterBuilder = new FilterBuilder().withMeasureTarget(tableName, measure);
withTargetObject(IFilterTarget)

Define a propriedade de destino para filtro com objeto de destino

const target = {
 table: 'table1',
 column: 'column1'
};

const filterBuilder = new FilterBuilder().withTargetObject(target);

Detalhes das propriedades herdadas

target

target: IFilterTarget

Valor da propriedade

Herdado deFilterBuilder.target

Detalhes do método

build()

Cria o filtro Data Relativa


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().build();
function build(): RelativeDateFilter

Retornos

includeToday(boolean)

Define o filtro IncludeToday for Relative Date


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().includeToday(includeToday);
function includeToday(includeToday: boolean): RelativeDateFilterBuilder

Parâmetros

includeToday

boolean

Indica se hoje está incluído ou não

Retornos

inLast(number, RelativeDateFilterTimeUnit)

Define inLast como operador para o filtro Data Relativa


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().inLast(timeUnitsCount, timeUnitType);
function inLast(timeUnitsCount: number, timeUnitType: RelativeDateFilterTimeUnit): RelativeDateFilterBuilder

Parâmetros

timeUnitsCount

number

A quantidade de unidades de tempo

timeUnitType
RelativeDateFilterTimeUnit

Define a unidade de tempo que o filtro está usando

Retornos

inNext(number, RelativeDateFilterTimeUnit)

Define inNext como operador para filtro De Data Relativa


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().inNext(timeUnitsCount, timeUnitType);
function inNext(timeUnitsCount: number, timeUnitType: RelativeDateFilterTimeUnit): RelativeDateFilterBuilder

Parâmetros

timeUnitsCount

number

A quantidade de unidades de tempo

timeUnitType
RelativeDateFilterTimeUnit

Define a unidade de tempo que o filtro está usando

Retornos

inThis(number, RelativeDateFilterTimeUnit)

Define inThis como operador para o filtro Data Relativa


const relativeDateFilterBuilder = new RelativeDateFilterBuilder().inThis(timeUnitsCount, timeUnitType);
function inThis(timeUnitsCount: number, timeUnitType: RelativeDateFilterTimeUnit): RelativeDateFilterBuilder

Parâmetros

timeUnitsCount

number

A quantidade de unidades de tempo

timeUnitType
RelativeDateFilterTimeUnit

Define a unidade de tempo que o filtro está usando

Retornos

Detalhes do método herdado

withColumnAggregation(string, string, string)

Define a propriedade de destino para filtro com objeto de destino de agregação de coluna

const filterBuilder = new FilterBuilder().withColumnAggregation(tableName, columnName, aggregationFunction);
function withColumnAggregation(tableName: string, columnName: string, aggregationFunction: string): RelativeDateFilterBuilder

Parâmetros

tableName

string

columnName

string

aggregationFunction

string

Retornos

Herdado deFilterBuilder.withColumnAggregation

withColumnTarget(string, string)

Define a propriedade de destino para filtro com objeto de destino de coluna

const filterBuilder = new FilterBuilder().withColumnTarget(tableName, columnName);
function withColumnTarget(tableName: string, columnName: string): RelativeDateFilterBuilder

Parâmetros

tableName

string

columnName

string

Retornos

Herdado deFilterBuilder.withColumnTarget

withHierarchyLevelAggregationTarget(string, string, string, string)

Define a propriedade de destino para filtro com objeto de destino de agregação de nível de hierarquia

const filterBuilder = new FilterBuilder().withHierarchyLevelAggregationTarget(tableName, hierarchy, hierarchyLevel, aggregationFunction);
function withHierarchyLevelAggregationTarget(tableName: string, hierarchy: string, hierarchyLevel: string, aggregationFunction: string): RelativeDateFilterBuilder

Parâmetros

tableName

string

hierarchy

string

hierarchyLevel

string

aggregationFunction

string

Retornos

Herdado deFilterBuilder.withHierarchyLevelAggregationTarget

withHierarchyLevelTarget(string, string, string)

Define a propriedade de destino para filtro com objeto de destino no nível da hierarquia

const filterBuilder = new FilterBuilder().withHierarchyLevelTarget(tableName, hierarchy, hierarchyLevel);
function withHierarchyLevelTarget(tableName: string, hierarchy: string, hierarchyLevel: string): RelativeDateFilterBuilder

Parâmetros

tableName

string

hierarchy

string

hierarchyLevel

string

Retornos

Herdado deFilterBuilder.withHierarchyLevelTarget

withMeasureTarget(string, string)

Define a propriedade de destino para filtro com objeto de destino de medida

const filterBuilder = new FilterBuilder().withMeasureTarget(tableName, measure);
function withMeasureTarget(tableName: string, measure: string): RelativeDateFilterBuilder

Parâmetros

tableName

string

measure

string

Retornos

Herdado deFilterBuilder.withMeasureTarget

withTargetObject(IFilterTarget)

Define a propriedade de destino para filtro com objeto de destino

const target = {
 table: 'table1',
 column: 'column1'
};

const filterBuilder = new FilterBuilder().withTargetObject(target);
function withTargetObject(target: IFilterTarget): RelativeDateFilterBuilder

Parâmetros

target
IFilterTarget

Retornos

Herdado deFilterBuilder.withTargetObject