dbTalk Databases Forums  

hi Deepak Puri

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


Discuss hi Deepak Puri in the microsoft.public.sqlserver.olap forum.



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

Default hi Deepak Puri - 04-04-2006 , 09:37 AM






Argent
please help me

I have query that works in SQL

select
substring(account, 0 , 6), substring(account, 6, 3), substring(account, 8,
3)
from lc_dw_accounting_csv


How do I do in OLAP

Dimension called Account (11111200900) need to be split into three different
dimensions
Account_number = 11111
Itemn_number = 200
Sub_item = 900

Please help me
Thanks

Reply With Quote
  #2  
Old   
Faraz
 
Posts: n/a

Default Re: hi Deepak Puri - 04-05-2006 , 06:38 AM






You can use VB scripting function to extract the substrings


Reply With Quote
  #3  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: hi Deepak Puri - 04-05-2006 , 06:56 AM



I would suggest creating a view in SQL or creating calculated columns in
the DSV if you are using AS 2005. Then you can use the SQL syntax.

You can use VBA functions from within MDX to extract substrings, but I
think you will find it more flexible base your dimension off a view.

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <5e46f79b27a58@uwe>, u20487@uwe says...
Quote:
Argent
please help me

I have query that works in SQL

select
substring(account, 0 , 6), substring(account, 6, 3), substring(account, 8,
3)
from lc_dw_accounting_csv


How do I do in OLAP

Dimension called Account (11111200900) need to be split into three different
dimensions
Account_number = 11111
Itemn_number = 200
Sub_item = 900

Please help me
Thanks


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.