dbTalk Databases Forums  

How can I Summarize members with similar names

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


Discuss How can I Summarize members with similar names in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
news.microsoft.com
 
Posts: n/a

Default How can I Summarize members with similar names - 02-18-2005 , 09:13 AM






Greetings, I have a dimension of account numbers, like 100000-999999. Within
our account structure there are ranges of numbers that I would like to sum
together. For example, I need to sum accounts 771000 -> 771999. Are there
any functions that would let me return a set where the member name start
with 771.

Any help would be most appreciated
Thanks
John



Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: How can I Summarize members with similar names - 02-18-2005 , 11:42 AM






Here, InStr() is useful.

Filter(Account.Members, InStr(1, Account.CurrentMember.Name, "771") = 1)

If you need, there is more string functions at "Registered Function
Libraries" from BOL.

Ohjoo Kwon
www.olapforum.com


"news.microsoft.com" <john.holton (AT) no_spamPulte (DOT) com> wrote

Quote:
Greetings, I have a dimension of account numbers, like 100000-999999.
Within
our account structure there are ranges of numbers that I would like to sum
together. For example, I need to sum accounts 771000 -> 771999. Are there
any functions that would let me return a set where the member name start
with 771.

Any help would be most appreciated
Thanks
John





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.