Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Power Query M code equivalent to "iferror" function

Hi,   Please can you tell me the Power Query M code equivalent for the "iferror" function in excel?   Thanks,   CM
  • Anonymous's avatar
    Anonymous
    8 years ago

    use "try....otherwise".

     

    try <some code hear that may result in an error> otherwise  <run this code in case of error>

     

    note that try and otherwise are NOT capitalized.  Also, no commas are needed.