MDX week Problem


i have problem need pick records <= 52 weeks current week

how in mdx.

a

with member last52weeks as
sum ( {[date].[calendar].currentmember.lag(51): [date].[calendar].currentmember}
,[measures].[internet sales amount])
select last52weeks on 0, {[date].[calendar].[month].&[2001]&[12]} on 1 from
[adventure works]
i have shown month. use week level within hierarchy in date dimension

vinu


SQL Server  >  SQL Server Analysis Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........