Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Data Warehousing
»
Analysis Services
»
Need Help with MDX Query ..
Need Help with MDX Query ..
Rate Topic
Display Mode
Topic Options
Author
Message
Sri8143
Sri8143
Posted Tuesday, December 18, 2012 2:43 AM
Old Hand
Group: General Forum Members
Last Login: Wednesday, February 27, 2013 10:06 PM
Points: 358,
Visits: 2,117
I need to write an MDX query where i can get the totals for all existing years plus the YTD for current year.
Our company year starts from month: December and ends in November..
Right now our cube has data from year: 2010(November 2009)
So i need to get the total number of sales or units for each year and YTD for year 2013..
Product 2010 2011 2012 2013(YTD)
P1 1320 2121 2112 100
Any guidance would be really helpful..
Thanks,
Chinna
Its the Journey which gives you Happiness not the Destination-- Dan Millman
Post #1397627
Koen Verbeeck
Koen Verbeeck
Posted Tuesday, December 18, 2012 3:12 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 2:11 AM
Points: 9,378,
Visits: 6,473
How is your cube designed? Normally when you have facts linked to your date dimension, you automatically get the YTD for the last year when you browse on the year level.
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1397641
Sri8143
Sri8143
Posted Tuesday, December 18, 2012 3:21 AM
Old Hand
Group: General Forum Members
Last Login: Wednesday, February 27, 2013 10:06 PM
Points: 358,
Visits: 2,117
Yes it is linked .. So when i browse the cube i am able to get that .. but how do i get it using MDX query so that i can display in the report ?
Thanks,
Chinna
Its the Journey which gives you Happiness not the Destination-- Dan Millman
Post #1397647
Koen Verbeeck
Koen Verbeeck
Posted Tuesday, December 18, 2012 3:24 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 2:11 AM
Points: 9,378,
Visits: 6,473
Your date dimension should have a Year attribute.
Just put the year attribute on one axis and the measure on the other.
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1397649
Sri8143
Sri8143
Posted Tuesday, December 18, 2012 3:33 AM
Old Hand
Group: General Forum Members
Last Login: Wednesday, February 27, 2013 10:06 PM
Points: 358,
Visits: 2,117
Thanks.. Will try and let you know ..
Thanks,
Chinna
Its the Journey which gives you Happiness not the Destination-- Dan Millman
Post #1397653
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.