1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| WITH MEMBER [Measures].[CATTC N-1] AS Iif (
[Measures].[Retail sales amount invoiced including tax] <> 0
AND (ParallelPeriod([Time calendar].[Time calendar month hierarchy].[Time calendar year], 1, [Time calendar].[Time calendar month hierarchy].CurrentMember), [Measures].[Retail sales amount invoiced including tax]) <> 0,
(ParallelPeriod([Time calendar].[Time calendar month hierarchy].[Time calendar year], 1, [Time calendar].[Time calendar month hierarchy].CurrentMember), [Measures].[Retail sales amount invoiced including tax]),
0
) MEMBER [Measures].[CATTC] AS Iif (
[Measures].[Retail sales amount invoiced including tax] <> 0,
[Measures].[Retail sales amount invoiced including tax],
0
) MEMBER [Measures].[PROG] AS Iif (
(ParallelPeriod([Time calendar].[Time calendar month hierarchy].[Time calendar year], 1, [Time calendar].[Time calendar month hierarchy].CurrentMember), [Measures].[Retail sales amount invoiced including tax]) <> 0,
([Measures].[Retail sales amount invoiced including tax] - (ParallelPeriod([Time calendar].[Time calendar month hierarchy].[Time calendar year], 1, [Time calendar].[Time calendar month hierarchy].CurrentMember), [Measures].[Retail sales amount invoiced including tax]))
/ (ParallelPeriod([Time calendar].[Time calendar month hierarchy].[Time calendar year], 1, [Time calendar].[Time calendar month hierarchy].CurrentMember), [Measures].[Retail sales amount invoiced including tax]),
0
)
MEMBER [Measures].[CA Sous-Rayon Enseigne] AS Aggregate (
{[Stock room].[Stock room class Enseigne].CurrentMember}
* {[Magasin].[Stock room geographical dynamic hierarchy].ALLMEMBERS}
, [Measures].[Retail sales amount invoiced including tax]
)
SELECT NON EMPTY {
[Measures].[CATTC], [Measures].[CATTC N-1], [Measures].[PROG], [Measures].[CA Sous-Rayon Enseigne] } ON COLUMNS,
NON EMPTY {
([Stock room].[Stock room class Enseigne].[Stock room class Enseigne].ALLMEMBERS * [Stock room].[Stock room geographical dynamic hierarchy].[Stock room].ALLMEMBERS * [Product].[Product Hierarchy].[Product main class level 3].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM ( SELECT ( STRTOSET(@TimecalendarTimecalendarweekofyear, CONSTRAINED) ) ON COLUMNS FROM ( SELECT ( STRTOSET(@TimecalendarTimecalendaryear, CONSTRAINED) ) ON COLUMNS FROM ( SELECT ( STRTOSET(@StockroomStockroomcode, CONSTRAINED) ) ON COLUMNS FROM [CustomNextTest])))
WHERE ( IIF( STRTOSET(@StockroomStockroomcode, CONSTRAINED).Count = 1, STRTOSET(@StockroomStockroomcode, CONSTRAINED), [Stock room].[Stock room code].currentmember ), IIF( STRTOSET(@TimecalendarTimecalendaryear, CONSTRAINED).Count = 1, STRTOSET(@TimecalendarTimecalendaryear, CONSTRAINED), [Time calendar].[Time calendar year].currentmember ), IIF( STRTOSET(@TimecalendarTimecalendarweekofyear, CONSTRAINED).Count = 1, STRTOSET(@TimecalendarTimecalendarweekofyear, CONSTRAINED), [Time calendar].[Time calendar week of year].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS |
Partager