Skip to Content

Calculated Dimension Error

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 08, 2016 at 09:50 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2016 at 07:25 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.