Skip to main content
Solved

Implementing SQL "CASE WHEN" Statement using native TX functionality

  • April 6, 2020
  • 2 replies
  • 127 views

  • Starter
  • 1 reply

Hi,

I have to do something like this in TX:

If productno > 0 then 'Product A'

else lookup in table productnames

I cannot figure out how to do this in TX.

Hope someone can help.

Best regards

Michael Vaisgaard

Best answer by jens.mikkelsen

Hi Michael.

 

You just do a field transformation on the lookup field (with a condition), could look like this,

 

2 replies

  • Contributor
  • 20 replies
  • Answer
  • April 6, 2020

Hi Michael.

 

You just do a field transformation on the lookup field (with a condition), could look like this,

 


  • Author
  • Starter
  • 1 reply
  • April 8, 2020

Hi Jens,

That worked, thank you.

Best regards

Michael Vaisgaard