Substitute an error or null while returning the value if the link exists

  • Substitute an error or null while returning the value if the link exists

    Posted by DSC Communities on June 21, 2020 at 4:00 pm
    • Seamus Marrinan

      Member

      June 21, 2020 at 4:00 PM

      I am trying to pull a value from another table but it seems that there is not a full dataset.

      Here is the command that I am using:

      = Table.AddColumn(#”Changed Type”, “Scrap Assignment”, each ScrapAssignments{[IndexSA=[#”Index-ScrapAssignments”]]})

      I need an alternative that allows me put in a value if there is an error or null. Any suggestions?

      Thanks

      ——————————
      Seamus Marrinan
      8594812330
      ——————————

    • Lutz Bendlin

      Member

      June 21, 2020 at 5:47 PM

      use the TRY … OTHERWISE …Ā  construct for errors, and the IF … THEN … ELSEĀ  construct for nulls.
      Or look into the [HasError]Ā  property.

      https://docs.microsoft.com/en-us/powerquery-m/errors

      ——————————
      Lutz
      ——————————
      ——————————————-

    DSC Communities replied 5 years, 4 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Substitute an error or null while returning the value if the link exists’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!