Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum stddevc usage

  • stddevc usage

    Posted by maxperique on October 15, 2025 at 11:37 am

    I’m trying to use the function stddevc to calculate the standard deviation of a column in a list.

    If I used it with a hard-coded string

    stddevc(ivList;”colname”)

    it correctly works, but if I use a character variable with the column name such as

    Calculate locColName as “colname”

    stddevc(ivList;locColName)

    it returns the error: “Variable name specified for the column is not in the list”.

    Any suggestions?

    Thank you!

    maxperique replied 10 hours, 31 minutes ago 1 Member · 1 Reply
  • 1 Reply
  • maxperique

    Member
    October 16, 2025 at 7:00 am

    In case anyone needs it, I found out how to do it

    Calculate locStdDev as stddevc(ivList;eval(con(‘”‘;locColName;'”‘)))

    using eval() function to evaluate the locColName variable between quotes (or double quotes).

Log in to reply.