Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
About Us
986
Questions
785
Answers
Interview Preparation mode
beta
Funny Facebook Status
Enter your email address
All categories
SQL Server Interview Questions and Answers
(197)
SSIS Interview Questions and Answers
(54)
SSRS Interview Questions and Answers
(9)
SSAS Interview Questions and Answers
(29)
.NET Interview Questions and Answers
(186)
Oracle Interview Questions and Answers
(122)
Java Interview Questions and Answers
(32)
UNIX Interview Questions and Answers
(47)
Networking Interview Questions and Answers
(17)
MySQL Interview Questions and Answers
(30)
HR Interview Questions and Answers
(237)
General Interview Questions and Answers
(9)
Other Interview Questions and Answers
(8)
Job Openings
(3)
Greenplum Database Interview Questions and Answers
(5)
How do I calculate sales for 12 Month to date in MDX, in SSAS?
Nice?
Vote!
asked
1 year
ago
in
SSAS Interview Questions and Answers
by
R
(
19,530
points)
ssas-interview-question
mdx
function
1 Answer
Nice?
Vote!
WITH MEMBER [Measures].[Last 12 Mth Order Count] AS SUM( ClosingPeriod([Date].[Calendar].[Month], [Date].[Calendar].[All Periods]).Lag(12): ClosingPeriod([Date].[Calendar].[Month], [Date].[Calendar].[All Periods]), [Measures].[Order Count])SELECT [Measures].[Last 12 Mth Order Count] ON 0
FROM [Adventure Works]
answered
1 year
ago
by
R
(
19,530
points)
Related questions
Nice?
Vote!
1
answer
I need an MDX statement to get the first month of the last year loaded into a cube, in SSAS
asked
1 year
ago
in
SSAS Interview Questions and Answers
by
R
(
19,530
points)
ssas-interview-question
mdx
function
Nice?
Vote!
1
answer
I need an MDX statement to get the last Month loaded into a cube, in SSAS
asked
1 year
ago
in
SSAS Interview Questions and Answers
by
R
(
19,530
points)
ssas-interview-question
mdx
function
Nice?
Vote!
1
answer
I need an MDX statement to show the first day of the last month in the cube, in SSAS
asked
1 year
ago
in
SSAS Interview Questions and Answers
by
R
(
19,530
points)
ssas-interview-question
mdx
function
Nice?
Vote!
1
answer
MDX query to show year level data for all years except the last one, and month level data for the last year, in SSAS
asked
1 year
ago
in
SSAS Interview Questions and Answers
by
R
(
19,530
points)
ssas-interview-question
mdx
function
Nice?
Vote!
1
answer
How do you get Last month in the time dimension, SSAS MDX function
asked
1 year
ago
in
SSAS Interview Questions and Answers
by
R
(
19,530
points)
ssas-interview-question
mdx
function