Calculate circular references (Xcircular_switch)
Spark supports circular references - with just a few steps, you can enable a circular reference in your Excel file to run within your Spark Service.
File requirements
Circular Switch
Spark requires files to have a "circular switch" included within your circular reference to enable Spark to properly trigger the calculation.
A "circular switch" acts as toggle that can turn the circular reference on or off. This helps stabilize the circular reference in Excel, and allows Spark to similarly activate the circular reference upon calculation. You can find an example of a circular switch below. Circular wwitches should be set up as Boolean values, and are recommended to be set to a TRUE value upon compile.
Setup a Circular Switch
Setting up a circular switch can be done in a few short steps:
Using the name manager, name a blank cell with the named ranger
XCircular_Switchand set the value toTRUE.Next, find your circular reference, and select any cell within the loop, and update your formula to only run the circular reference when your circular switch is equal to
TRUE.

Iterative calculation settings
Spark can match the iterative calculation settings in your workbook upon compile.
You can check your iterative calculation settings in Excel via: File -> Options -> Formulas.
Note: To enable circular references in Excel, the Enable iterative calculation setting must be checked.
By default, Excel will set
Maximum Iterationsto100, andMaximum Changeto0.001.Note: Spark will only match iterations to a max of
250. If maximum iterations in the workbook are above250, they will be defaulted to250upon upload. If Enable iterative calculation is not checked at time of upload, then Spark will defaultMaximum Iterationsto100andMaximum Changeto0.001in the Spark service.

Upload your file to Spark
Upon uploading your file to Spark, the compiler will detect your circular switch and circular references, and notify you that there is a circular reference in your workbook. It will also provide information on the maximum iterations and maximum change for the circular reference in your compiled service.
Example of XCircular_Switch mapping
XCircular_Switch mappingThis service can be uploaded to Spark to use as a simple example.
Last updated
