Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Top Filter of Data based on Parameter

Author  Topic 

shanmugaraj
Posting Yak Master

219 Posts

Posted - 2011-03-08 : 07:16:59
Hi,
I want to get the data based on month which is passed as parmeter .
If i select june, i should display the data for months and before june. ie : from Jan to June.
kindly help me on the MDX Query.


MDX QUERY
SELECT
{[Measures].[Internet Sales Amount]} ON COLUMNS,
[Date].[Month of Year].[Month of Year] ON ROWS
FROM [Adventure Works]
WHERE [Geography].[City].&[Abingdon]&[ENG]

RESULT
Internet Sales Amount
January $2,375,856.68
February $2,502,386.86
March $2,610,615.17
April $2,778,842.08
May $3,114,646.27
June $3,180,923.99
July $1,911,262.79
August $1,899,606.67
September $1,834,668.15
October $2,009,169.29
November $2,076,069.60
December $3,064,629.66

THANKS
SHANMUGARAJ
nshanmugaraj@gmail.com
   

- Advertisement -