我们写了这个MDX查询:
COUNT(
TOPPERCENT(
{[d_gca].[h_gca].[l_gca].MEMBERS},
80,
[Measures].[m_invoice_item_amount]
)
)
问题是,当[d_gac].[h_gac].[l_gac].MEMBERS
没有值时,显示的结果始终为1.
我错过了什么吗?
答案 0 :(得分:0)
你能将内部集合包裹在NonEmpty
函数中吗?
COUNT(
TOPPERCENT(
NONEMPTY(
{[d_gca].[h_gca].[l_gca].MEMBERS}
,[Measures].[m_invoice_item_amount]
),
80,
[Measures].[m_invoice_item_amount]
)
)