Nível 1
Nível 2
Faça login na Comunidade
Faça logon para exibir todas as medalhas
I am trying to create a calculated field in an Issue Custom Form to auto-populate a date for users.
I am able to code the date using the 'ADDWEEKDAYS()' expression based on a custom date field used earlier in the form but I would like to add a certain complexity based on an another selection made in a drop-down custom field with three options 'BAU, Existing or New'.
Each of the three drop-down options would result in the generation of a different date based on the date field earlier in the form.
Does anyone know how I could use the 'IF' expression to code the three different possibilities and for the field to have the capacity to generate three different dates when taking the date field and the drop-down in conjunction?
Solucionado! Ir para a Solução.
Os tópicos ajudam a categorizar o conteúdo da comunidade e aumentam sua capacidade de descobrir conteúdo relevante.
Visualizações
respostas
Total de curtidas
Hello @ThomasNe2, I'll make few assumptions here as the instructions are not clear.
Let’s assume:
And the expected output is:
Then,
IF({DE:IssueType} = "BAU", ADDWEEKDAYS({DE:Date}, 2),
IF({DE:IssueType} = "Existing", ADDWEEKDAYS({DE:Date}, 5),
IF({DE:IssueType} = "New", ADDWEEKDAYS({DE:Date}, 10), "")))
Visualizações
respostas
Total de curtidas
Hello @ThomasNe2, I'll make few assumptions here as the instructions are not clear.
Let’s assume:
And the expected output is:
Then,
IF({DE:IssueType} = "BAU", ADDWEEKDAYS({DE:Date}, 2),
IF({DE:IssueType} = "Existing", ADDWEEKDAYS({DE:Date}, 5),
IF({DE:IssueType} = "New", ADDWEEKDAYS({DE:Date}, 10), "")))
Visualizações
respostas
Total de curtidas
Hi Manish
Thanks so much for this! I added the first expression related to BAU and it worked perfectly. I have then added the expression for Existing, separated by a comma but I am getting an error. Should I be separating them a different way?
Visualizações
respostas
Total de curtidas
After '-14', you just need one closing bracket. Similarly, after -18 just one closing bracket.
Visualizações
respostas
Total de curtidas
In simple language, this would translate to if(BAU, then adddays(-14), elseif(Existing, then adddays(-18), elseif.....
Visualizações
respostas
Total de curtidas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas