AnalyticsCreator Docs Preview

Reuse macros and predefined transformations

On this page
  1. Macros
  2. Predefined transformations
  3. Recommended workflow

Macros reuse expression text; predefined transformations apply configured expression-generation rules to columns.

Macros

Use the Macro editor reference for names, language choices, required fields and storage limits. Calls in transformation expressions use the form @Name(...); SQL expansion substitutes positional arguments such as :1. Inspect the definition's argument contract rather than assuming a universal signature.

Referenced table means the macro returns a key belonging to that table. It supports automatic reference creation for a transformation column using the macro. For example, a Date2ID macro can calculate the calendar dimension key and identify that calendar as its Referenced table.

Saving a macro searches direct and indirect callers and regenerates stored definitions for detected dependent transformations. It does not deploy their views. The search is textual and does not rewrite calls when the macro is renamed; review old-name references separately. See Save and dependency limits.

Predefined transformations

A rule constructs expression text from column metadata. It affects transformations that explicitly assign it. Consult the Predefined transformations reference for statement contracts, rule order, Data Vault conditions and Save effects.

Evaluate uses current editor text and synthetic metadata in a repository query. Its predicate and type-join limitations mean the preview cannot prove that the rule selects the correct real columns. Read the Evaluate contract before using its output as a text preview.

  1. Identify the existing callers or assigned transformations and the intended datatype/column scope. Include a matching column and a nonmatching column in a small test transformation.
  2. Edit the macro or predefined rule. For a rule, use Evaluate to preview constructed text, subject to its documented limits.
  3. Select Save, then inspect the affected transformation's generated VIEW. Check macro expansion or rule application on both test columns, including defaults and hash-key expressions where applicable.
  4. Check any Referenced table association against the actual key expression and resulting references. A table association does not verify that returned key values exist.
  5. Apply the reviewed output through the generation/deployment workflow and verify representative result rows. Saving and regenerating metadata alone do not update DWH data.

If regeneration fails after Save, inspect the saved definition and each dependent transformation before applying output: the metadata write and regeneration are separate steps.

The Anonymize flag is metadata consumed by rules/inheritance; enabling a flag alone does not demonstrate that sensitive data has been transformed. See inheritance and anonymization.

Search documentation