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!

Where clause

Status
Not open for further replies.

simpilla

Programmer
Apr 7, 2004
2
US
Hi
I am running a

SELECT{[Measures].[Store Sales]} ON COLUMNS, Product.[Product Family].MEMBERS ON ROWS FROM Sales
WHERE ([Store].[WA])

It works fine.
Now I want to add [Store].[CA].

SELECT{[Measures].[Store Sales]} ON COLUMNS, Product.[Product Family].MEMBERS ON ROWS FROM Sales
WHERE ([Store].[WA],[Store].[CA])
then i got Unable to open set error.
Please correct me



Thanks
Sim
 
WITH MEMBER [Store].[Both] AS 'Sum({Store.[WA],Store.[CA]})'
SELECT{[Measures].[Store Sales]} ON COLUMNS, Product.[Product Family].MEMBERS ON ROWS FROM Sales
WHERE ([Store].[Both])

I'm sure there is a more elegant solution than this - so pipe up if you have one :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top