共用方式為


BasicFilterBuilder class

Power BI Basic 篩選產生器元件

Extends

繼承的屬性

target

方法

all()

將 [全部] 設定為 [基本] 篩選的運算符


const basicFilterBuilder = new BasicFilterBuilder().all();
build()

建立基本篩選


const basicFilterBuilder = new BasicFilterBuilder().build();
in((string | number | boolean)[])

將 [In] 設定為 [基本] 篩選的運算符


const basicFilterBuilder = new BasicFilterBuilder().in([values]);
notIn((string | number | boolean)[])

將 NotIn 設定為基本篩選的運算子


const basicFilterBuilder = new BasicFilterBuilder().notIn([values]);
requireSingleSelection(boolean)

設定基本篩選的必要單一選取屬性


const basicFilterBuilder = new BasicFilterBuilder().requireSingleSelection(isRequireSingleSelection);

繼承的方法

withColumnAggregation(string, string, string)

使用數據行匯總目標物件設定篩選的目標屬性

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

使用資料行目標物件設定篩選的目標屬性

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

使用階層層級匯總目標物件設定篩選的目標屬性

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

使用階層層級目標物件設定篩選的目標屬性

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

使用量值目標物件設定篩選的目標屬性

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

使用目標物件設定篩選的目標屬性

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

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

繼承的屬性詳細資料

target

target: IFilterTarget

屬性值

繼承自FilterBuilder.target

方法詳細資料

all()

將 [全部] 設定為 [基本] 篩選的運算符


const basicFilterBuilder = new BasicFilterBuilder().all();
function all(): BasicFilterBuilder

傳回

build()

建立基本篩選


const basicFilterBuilder = new BasicFilterBuilder().build();
function build(): BasicFilter

傳回

in((string | number | boolean)[])

將 [In] 設定為 [基本] 篩選的運算符


const basicFilterBuilder = new BasicFilterBuilder().in([values]);
function in(values: (string | number | boolean)[]): BasicFilterBuilder

參數

values

(string | number | boolean)[]

傳回

notIn((string | number | boolean)[])

將 NotIn 設定為基本篩選的運算子


const basicFilterBuilder = new BasicFilterBuilder().notIn([values]);
function notIn(values: (string | number | boolean)[]): BasicFilterBuilder

參數

values

(string | number | boolean)[]

傳回

requireSingleSelection(boolean)

設定基本篩選的必要單一選取屬性


const basicFilterBuilder = new BasicFilterBuilder().requireSingleSelection(isRequireSingleSelection);
function requireSingleSelection(isRequireSingleSelection?: boolean): BasicFilterBuilder

參數

isRequireSingleSelection

boolean

傳回

繼承的方法的詳細資料

withColumnAggregation(string, string, string)

使用數據行匯總目標物件設定篩選的目標屬性

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

參數

tableName

string

columnName

string

aggregationFunction

string

傳回

繼承自FilterBuilder.withColumnAggregation

withColumnTarget(string, string)

使用資料行目標物件設定篩選的目標屬性

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

參數

tableName

string

columnName

string

傳回

繼承自FilterBuilder.withColumnTarget

withHierarchyLevelAggregationTarget(string, string, string, string)

使用階層層級匯總目標物件設定篩選的目標屬性

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

參數

tableName

string

hierarchy

string

hierarchyLevel

string

aggregationFunction

string

傳回

繼承自filterBuilder.withHierarchyLevelAggregationTarget

withHierarchyLevelTarget(string, string, string)

使用階層層級目標物件設定篩選的目標屬性

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

參數

tableName

string

hierarchy

string

hierarchyLevel

string

傳回

繼承自FilterBuilder.withHierarchyLevelTarget

withMeasureTarget(string, string)

使用量值目標物件設定篩選的目標屬性

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

參數

tableName

string

measure

string

傳回

繼承自FilterBuilder.withMeasureTarget

withTargetObject(IFilterTarget)

使用目標物件設定篩選的目標屬性

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

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

參數

target
IFilterTarget

傳回

繼承自FilterBuilder.withTargetObject