内部查询最大日期过滤器的MDX

时间:2013-06-14 14:25:30

标签: ssas mdx performancepoint

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

0 个答案:

没有答案