![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi trying to create a dimension from a fact column that has some information that I'd like to truncate. example, 0-Developer, 1-Tester, I'd like to remove the number and hyphen before it's becomes an dimension member, can this be done ? thanks, |
#3
| |||
| |||
|
|
Sure. Two options: 1) use a view (Analysis Services loads from a view as well as a base table) or 2) use TSQL substring on the member name field. Just run the dimension wizard and create the dimension. For the member key and name property setup the field that contains "1 - Tester". Then in the dimension editor, change the field to be some TSQL string manipulation (with Locate and Substring functions) to parse our the key and member name. -- Dave Wickert [MS] dwickert (AT) online (DOT) microsoft.com Program Manager BI Practices Team SQL BI Product Unit (Analysis Services) -- This posting is provided "AS IS" with no warranties, and confers no rights. "Maersa" <ma_ersa (AT) hotmail (DOT) com> wrote in message news:ekJC6DvGEHA.3064 (AT) tk2msftngp13 (DOT) phx.gbl... hi trying to create a dimension from a fact column that has some information that I'd like to truncate. example, 0-Developer, 1-Tester, I'd like to remove the number and hyphen before it's becomes an dimension member, can this be done ? thanks, |
![]() |
| Thread Tools | |
| Display Modes | |
| |