SetLocalVariable
  • 16 Apr 2024
  • 1 Minute to read
  • Dark
    Light

SetLocalVariable

  • Dark
    Light

Article summary

General

The SetLocalVariable function sets the value of a local variable with the given name to the
given value.

Syntax

The syntax of the SetLocalVariable function is:

SetLocalVariable Function Syntax

SetLocalVariable("variable_name", <value>)

Examples

The following Expression sets the local variable vYear with the value of the variable vMaxYear of a Datasource named Consumer Sales:

SetLocalVariable Function Example

SetLocalVariable( "vYear", [Datasource].[Consumer Sales].[Variable].[vMaxYear])


Was this article helpful?

What's Next