Forum Discussion
Power Query - Append if no error
- 5 years ago
Hello Anonymous
in addition to the answer of edhans you can try if this solution would work out for you. This only worsk if your ComparisonModel gives an error, not only a cell value with an error
Result = try Table.Combine({PrimaryModel, ComparisonModel}) otherwise PrimaryModel
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
Hello Anonymous
in addition to the answer of edhans you can try if this solution would work out for you. This only worsk if your ComparisonModel gives an error, not only a cell value with an error
Result = try Table.Combine({PrimaryModel, ComparisonModel}) otherwise PrimaryModel
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
- Mr_Glister3 years agoAdvocate II
This was great advice! I have a large data model with 15+ queries to different Snowflake tables. But my organisation also wanted me to include data from a Google Sheet that many people work in and of course it happens frequently that somebody messes up the sheet and then the query to it and the refresh of my entire report fails.
What I've done now is to enter a manual table with only the correct column names from the Google Sheet in it and I "try" to append the real data from the Google Sheet to it. Even if the append fails, I'm still left with my original empty table and the query and refresh continue uninterruptedly!