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)
MDX query to get count of months with sales amount > 0 in defined period, 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].[Months With Above Zero Sales] AS COUNT(FILTER( DESCENDANTS({[Date].[Calendar].[Calendar Year].&[2003]: [Date].[Calendar].[Calendar Year].&[2004]}, [Date].[Calendar].[Month]) , [Measures].[Sales Amount] > 0 ) )SELECT {[Measures].[Sales Amount], [Measures].[Months With Above Zero Sales]} ON 0, [Product].[Product Model Lines].[Product Line].Members on 1FROM [Adventure Works]WHERE ([Date].[Calendar].[Calendar Year].&[2003]: [Date].[Calendar].[Calendar Year].&[2004]);
answered
1 year
ago
by
R
(
19,530
points)
Related questions
Nice?
Vote!
1
answer
Need MDX Query to get latest months and previous years same months data, 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 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
Need a MDX query that returns list of months from start of year up to specified month.
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 I calculate sales for 12 Month to date in MDX, 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