saiku (backend with Mondrain), " ", , .
In Saiku3.8, you can add a filter to the user interface: "column" → "filter" → "custom", then you can see the MDX filter expression.
Suppose we want the clicks in an ad to be greater than 1000, and then add the following line:
[Measures].[clicks] > 1000
Save and close, then this filter will be valid for elem searches with clicks greater than 1000.
MDX like below (suppose dt as a dimension and clicks as a measure, we want to find dt with clicks over 1000)
WITH
SET [~ROWS] AS
Filter({[Dt].[dt].[dt].Members}, ([Measures].[clicks] > 1000))
SELECT
NON EMPTY {[Measures].[clicks]} ON COLUMNS,
NON EMPTY [~ROWS] ON ROWS
FROM [OfflineData]
source
share