Cube data rules functions

Rules functions that work on cube data.