Forum Discussion

CDavidOrr's avatar
CDavidOrr
Cloud Apps
08-31-2022
Solved

Using Coalesce with Lookup in a custom column

I need to create a custom column on one of my tables.  This column will be a LOOKUP from another table.  However, if the current row has no match in the remote table, I want to use the value from the...
  • harikm007's avatar
    08-31-2022

    Hi CDavidOrr ,

    Try 'case' statement as below:

    case when Lookup([AccMapping], [AccessorialName], [EdiCode], [Code]) = null
    then [EdiCode]
    else Lookup([AccMapping], [AccessorialName], [EdiCode], [Code])
    end

    -Hari