Re: Olap substring -
04-04-2006
, 08:48 PM
Assuming that you're using AS 2005, you can create a named Query in the
Data Source View which returns the 3 fields:
select account,
substring(account, 1, 5) as AccountNumber,
substring(account, 6, 3) as Item,
substring(account, 9, 3) as SubItem
from lc_dw_accounting_csv
Then you can define an Account dimension, with account as the key
attribute, and AccountNumber, Item and SubItem as other attributes. Each
attribute can have its own hierarchy.
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com *** |