我需要根据以下SQL创建PerformancePoint报告的MDX查询,任何想法?指针?
SELECT count(*), sum(balance) FROM SerialBalance b
WHERE balance > 0
AND EffectiveDate = ( Select Max(EffectiveDate)
From SerialBalance sb
Where SB.Subhead = b.Subhead
and SB.SerialNumber = b.SerialNumber
and SB.Branch = b.Branch
and SB.Zone = b.Zone
and SB.Country = b.Country
and SB.EffectiveDate <= '2013-05-31'
)