cancel
Showing results for 
Search instead for 
Did you mean: 

Writting a measure in IDT.

Former Member
0 Kudos

Dear Gurus:

I want a measure to be written in IDT. I have three conditions and once these three conditions fulfilled i want a sum of the specific field.

Kindly guide me with syntax and which statement should I use to achieve this, as I am not a programmer.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member4998
Active Contributor
0 Kudos

Hi


Use the CASE statement, find the below sample code.



CASE WHEN

Table.Field =1

THEN 'Low'

WHEN Table.Field  ='2'

THEN 'Medium'

WHEN Table.Field  ='3'

THEN 'High'

WHEN Table.Field  ='4'

THEN 'Very High'

END