I have cube within OLAP database (SSAS 2012) where [Persons], [Dates] (date of order), [Categories] (category of item within order) are dimensions and [Orders], [OrdersCategories] are fact tables. [OrdersCategories] is many-to-many table to connect orders with categiries.
Using query:
SELECT
{[Measures].[Orders Distinct Count]} ON COLUMNS,
{[Persons].[Id].Children} ON ROWS
FROM [DB]
WHERE (
{[Dates].[Id].&[2015-06-11T00:00:00] : [Dates].[Id].&[2015-06-17T00:00:00]},
{[Categories].[Id].&[10], [Categories].[Id].&[11]}
)
i can count number of orders (for specified time period and by specified categories) for each person. Is this case condition by category works like 'OR' condition and no matter order has relation with first category or second category or both.
Is it possible to write query with condition by categories which would work like 'AND' condition, namely order was counted only if it is related with both categories?