?
Solved

CUBEVALUE function  with multiple dimension members

Posted on 2009-03-31
3
Medium Priority
?
4,706 Views
Last Modified: 2013-11-16
I'm using Excel 2007 to query a cube in SSAS.
I need to get the total of a measure, for a subset of Dimension members.

Say that the measure is TotalSales, and there's a Salesman dimension with 3 members :Fred, George and Jim.

I need the combined  total sales for Fred and George .
The function for getting the total sales for one salesman is:-

=CUBEVALUE("jago","[TotalSales]","[Salesman].&[Fred]")

But when I try to add another salesman, I get #NA

=CUBEVALUE("jago","[TotalSales]","{([Salesman].&[Fred]),([Salesman].&[George])}")

Can anyone help?



0
Comment
Question by:WizzoP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
agandau earned 2000 total points
ID: 24040568
Try this:

=CUBEVALUE("jago","[TotalSales]",CUBESET("jago", "{[Salesman].&[Fred],[Salesman].&[George]}"))
0
 

Author Closing Comment

by:WizzoP
ID: 31564800
YES. That's perfect. Many thanks agandau.
0
 

Expert Comment

by:ManishVaidya
ID: 35767591
Hi agandau:,

Do you have an idea on how to use the same function when we are referring to two members of the same hierarchy? I am  facing a #N/A error when I try to use the cubeset formula on two members of the same hierachy.

=CUBEVALUE("CubeConnection","[Measures].[Amount]",CUBESET("CubeConnection","{[Account Hierarchy].[Account Hierarchy].&[800000],[Account Hierarchy].[Account Hierarchy].&[900000]}"))
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question