dbTalk Databases Forums  

Filter Dimensions

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Filter Dimensions in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jagan_sv
 
Posts: n/a

Default Filter Dimensions - 10-13-2003 , 02:31 AM






I have a dimension which contains list of countries name.
Dimension Name : Country
Attribute, Short Name : USA
Attribute, Long Name : United States of America
Similarly i have Short Name like INDO, IND etc for which
Long Names are Indonesia and India....

How to filter Dimension, whose short name has "IND" word.
It means if i filter on IND.. then result should have
Indonesia and INDIA also.

Thanks in advance.

Reply With Quote
  #2  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Filter Dimensions - 10-13-2003 , 02:37 AM






"jagan_sv" <jagan_sv (AT) yahoo (DOT) com> wrote

Quote:
I have a dimension which contains list of countries name.
Dimension Name : Country
Attribute, Short Name : USA
Attribute, Long Name : United States of America
Similarly i have Short Name like INDO, IND etc for which
Long Names are Indonesia and India....

How to filter Dimension, whose short name has "IND" word.
It means if i filter on IND.. then result should have
Indonesia and INDIA also.
You can use VBA functions for doing string comparissons. I.e.

Filter(Country.MEMBERS, StrCompare(Left(Country.Properties("Short Name"),
3), "IND")))

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.