Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


ALLMEMBER function error


ALLMEMBER function error

Author
Message
quasar_phoenicis
quasar_phoenicis
SSC Rookie
SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)

Group: General Forum Members
Points: 42 Visits: 258
Hello,

I have a query statement below but whenever I run it I get an error: The ALLMEMBERS function expects a hierarchy expression for the argument. A member expression was used.

SELECT
[Measures].[Time Entry Hours] ON COLUMNS ,
   [Time].[day].[Fiscal Year].ALLMEMBERS ON ROWS
FROM
[TestCube]

I have set the AttributeHierarchyEnabled to True. Am I missing anything on my query?

thanks!
Bill Anton
Bill Anton
SSC-Addicted
SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)

Group: General Forum Members
Points: 436 Visits: 548
quasar_phoenicis (9/2/2011)

   [Time].[day].[Fiscal Year].ALLMEMBERS ON ROWS


this looks wrong...maybe its just the naming of your objects...

is your dimension name "time"?
is your user hierarchy name "day"?
is "Fiscal Year" a level in your user hierarchy?
quasar_phoenicis
quasar_phoenicis
SSC Rookie
SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)

Group: General Forum Members
Points: 42 Visits: 258
sorry bout that, the query is below:

select
[Measures].[Time Entry Hours] ON COLUMNS ,
[time].[fiscal trans date].allmembers on rows
from [sa]

the time is the dimension and the hierarchy is the fiscal trans date. the next level would be the fiscal year but even if i add it to the query i still get the same error:

Query (3, 1) The ALLMEMBERS function expects a hierarchy expression for the argument. A member expression was used.

i tried the query using a different dimension but it ran successfully. i just don't know why for the time dimension it won't.

please help as i am not that good in mdx...=(
quasar_phoenicis
quasar_phoenicis
SSC Rookie
SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)

Group: General Forum Members
Points: 42 Visits: 258
i think i know the culprit but i wanna make sure first...

in the dimension table there's an attribute named Fiscal Year and in the hierarchy there's also Fiscal Year.

Is this possible?
Tamil Vengai
Tamil Vengai
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 16
select
{[Measures].[Time Entry Hours]} ON COLUMNS ,
{[time].[fiscal trans date].[fiscal trans date].ALLMEMBERS} DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME on rows
from [sa]


try this..
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search