In this guide, we set up an XMLA interceptor, rewriting an MDX Select query when queried on a specific measure.Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
We implement the following rewriting logic:
TradeID is a high-cardinality hierarchy. It must be filtered for measures heavy to compute. contributors.COUNT plays the role of such a measure.
0. Prerequisites
This guide assumes that the project is using Maven and Spring Boot and is already depending on the Atoti Server Starter.1. Define the interceptor
An XMLA interceptor is defined by implementing the interfacecom.activeviam.activepivot.xmla.intf.api.IXmlaInterceptor.
contributors.COUNT and no filter on TradeID, using a WHERE clause, not changing the shape of the MDX result.
2. Add the interceptor to the application
The interceptor integrates into the application by returning it as a bean, in a configuration class loaded by the application.3. See the interceptor in action
Connecting your application to Excel - described here - you can see your queries being filtered on a single value trade value whenever the hierarchyTradeID is not expressed.