Calculated field - Calculate on first instance of text and not change after | Community
Skip to main content
MelissaDa5
New Participant
September 30, 2022
Solved

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

  • September 30, 2022
  • 1 reply
  • 813 views

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")
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by William--

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."



1 reply

William--
William--Accepted solution
New Participant
September 30, 2022

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."



If you like my content, please take a moment to view and vote on my Idea Requests: https://tinyurl.com/4rbpr7hf
MelissaDa5
New Participant
September 30, 2022

Thank you so much! This worked perfectly!