Macro

Overview

A Macro is a reusable statement definition stored in the AnalyticsCreator repository. Macros are used to centralize reusable logic that can be referenced from transformation expressions, filters, table references, subselects, and default values.

Function

Use the Macro entity to define a named reusable statement with a language, optional referenced table, and optional description. Macro names must be unique in the repository, and a macro cannot be saved without a name, statement, and language.

When a macro is saved, AnalyticsCreator identifies transformations that reference the changed macro and recreates the affected transformation views. This keeps dependent generated logic aligned with the current macro definition.

Access

Macros can be opened from the repository navigation tree or from the DWH ribbon tab. The macro list supports filtering, creating new macros, deleting macros, and opening an existing macro by double-clicking the selected row.

How to access

Navigation tree

Data warehouse -> Macros

Toolbar

DWH -> List -> Macros

Diagram

Not direct. Use the macro list or navigation tree.

Visual element

Macro detail page

Screen overview

The macro detail page contains the following visible fields and actions.

ID Property Description
1Macro nameUnique macro name used when the macro is referenced from generated logic. Saving requires a non-empty macro name.
2DescriptionOptional description for the macro definition.
3LanguageMacro language selected from the configured macro languages. New macros default to language value 2.
4Referenced tableOptional table reference. The list includes tables that have primary-key columns, plus a none option.
5StatementReusable macro statement. The field supports multiple lines and tab input. Saving requires a non-empty statement.
6SaveValidates required fields, saves the macro, refreshes the navigation tree, and recreates dependent transformation views when referenced macros are affected.
7CancelReturns to the previous page. If there are unsaved changes, AnalyticsCreator asks whether to save or cancel the navigation.

List behavior

  • The macro list filters by macro name.
  • The list grid shows Name and Language.
  • New opens a new macro detail page.
  • Double-clicking a list row opens the selected macro for editing.
  • Delete removes the selected macro after confirmation.

Related topics