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 derfloh 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
Joined
Apr 7, 2004
Messages
2
Location
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