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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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.
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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors