Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Omid_Motamedise
Super User
Super User

Iserror in Power

As you know in power query there is try  (try-otherwise and try-catch which has been available since 2022) function to handle Error values.
I am asking in the Excel version, is there any function to handle logic like Iserror in Excel (receives an argument and returns true if the argument is an error).

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
1 ACCEPTED SOLUTION
m_dekorte
Super User
Super User

Hi @Omid_Motamedise,

 

No, there are a limited number of functions in Power Query that can handle error values, for example Table.ReplaceErrorValues Table.RemoveRowsWithErrors and Table.SelectRowsWithErrors they are probably the most useful.

But that doesn't mean that we can't replicate the EXCEL IsError function's behavior, give this a go:

[
    expression = 1 + 1 /* "1" */,
    result = (try expression )[HasError]
][result]

 

I hope this is helpful

View solution in original post

2 REPLIES 2
m_dekorte
Super User
Super User

Hi @Omid_Motamedise,

 

No, there are a limited number of functions in Power Query that can handle error values, for example Table.ReplaceErrorValues Table.RemoveRowsWithErrors and Table.SelectRowsWithErrors they are probably the most useful.

But that doesn't mean that we can't replicate the EXCEL IsError function's behavior, give this a go:

[
    expression = 1 + 1 /* "1" */,
    result = (try expression )[HasError]
][result]

 

I hope this is helpful

@m_dekorte Thank you.

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors