Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when using calculated members in filters area

Status
Not open for further replies.

Shab

Programmer
Oct 9, 2001
60
US
In AdventureWorks database, I cretaed a calculated member as following:

CREATE MEMBER CURRENTCUBE.[Product].[Product Categories].[Subcategory].&[26].Product1
AS [Product].[Product Categories].[Product].&[483],
VISIBLE = 1 ;

Product1 is equal to Accessories-->Bike Racks-->Hitch Rack - 4-Bike. When use the cube browser tab to look at data, I use the top most filter section to filter on product categories hierarchy. If I choose [Hitch Rack - 4-Bike], I see the numbers for this product. But if I choose Product1 from the list, I get the following message:

"Unable to apply filter. A set has been encounterd that cannot contain
calculated members."

This happens for all calulated members regardless of hierarchy and dimension used. However, if you use the filter in the lower part of the screen, it works fine.

If I write a query using SQL Server Management Studio, the numbers come back alright.

select [Measures].[Reseller Extended Amount] on columns
from [Adventure Works]
where ([Product].[Product Categories].[Subcategory].&[26].[Product1])

This query works fine.

It is just the BIDS cube browser and Excel that throw the error. Unfortunately my front end tool is Excel and I have to get this to work with Excel.

Any ideas?

Thanks,

SHW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top