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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mdx "where exists" function?

Status
Not open for further replies.

melcual

Programmer
Sep 4, 2002
1
US
Hi, I have a transactional DW that tracks fulfillment.

In the fact table I have a record for each transaction that occurs for an order. i.e. ordered, backordered, cancelled, outofstock, shipped, fulfilled etc.

So for a given order that has been fulfilled, it would have several records starting from ordered to outofstock to shipped to fulfilled.

So for example, let's say I want to get the number of orders that are outofstock but not include the ones that have been shipped or fulfilled?

The original query would be something like

Select [FulfillmentStatus].[OutofStock] on rows,
"[Measures].Members on columns " & _
"From [Fulfillment] "

But how do I filter out the ones that have been shipped?
Would I use a where clause? Please help. Thanks in advance



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top