Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要对状态等于特定值(例如“已支付”)的金额求和。在按该维度进行切片时,还需要注意。
目前我有这个:([Measures].[Amount], [Status].[Description].[Paid])
([Measures].[Amount], [Status].[Description].[Paid])
但是当我按状态描述切片时,它会显示Paid所有状态描述的数量。
Paid
对于 where Status.Description= 'Unpaid' 等,它应该显示 0。
Status.Description
你可以用它切片
except(Status.Description.children, Status.Description.Paid)
并且总和可以通过计算的度量来确定,例如
with <sum> as sum(measure.amount)