Using value of attribute as start of recalculation

Gold Contributor
Gold Contributor

Hi,

I want to calculate a specific value at each event with it's current value as the input (along with some other values)

For Example:

new value = (x/y) - current value

How do I re-use the current value when subtracting it from the left half of the formula?

I've tried to store the current value in another attribute, but when I finish the setup of the attributes I get a dependency error.

Thanks in advance!

2 REPLIES 2

Using value of attribute as start of recalculation

Tealium Employee

Hi @TimWaijers

In UDH, an attribute is only enriched once per event.  This leads to the circular dependency problem you have encountered.  It is not possible to have an attribute on both the left and right hand side of an assignment, unfortunately.

I'd suggest you log a product idea for that ability.

In the meantime, depending on your use case, there may be another way to achieve it.  You can either discuss it here, or you can send me a private message.

Mark

Using value of attribute as start of recalculation

Gold Contributor
Gold Contributor

Hi @mark_reddin,

Thanks for your reply. I was afraid of that. 

Our current strategy is to recalculate part of the algorithm within the tag manager (IQ) for web-based tags and do the calculation, based on start and end of session, for other channels that have single hits (eg. email opens etc.)

Public