MDP Add Fields to a LiteConnect Data Stream

You can add fields that don’t exist in the source data. Define the new fields by either applying code that is based on the existing columns or creating a new value.

  1. From the Import tab, select Data Streams List.
  2. Select a LiteConnect data stream and click Mapping.
  3. To add a column, click Add Field.
  4. Select the type of field: dimension or measurement. The Formula Editor appears.
    Formula Editor panel
    1. Name your new column. (1)
    2. Enter the formula. You can type your formula manually or select one from the available functions or fields.(2)
    3. Functions/Fields — Select a function or field from the list. These types are available (3).
      • Functions – A list of available functions that can be implemented on dimensions, and measurements.
      • Input – A list of all fields from the source file that were uploaded to the data stream.
      • Datorama – A list of available dat fields in the "transformed" file currently being manipulated by a data stream. The values are affected by formula manipulation (like you see in the data preview).
    4. Additional Options – These options are also available (4)
      • Auto Format Code – Formats your code into the standard structure.

        Before Auto Format:

        show formula before auto format

        After Auto Format

        shows formula editor after auto format

      • Comment Out — Allows you to mark a comment in the code for the formula. This code is processed, even if it has dimensions or measurements.
      • Ucomment — Allows you to remove the comment from the code.
      • Validate Syntax — Ensures that your syntax is free of errors.
      • Evaluate — Runs the code on manually entered values.
  5. Save your work.