I am trying the following query on the demo Sales cube of icCube:
WITH
SET [Amer.Countries]
AS Descendants([North America],[Country])
SELECT
Filter([Amer.Countries],([Measures].[Amount], {[2009], [2010]}) > 13240) on Rows,
[Measures].members on Columns
FROM [Sales]
WHERE [Time].[2011]
What is wrong with the condition ([Measures].[Amount], {[2009], [2010]}) > 13240
and how do I fix it?
I get the following error message from icCube:
operator '>' syntax error (left-operand:'set') (right-operand:'numeric')
The only thing I understand from this message is that the use of the set {[2009], [2010]}
is out of place. However, I do not understand why that is the case and what the fix should be.