Support center for flex.bi version 4.0

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Caches the result of the calculation in memory for query in execution. Can be useful when same calculation is repeated during the report more than once.

Syntax

Cache(Expression)

Examples

 

A report has a measure that for calculation uses the result of a previously calculated measure. Using cache would store the first time calculation result in memory and for the next measure would be used to optimize the performance of the report.

Open issues are calculated much faster using the cache function as the query should go through all time members and repeat the mathematical expression to each of them.

 

Cache(
    NonZero(Sum(PreviousPeriods([Time].CurrentHierarchyMember),
      Cache([Measures].[Issues created]
          - [Measures].[Issues resolved])
    ))
    + [Measures].[Issues created]
    - [Measures].[Issues resolved]
  )
  • No labels