1

我需要根据以下 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'
            )   
4

0 回答 0