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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
olimilo
Responsive Resident
Responsive Resident

If error then do other query else continue in Power Query? And row-wide/multiple col error checking?

I'm not sure if this is entirely possible but is there a way to do an "if error then do query B else continue to the next step" and a row-wide/multi-column error checking? I know about the try statement, but it can only check one column per step (at least based on the examples I found).

 

I have Excel files that sometimes result in a #NAME error in Power Query, even if you open the file manually and checking errors in the formulas, there doesn't seem to be any error at all. I'm not sure if this is a Unicode encoding problem (everything is entered in the Roman Alphabet though).

 

What I'd like to do is to check the row for errors and do the next step if there aren't any, otherwise, do a separate query that will list all of the file names with errors in them (because PQ will halt the refresh once it encounters an Excel cell error).

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @olimilo

 

I'm afraid there is no better way to achive that.You may get more further help from Power Query forum.

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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