Introduction
Sets in MDX are collections of tuples with the same dimensionality. As in many other programming languages, the basic logical operations, NOT
, AND
, and OR
, can be applied on them.
When putting two tuples together to form a set, we basically ask for the results that contain any of those tuples. Therefore, sets in MDX naturally imply the OR
logic. The first part of the chapter focuses on the challenges and solutions of performing NOT
and OR
logic operations on sets.
Iterations and recursions can also be performed on sets. The middle part of the chapter concentrates on those actions and the different ways to perform them.
The final part of the chapter explains how to perform complex sorts, how to apply the iteration technique to dissect and debug MDX queries and calculations, and how to perform the logical AND
operation in MDX.