Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Static import is required to use a predefined enum with aggregation types.

Code Block
languagegroovy
import static net.pricefx.server.dto.calculation.ResultMatrixGrouping.AggregateFunctionType
import static net.pricefx.server.dto.calculation.ResultMatrixGrouping.AggregateFunctionType.AVG
import static net.pricefx.server.dto.calculation.ResultMatrixGrouping.AggregateFunctionType.SUMCOUNT
import static net.pricefx.server.dto.calculation.ResultMatrixGrouping.AggregateFunctionType.MAX
import static net.pricefx.server.dto.calculation.ResultMatrixGrouping.AggregateFunctionType.MIN

Examples

Grouping Example

In the following example, we retrieve the data from the Products table and group them by the Business Unit, Product Group, and Size columns.

...