共用方式為


TopNFilterBuilder class

Power BI Top N 篩選產生器元件

Extends

繼承的屬性

target

方法

bottom(number)

將 Bottom 設定為前 N 個篩選條件的運算子


const topNFilterBuilder = new TopNFilterBuilder().bottom(itemCount);
build()

建立前 N 個篩選條件


const topNFilterBuilder = new TopNFilterBuilder().build();
orderByTarget(ITarget)

設定前 N 個篩選的排序依據


const topNFilterBuilder = new TopNFilterBuilder().orderByTarget(target);
top(number)

將 Top 設定為前 N 個篩選條件的運算子


const topNFilterBuilder = new TopNFilterBuilder().top(itemCount);

繼承的方法

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

方法詳細資料

bottom(number)

將 Bottom 設定為前 N 個篩選條件的運算子


const topNFilterBuilder = new TopNFilterBuilder().bottom(itemCount);
function bottom(itemCount: number): TopNFilterBuilder

參數

itemCount

number

傳回

build()

建立前 N 個篩選條件


const topNFilterBuilder = new TopNFilterBuilder().build();
function build(): TopNFilter

傳回

orderByTarget(ITarget)

設定前 N 個篩選的排序依據


const topNFilterBuilder = new TopNFilterBuilder().orderByTarget(target);
function orderByTarget(target: ITarget): TopNFilterBuilder

參數

target
ITarget

傳回

top(number)

將 Top 設定為前 N 個篩選條件的運算子


const topNFilterBuilder = new TopNFilterBuilder().top(itemCount);
function top(itemCount: number): TopNFilterBuilder

參數

itemCount

number

傳回

繼承的方法的詳細資料

withColumnAggregation(string, string, string)

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

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

參數

tableName

string

columnName

string

aggregationFunction

string

傳回

繼承自FilterBuilder.withColumnAggregation

withColumnTarget(string, string)

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

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

參數

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): TopNFilterBuilder

參數

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): TopNFilterBuilder

參數

tableName

string

hierarchy

string

hierarchyLevel

string

傳回

繼承自FilterBuilder.withHierarchyLevelTarget

withMeasureTarget(string, string)

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

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

參數

tableName

string

measure

string

傳回

繼承自FilterBuilder.withMeasureTarget

withTargetObject(IFilterTarget)

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

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

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

參數

target
IFilterTarget

傳回

繼承自FilterBuilder.withTargetObject