Ssas 是否有dax函数支持查询中的分页?

Ssas 是否有dax函数支持查询中的分页?,ssas,dax,ssas-tabular,Ssas,Dax,Ssas Tabular,我编写了一个DAX查询,在SSAS表格模型中包含了一些不同类型的度量。现在,我必须将我的解决方案分成几页,以便在应用程序中使用,并根据我的度量进行排序 我使用了TOPNSKIP()函数,但无法创建按度量值排序的表 DAX代码: EVALUATE SELECTCOLUMNS( TopnSkip ( 5,0,'Station',Station[StationTitle],asc), "NameOfStation",Station[StationTitle],

我编写了一个DAX查询,在SSAS表格模型中包含了一些不同类型的度量。现在,我必须将我的解决方案分成几页,以便在应用程序中使用,并根据我的度量进行排序

我使用了TOPNSKIP()函数,但无法创建按度量值排序的表

DAX代码:

EVALUATE 
SELECTCOLUMNS(
      TopnSkip ( 5,0,'Station',Station[StationTitle],asc),
        "NameOfStation",Station[StationTitle],
        "TradeSellPrice", [TradeSellPrice],
        "TradePrice" ,[TradePrice],
        BrokerCommission",[BrokerCommission])
    Order by [TradePrice] asc
此代码首先从“Station”表中选择前5名,然后按“Tradeprice”排序。这不是我的期望,我需要一个按“贸易价格”排序的解决方案

SELECTCOLUMNS
的第一个参数是一个表。您将表格
TOPNSKIP(5,0,'Station','Station'[StationTitle],ASC)
传递给它,这是前五个StationTitle的5行表格

然后,您定义了要从该5行表中选择的列。最后,您通过[TradePrice]对该表的输出进行排序

TOPNSKIP
将表格作为输入。因此,将需要定义的列传递给表,并按任意列进行排序

EVALUATE
TOPNSKIP (
  5, 0,
  SELECTCOLUMNS (
    'Station',
    "NameOfStation", 'Station'[StationTitle],
    "TradeSellPrice", [TradeSellPrice],
    "TradePrice", [TradePrice],
    "BrokerCommission", [BrokerCommission]
  ),
  [TradePrice],
  ASC
)
ORDER BY [TradePrice] ASC