The CURRENTMEMBER function expects a hierarchy expression for the 0argument. A member expression was

R

RPou0830

I have a dimension dimZoneProduct with a hierarchy
Zone – Product
. Zone
.. Product

I want to know what percentage has each product by zone

Zone A 20000 100%
Product 1 15000 75%
Product 2 5000 25%

I have the following dmx expresion
With Member [Measures].[ZoneProductPer] as
'([Dim Zone Product].[Zone - Product].[Zone].currentmember,[Measures].
[Sales])
/([Dim Zone Product].[Zone - Product].[Product].CURRENTMEMBER,
[Measures].[Sales])',
FORMAT_STRING = 'Percent'
SELECT NON EMPTY { [Measures].[Sales], [Measures].[ZoneProductPer] }
ON COLUMNS,
NON EMPTY {[Dim Zone Product].[Zone - Product].[Zone].MEMBERS, [Dim
Zone Product].[Zone - Product].[Product].MEMBERS }
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM [Sales]
The column [Measures].[ZoneProductPer] shows the error
The CURRENTMEMBER function expects a hierarchy expression for the 0
argument. A member expression was used.
 
M

Marc Soester [MVP]

Hi,

you may want to post this question into the project server developer formum.
You will probably be more lucky for feedback there.
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top