![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- MDX Query works fine when filter on gender. Why the same MDX is not working when I try to filter on either "fname" or "lname" or "marital_status" or "yearly_income". Following are the MDXes which I tried. 1. Filter on "fname" property. To get names which contain "R". SELECT FILTER(Customers.[Name].ALLMEMBERS, (INSTR (Customers.CurrentMember.Properties("fname"), "R") 0 ) ) ON Columns FROM [Sales] 2. Filter on "marital_status" SELECT FILTER(Customers.[Name].ALLMEMBERS, (INSTR (Customers.CurrentMember.Properties ("marital_status"), "S") 0 ) ) ON Columns FROM [Sales] 3.Filter on "lname" property. To get names which contain "Ro". SELECT FILTER(Customers.[Name].ALLMEMBERS, (INSTR (Customers.CurrentMember.Properties("lname"), "Ro") 0 ) ) ON Columns FROM [Sales] 4. Filter on "yearly_income" SELECT FILTER(Customers.[Name].ALLMEMBERS, (INSTR (Customers.CurrentMember.Properties ("yearly_income"), "50") 0 ) ) ON Columns FROM [Sales] Except "gender" property, i am not able to filter on other properties of the member. Why so? Regards, Jagan SV . |
#3
| |||
| |||
|
|
-----Original Message----- MDX Query works fine when filter on gender. Why the same MDX is not working when I try to filter on either "fname" or "lname" or "marital_status" or "yearly_income". Following are the MDXes which I tried. 1. Filter on "fname" property. To get names which contain "R". SELECT FILTER(Customers.[Name].ALLMEMBERS, (INSTR (Customers.CurrentMember.Properties("fname"), "R") 0 ) ) ON Columns FROM [Sales] 2. Filter on "marital_status" SELECT FILTER(Customers.[Name].ALLMEMBERS, (INSTR (Customers.CurrentMember.Properties ("marital_status"), "S") 0 ) ) ON Columns FROM [Sales] 3.Filter on "lname" property. To get names which contain "Ro". SELECT FILTER(Customers.[Name].ALLMEMBERS, (INSTR (Customers.CurrentMember.Properties("lname"), "Ro") 0 ) ) ON Columns FROM [Sales] 4. Filter on "yearly_income" SELECT FILTER(Customers.[Name].ALLMEMBERS, (INSTR (Customers.CurrentMember.Properties ("yearly_income"), "50") 0 ) ) ON Columns FROM [Sales] Except "gender" property, i am not able to filter on other properties of the member. Why so? Regards, Jagan SV . |
![]() |
| Thread Tools | |
| Display Modes | |
| |