Skip to content

cube.formulaEvaluation

Enable or disable cube formula evaluation, this is useful when adding lots of data to the cube in a short amount of time and formula evaluation might slow the process. Remember to re-enable it after.

js
cube.formulaEvaluation(cubeName, bShouldEvaluate);

Parameters

  • cubeName - nameof a cube.
  • bShouldEvaluate - Boolean (true or false). Whether to run formula evaluation.

Example

js
cube.formulaEvaluation("Profit and Loss", false); // Disable formula evalutions 
// Do some heavy data input...
cube.formulaEvaluation("Profit and Loss", true); // Enable it