![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| DistinctCount(Descendants( |
#3
| |||
| |||
|
|
Looking at the MDX, multiple member selections are presumably not made in filters on the [Patient Name] dimension. You can try something simpler like this (assuming there is just 1 AS 2000 physical cube): [Measures].[Patient Cnt (C)]: DistinctCount(Descendants( [Patient Name].CurrentMember, [Patient Name].[PatientName])) |

#4
| |||
| |||
|
|
Deepak Puri wrote: Looking at the MDX, multiple member selections are presumably not made in filters on the [Patient Name] dimension. You can try something simpler like this (assuming there is just 1 AS 2000 physical cube): [Measures].[Patient Cnt (C)]: DistinctCount(Descendants( [Patient Name].CurrentMember, [Patient Name].[PatientName])) Thanks for the feedback. This measure only applies to 1 AS 2000 physical cube. I assume this is what you mean. (Our OLAP database contains five physical cubes.) However, the user may make multiple member selections in the filters. We've had complaints that the Patient Cnt measure isn't always correct. You may have found the cause of an entirely different problem as well. ![]() Do you have a suggestion that would work when multiple member selections are made in a filter? Can you suggest any good MDX books (preferably specific to AS 2000)? I just completed the Microsoft Course 2074A, Designing and Implementing OLAP Solutions with MS SQL Server 2000. I also wanted to take 2093A, Implementing Business Logic with MDX in MS SQL Server 2000, but unfortunately it was not available. With the release of SQL Server 2005, I doubt it will ever be available again. Thanks! -- Jon Robertson Borland Certified Advanced Delphi 7 Developer MedEvolve, Inc http://www.medevolve.com |
#5
| |||
| |||
|
|
A good book to read is MDX Solutions (WILEY - Author George Spofford) |

#6
| |||
| |||
|
|
A DISTINCT COUNT measure won't work due to the various limitations of DISTINCT COUNT. In particular, as we start adding filters, the DISTINCT COUNT returns ERR. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Would you consider upgrading to AS2005 |
|
the limitation of Distinct Count measure that you mention here is removed in that version, and you can use multiple members in the filter and get correct results. |

#9
| |||
| |||
|
|
http://www.microsoft.com/technet/pro...tain/sste286.m spx |
![]() |
| Thread Tools | |
| Display Modes | |
| |