Forum Replies Created

  • Ciaran

    Member
    February 1, 2024 at 12:00 am in reply to: How can I apply a function with ‘if’ to a table?

    Using the vector conditional or applying a function to the columns are both valid solutions that work.
    The vector conditional would be the best approach as it is more efficient to use.  Due to the fact that it is doing the calculation within the query and doesn’t have to do an each on each value to get the entry for the new column.

    As shown below using a table of 1 million rows, the difference can be seen for either approach