mdx查询动态时间

with member mydate as now()
select {[Measures].[SaleAmounts]}
on 0,
 {StrToMember("[时间].[日].&[" + Format(DateAdd('d',-1,CDate(mydate)), "yyyy年MM月dd日") + "]")}
on 1
from [多维数据集]

 

 

我是参考这篇文章的:

 http://www.cnblogs.com/benzhang/archive/2010/11/24/1886421.html

posted @ 2011-01-19 13:58  emmy  阅读(265)  评论(0编辑  收藏  举报