Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MDX Filter
Message
From
28/01/2010 11:36:28
 
 
To
28/01/2010 02:06:13
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01443633
Message ID:
01446343
Views:
43
I'm developing a tool which will help us to make analysis on cube data.

I have developed an OLAP tool using .NET similar to SSAS browse interface
where user drag & drop dimensions & measures, also the filter option is developed in the same manner.
I'm generating the MDX query based on the user selection.

What is the optimum way to create the where condition when user selects multiple
values/members from one dimension.


OK, I figured you were trying to write a tool that generated MDX code.

If you're allowing someone to select (for instance) cities, and you want the cities to appear as rows....your "end result" would be something like this..


with set [SelectedCities] as { [Customer].[City].[New York], [Customer].[City].[Chicago] }

select { [measure1], [measure2] } on columns,
[SelectedCities] on rows
from [cube]


So you might take the approach of placing the selections in an MDX named set.

Now, named sets do have some restrictions in SSAS 2005 - however you should probably start from that approach.

Hope that helps....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform