![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FROM Table WHERE Physician in (Phy1, Phy2) AND Specilty IN (Cardiology, Urology) AND Insurance_Co IN (TUFTS, BCBS) AND Year = 2004 |
|
Hi I am a newbie for AS2K and MDX. I am facing trouble in making MDX query, in which I have to set filter on the members of dimensions, which are existing on the axes also. I am working with Medical Insurance Claims data. One of the dimension, say Physician, is having the 2 Levels. Specialty>Physician. Specialty may have values like cardiology, neurology, physician etc. Physician is keeping the Physicians' names. LIke it I have 8 more dimensions, 4 of which are having 3 levels. We have to provide the UI in which user can filter the data. First user will select one or more Dimension Level(s)(displayed in a Listbox) and in next step he/she will select the Members of that levels (displayed in a Listbox), to specify the results filtered upon. The MDX is required to be generated on the fly, as per filter criteria. An SQL equivalant for this may be SELECT Speciality, Physican, Cost, Insurance_Co FROM Table WHERE Physician in (Phy1, Phy2) AND Specilty IN (Cardiology, Urology) AND Insurance_Co IN (TUFTS, BCBS) AND Year = 2004 But when I try to implement like this in MDX, it gives me error 'Duplicate dimensions across (independant) axes - when calculating a query axis.' My problem is that we have a fixed SELECT caluse for MDX, and we have to show the data according to the filter applied. I will be grateful for any help in this regard. Thanks in anticipation Vivek |
![]() |
| Thread Tools | |
| Display Modes | |
| |