August 9, 2018 at 3:45 pm
Trying to accomplish the following:
Current query:
WITH SET Customer_CurrentPeriod as
FILTER (
[CUSTOMER MASTER].[Cust#].children ,
(
[Calendar].[Date].&[20180507]
, [Item Master].[Sub Group Number].&[100]
, [Measures].[Ext Price]
) > 0
)member Sales_CurrentPeriod as
sum (
([Customer_CurrentPeriod] , [Calendar].[Date].&[20180507])
, [Measures].[Ext Price]
)member Sales_Sum_CurentPeriod_Count as [Customer_CurrentPeriod].Count
SELECT
{Sales_CurrentPeriod , Sales_Sum_CurentPeriod_Count} ON COLUMNS
from [SalesDatabase]
PROBLEM
WITH SET Customer_CurrentPeriod asFILTER ([CUSTOMER MASTER].[Cust#].children ,({[Calendar].[Date].&[20180507]:[Calendar].[Date].&[20180507]}, [Item Master].[Sub Group Number].&[100], [Measures].[Ext Price]) > 0)member Sales_CurrentPeriod assum (([Customer_CurrentPeriod] , {[Calendar].[Date].&[20180507]:[Calendar].[Date].&[20180507]}), [Measures].[Ext Price])member Sales_Sum_CurentPeriod_Count as [Customer_CurrentPeriod].CountSELECT{Sales_CurrentPeriod , Sales_Sum_CurentPeriod_Count} ON COLUMNSfrom [SalesDatabase]
I'm obviously new to MDX so can anyone help figure out what I'm doing wrong? Thanks
August 9, 2018 at 4:32 pm
For anyone else who has a similar issue - you need to aggregate the field. https://stackoverflow.com/questions/37047150/how-to-query-date-field-in-mdx-with-and-without-aggregate-group
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply