Found it.
I had to edit my MDX query and do this:
="WITH MEMBER ... AS 'SUM([{ " +Join(Parameters!Departmen
.... "
So my SUM would be done on the selected departments only.
Main Topics
Browse All TopicsI have a SSRS Report that takes its data from a SSAS Cube. I display departments on rows and reason code on the columns. The value is the number of hours worked.
I have a calculated member on the department dimension that is shown as the last row which contain the total (I don't want to use the SUBTOTAL feature for some reason).
Here's my calculated members:
SUM([Department].[Departme
This display the sum of all departments. The problem now is that I want to be able to select departments as a parameter. So I added the Department dimension as a parameter (without the ALL members) and set it as multiple values. The report is displaying only the departments i select but my total is still total of all departments (obviously because I said .[(All)] in my formula.
I my formula woud look like to have the total of only selected departments? I tried this:
SUM(STRTOSET(@Department, CONSTRAINED))
but it tells me that it comes from a inner subexpression and it cannot use it.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Q-riderPosted on 2009-11-16 at 02:21:09ID: 25828988
Dear Lanticrogers
...have you tried to use this statement?
( [<<Target Dimension>>].[<<Target Hierarchy>>].[<<Top Element>>],
[Measures].[<<Target Measure>>] )
<<Top Element>> means you name the element of your hirarchy directly instead of (All)
Best Regards
Andreas