Measures
Last updated
Last updated
Measures are reusable and governed components that define how an entity or a data asset should be aggregated.
Lynk applies the measure logic in two scenarios:
Once a feature of type is created or consumed
Once aggregating (rolling-up) an entity by some of it's features and using the MEASURE() function
Measures are definitions of how aggregate functions should be applied to features and fields
Name
Give the measure a name. This will be used when creating features and also will be shown on the Studio UI. It is recommended to give measures informative names that indicate their purpose.
Description
[optional]Describe the measure. It is recommended to give measures informative names that indicate their purpose - for other team members to be able to reuse the measure and for AI apps as well.
SQL
The measure definition. It should be composed of an aggregate function and a field. It is possible to chain multiple aggregate functions and / or multiple fields, just like you would do on plain SQL when needed.