Creating Formulas in the External Source Model using Model Manager
  • 1 Minute to read
  • Dark
    Light
  • PDF

Creating Formulas in the External Source Model using Model Manager

  • Dark
    Light
  • PDF

Article summary

If your Source Model contains fields of type Formula, you can create the formulas using Model Manager's interactive formula builder.

  1. Login to Spotlight.

  2. Select the Model task.

  3. Scroll to find the External Source Model you want to view.

  4. Click the gray text that says External Source Model.

    ModelingImagesEDSMESMBox23.png

    The list of existing fields appears.

    2020234.png

    The right pane displays the formula builder options and editor. You can type in a formula where it says "Enter formula here..." or you can select from the drop-down list of functions and operators.

In this example, we will create a unique Customer # by combining other fields together:

Customer # Preface - State - Phone Number

  1. From the Functions list, select Concatenate. The basic syntax for this function is inserted into the editor.

    ModelingImagesEDSMESMFormula51.png

  2. To ensure that the formula will be assigned to the correct field, enter the field name before "Enter Formula."

    ModelingImagesEDSMESMFormula81.png

  3. Select the text Field 1 and press Del. Type @ to see a list of field names to insert. Select Customer # Preface.
    ModelingImagesEDSMESMFormula91.png

  4. Select the text Field 2 and replace it with the second field name to use: State.

  5. Select the ... after Field 2 and replace it with the third field name to use: Phone Number. Clean up excess brackets as needed.

    Now the formula looks like this:

    ModelingImagesEDSMESMFormula61.png

  6. To add the dashes between each field in the formula, add a comma and " - " as follows:

    ModelingImagesEDSMESMFormula71.png

  7. Click Set Formula.

  8. Click Saved Formulas to see the list of formulas created and saved so far.

    ModelingImagesEDSMESMFormula101.png

  9. When done making all changes to fields and formulas, click the Save button.

    2020uy.png


Was this article helpful?