Apply One Expression to Many Attributes | ExpressionEvaluator

Liz Sanderson
Liz Sanderson
  • Updated

Introduction

The task here is to take an Excel table of voting data and apply an expression to 4 of the attributes to change them from a total value to a percent value based on the total number of voters.

http_download_1444329830729_6032.png
Excel Data Before Transformation

http_download_144432983186_6032.png
Excel Data After Transformation

In the ExpressionEvaluator, the @CurrentAttribute() function is used to retrieve the current value of the selected attributes, apply the expression, and replace them with the newly calculated value.

http_download_1444329831358_6032.png
ExpressionEvaluator Settings

Other examples of using CurrentAttribute would be to:

  • Apply the same date/time format to several date/time attributes
  • Apply a math function like round() to several attributes

Was this article helpful?

We're sorry to hear that.

Please tell us why.