![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| With |
#3
| |||
| |||
|
|
First off, I'm new to MDX and I have a lot to learn. My problem is related to filtering/slicing. I have a query like the following: SELECT NON EMPTY {[Measures].[Approved], [Measures].[Submitted]} ON COLUMNS, {[Billing Code Description].[Description].Members} ON ROWS FROM Claims_FT WHERE ([Jurisdiction].[All Jurisdiction].[State]) The above query works great. Howevery, my users want to filter the results on more than one member of jurisdiction (like a list of 5-10 counties) Any thoughts or ideas on how I can filter on a list of members from the jurisdiction dimension? |
#4
| |||
| |||
|
|
When using AS 2000, typically an Aggregate() calculated member is created. This won't work with Distinct Counts: With Set [CountySet] as '{[Jurisdiction].[County1], [Jurisdiction].[County2]}' Member [Jurisdiction].[All Jurisdiction].[SelectedCounties] as 'Aggregate([CountySet])' SELECT NON EMPTY {[Measures].[Approved], [Measures].[Submitted]} ON COLUMNS, {[Billing Code Description].[Description].Members} ON ROWS FROM Claims_FT WHERE ([Jurisdiction].[All Jurisdiction].[SelectedCounties]) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |