Skip to main content
Solved

Implementing SQL "CASE WHEN" Statement using native TX functionality

  • April 6, 2020
  • 2 replies
  • 128 views

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

Hi Michael.

 

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

 


  • Author
  • Starter
  • April 8, 2020

Hi Jens,

That worked, thank you.

Best regards

Michael Vaisgaard