我有一个缓慢的MDX查询,它执行以下操作:
WITH MEMBER Measures.DistinctCode as 'DistinctCount({[CODE].Children})'
SELECT
NON EMPTY Hierarchize({DrilldownLevel({[DATE].[ALL].[AllMember]})}) ON ROWS,
NON EMPTY Hierarchize({DrilldownLevel({[SYSTEM].[ALL].[AllMember]})}) ON COLUMNS
FROM [CUBE]
WHERE ([Measures].[DistinctCode])
我如何在ActivePivot中编写一个后期处理的度量,它返回与我的Distinct Count计算成员相同的值?我想这会快得多?
由于
答案 0 :(得分:1)
您是否查看了开源activepivot-ext工件中开箱即用的LeafCountPostProcessor?
com.quartetfs.biz.pivot.postprocessing.impl.LeafCountPostProcessor