dbTalk Databases Forums  

newby question on member properties

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


Discuss newby question on member properties in the microsoft.public.sqlserver.olap forum.



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

Default newby question on member properties - 09-10-2006 , 01:33 PM






I'm trying to calculate the average sales per rep per territory. The number
of reps is a member property. Here is the query

WITH MEMBER [MEASURES].[NB REP] AS [DIM
TERRITOIRE].[TERRITOIRE].CURRENTMEMBER.PROPERTIES("NB REP")


SELECT {[MEASURES].[MONTANT] / [MEASURES].[NB REP]} ON 0,
{[DIM TERRITOIRE].[TERRITOIRE].MEMBERS} ON 1
FROM PHYTOSOURCE

I get the following error message:
Query (4, 8) The function expects a tuple set expression for the 1
argument. A string or numeric expression was used.

I read in bol some stuff but I just can't put my finger on it

thx

Fred


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.