Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Calculated field - Calculate on first instance of text and not change after

Avatar

Level 4

Hi community! I have a calculated field that determines if a request queue issue was submitted via email or the form. (Formula below). It's working correctly but if someone changes the queue topic on the issue, it recalculates and changes the value. I'd like for it to calculate the first time and then never change. I know this is possible but I don't know how. Can anyone help?

 

IF({queueTopicID}="6335e54d00928f36d0689d4974d7f342", "Email", "Form")
1 Accepted Solution

Avatar

Correct answer by
Level 9
Level 9

To lock a calculated field to its first value, it needs to reference itself to see if a value has already been written.
 
In your example, it would look like this (presuming the name of your calculated field is something like "Source"):

IF(ISBLANK({DE:Source}),IF({queueTopicID}="6335e54d00928f36d0689d4974d7f342","Email","Form"),{DE:Source})

 

The logic is: "if the calculated field "Source" is blank, give it a value using this IF statement. If "Source" is not blank (because a value has already been written to it), keep the existing value."



View solution in original post

2 Replies

Avatar

Correct answer by
Level 9
Level 9

To lock a calculated field to its first value, it needs to reference itself to see if a value has already been written.
 
In your example, it would look like this (presuming the name of your calculated field is something like "Source"):

IF(ISBLANK({DE:Source}),IF({queueTopicID}="6335e54d00928f36d0689d4974d7f342","Email","Form"),{DE:Source})

 

The logic is: "if the calculated field "Source" is blank, give it a value using this IF statement. If "Source" is not blank (because a value has already been written to it), keep the existing value."