![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello every one , i would like to have a query where the YTD is replace by the last 12 month. WITH MEMBER [TIME].[1998 YTD] AS 'SUM(YTD(ClosingPeriod(Month, [Time].[1998])))' MEMBER [TIME].[1997 YTD] AS 'SUM(YTD(ParallelPeriod(Year,1,ClosingPeriod(Month , [Time].[1998]))))' SELECT {[TIME].[1998 YTD],[TIME].[1997 YTD]} ON ROWS, Measures.members on columns from sales I was thinking about periodtodate but it's not what I need Thanks Best Regards, Patrice |
#3
| |||
| |||
|
|
Simply use (iif([Time].CurrentMember.Level.Ordinal=[Time].[Month].Ordinal,Avg(LastPerio |
| will give you last12month's sales average "Patrice Lamarche" <Patrice_lamarche (AT) gco (DOT) ca.nospam> wrote Hello every one , i would like to have a query where the YTD is replace by the last 12 month. WITH MEMBER [TIME].[1998 YTD] AS 'SUM(YTD(ClosingPeriod(Month, [Time].[1998])))' MEMBER [TIME].[1997 YTD] AS 'SUM(YTD(ParallelPeriod(Year,1,ClosingPeriod(Month , [Time].[1998]))))' SELECT {[TIME].[1998 YTD],[TIME].[1997 YTD]} ON ROWS, Measures.members on columns from sales I was thinking about periodtodate but it's not what I need Thanks Best Regards, Patrice |
![]() |
| Thread Tools | |
| Display Modes | |
| |