Analytics builder - measurement output - Dynamic

is it possible to have a measurement output with a dynamic fragment name?

image

we would like to insert the alarm input text (extract property) dynamically in the measurement fragment name

you should be able to populate additional data in the output measurement using the Params Fragment port of the Measurement Output block. See Analytics Builder block reference - Cumulocity documentation for more details

Hello, the measurement fragment name needs to be specified during configuration and I can put a value of use a template, If I specify one, can I override it using Params fragment?

kind reminder waiting your feedback

yes, you can overwrite using the params input but you have to make sure to follow the exact structure of fragment+series+value. If you use the same fragment in the block parameters (and just a dummy series) it even overwrites the one configured in the parameters. @Sandeep_Komarneni not sure if this is intended or not?

I cannot share the model here but this is how it looks like (the first set properties sets the “value”, the second the series and the third the fragment).

If you can deploy custom blocks, I think using one would be more elegant. We have a few examples to create measurements like this one to create a measurement with multiple series:

The block is also explained here:

The (product) measurement output block doesn’t do anything to explicitly prevent overrides, so its possible the fragment/series can be overridden by properties. Obviously, we categorize it as user error if overwrite is not intentional :smiley: