我需要在Performance point Dashboard中创建一个过滤器,以仅获取非空值。我正在尝试编写一个MDX查询来选择值
SELECT NONEMPTY{[H School ].[Dist Name], [H School ].[School Name]}
FROM [Early Cube ]
但它没有过滤数据
答案 0 :(得分:0)
您需要针对某些指标检查非空单元格。换句话说,维度成员需要为空或非空对某些集合,例如度量。有两种方法可以执行此操作,具体取决于您是否希望在结果中显示您的度量。
SELECT中的NON EMPTY子句:
显示从一个测量的交叉点获得的单元格
另一轴上的轴和尺寸成员,从而消除了(null)
值。
SELECT
/*Measures*/
{[Measures].[Customer Count]} ON 0,
/*NON EMPTY clause against Dimension members*/
NON EMPTY {[Customer].[Customer Geography].[City]} ON 1
FROM [Adventure Works];
根据指定集与第二集的叉积,返回指定集中非空的元组集。
SELECT
{} ON 0,
/*NONEMPTY() FUNCTION*/
NONEMPTY([Customer].[Customer Geography].[City], [Measures].[Customer Count]) ON 1
FROM [Adventure Works]
答案 1 :(得分:-1)
在查询中:
SELECT NONEMPTY([H School ].[Dist Name], [H School ].[School Name])
FROM [Early Cube ]
你能否把它重写为:
SELECT NONEMPTY([H School ].[Dist Name]*[H School ].[School Name], <<add your measure/context here if you do not want to use the default measure>>)
FROM [Early Cube ]