I'm attempting to add a calculated measure to a simple MDX query.
Although I have managed simple calculated measures before I clearly don't understand MDX sufficiently to make this work.
Anyway, what I am trying to do is count the number of distinct orders per each of our truck routes. I have tried counting the Order Dimension Keys but all this does is produce the total number of orders in the system rather than the number of orders per route. Can someone help me out? I feel that once I understand this it will make subsequent MDX queries a lot simpler.
With Member Deliveries as
Count([Dim Order].[Order Key].children) --clearly wrong
Select non empty
[Deliveries] on 0,
[Dim Route].[Route Code].Children on 1
From [Defacto DW]