dbTalk Databases Forums  

PARENT_CHILD

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


Discuss PARENT_CHILD in the microsoft.public.sqlserver.olap forum.



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

Default PARENT_CHILD - 07-02-2003 , 07:23 AM






Hi!

When I do this simple sample Analysis Service return me that error:
"Column expression associated with level '_TemplateLevel' is not found."
What is wrong?

What is <Template>? Any sample? (But not LevelNamingTemplate Dialog Box,
sample code is needing)

Who can send me sample code with dimension parent-child? Thanks for your
help.

CREATECUBE=CREATE CUBE Sample(
DIMENSION [Products] DIMENSION_STRUCTURE PARENT_CHILD,
LEVEL [All products] TYPE ALL ,
LEVEL [Level] ROOT_MEMBER_IF
ROOT_IF_PARENT_IS_BLANK_OR_SELF_OR_MISSING ,
MEASURE [Price]
Function Sum
Format '#.#'
)

INSERTINTO = INSERT INTO Sample(
Products.[Level].NAME,
Products.[Level].KEY,
Products.[Level].PARENT,
Measures.[Price]
)
SELECT
SampleTable.name,
SampleTable.my_id,
SampleTable.parent_id,
SampleTable.price
FROM
SampleTable



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.