cancel
Showing results for 
Search instead for 
Did you mean: 

Calculated Dimension Error

kelly_jacobsma
Discoverer
0 Kudos

Im fairly new to Lumira and trying to do a basic calculated dimension and of course, getting an error. I am hoping this is simple and someone can just point out what is wrong with my syntax - it doesn't like my 'in' piece of the syntax. It does fine when its just an equal (=) sign. if {DRG Code} = 34 then "CARDIO" else if {DRG Code} = 36 then "ORTHO" else if {DRG Code} in (35,36,163,164) then "PEDS" else 0 Any thoughts or help are greatly appreciated! Kelly Jacobsma

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

You should put the options in the IN section within square brackets [ ].

Answers (1)

Answers (1)

varunanand
Contributor
0 Kudos

Hi Kelly,

The formula does get long when using if then else condition. The Group by Selection under Data Actions should be able to get the desired results.

Thank you,

Varun Anand