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
Solved

CUBEVALUE function  with multiple dimension members

Posted on 2009-03-31
3
4,242 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
3 Comments
 
LVL 6

Accepted Solution

by:
agandau earned 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

792 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