Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to filter on String properties ?

Status
Not open for further replies.

jlmuller

IS-IT--Management
Feb 10, 2004
3
LU
Hello,

I need to filter members on one of their properties. I can easily do this if the property is of type numeric, but I'm unable to filter on string properties.

The following expression does work :
FILTER ([Customer].[Business Id].members, [Measures].prop2 = 1)
The following expression does NOT work :
FILTER ([Customer].[Business Id].members, [Measures].prop1 = AAA)

How could I proceed, as I don't want to create a dimension for that property.

Thank you very much for your help !
 
have you tried single quotes or double quotes I forget which AS uses.

Code:
FILTER ([Customer].[Business Id].members, [Measures].prop1 = 'AAA')

"Shoot Me! Shoot Me NOW!!!"
- Daffy Duck
 
double quotes gives Syntax Error, while single quote gives Invalid Token Error (I'm using MDXSample application).

If I try [Measures].prop1 <> AAA, I've got some results, including the properties whose value is AAA...

Any idea ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top