?
Solved

Filtering and MDX Query

Posted on 2001-06-15
3
Medium Priority
?
434 Views
Last Modified: 2012-05-04
I am trying to figure out how to filter an MDX query so it only includes values that are for a certain period of time, eg. year to date, month to date, week to date.

So I have the following dimensions that I am interested in [Store].[Region].[District].[Store], [Time].[Year].[Month].[Week of Month]

Here's the query I have so far:
SELECT
  FROM [Sales Actl To Bdgt]
  WHERE (Measures.[Bdgt Vol Q],
         [Time].[2001],
         [Store].[975].[1577].[1145])

But say for example we are in the time period [Time].[2001].[5].[1] and I only want values included for this time period and prior. The query as it stands returns the values for the entire year of 2001.

Does that make any sense?

If this needs more points, I'll gladly add them.

Thanks
Gary
0
Comment
Question by:garymather
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:garymather
ID: 6196436
hellooooo. anyone out there?
0
 
LVL 1

Accepted Solution

by:
SYASSIN earned 400 total points
ID: 6204418
I need more info... what is your fiscal year? the same as calendar year?  
Also, is the dimension defined as a time dimension?

have you tried the wtd, ytd, mtd mdx functions?
0
 

Author Comment

by:garymather
ID: 6207067
SYASSIN,

Thanks. You pointed me in the right direction and I eventually figured it out using the PeriodsToDate function. Probably partly my fault for not describing the problem in greater detail and I only increased the points of the question to ellicit a response from someone.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question