• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Handling errors when expanding table in power query

Resolved: Handling errors when expanding table in power query

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I wish to expand a table that contains data from an invoked column pulling data from the web.
The issue is that not every row finds a desired result on the web and returns an error. Although I don’t mind the result failing for this row it causes an issue when trying to expand the table because the table relies on all rows having the same captured headers for the expansion.
Below is an image showing the errors and the result of the expansion.
enter image description here
enter image description here
M Code:
Fx GetBriefProfileLink: Data Public
Sample Data:
It appears to be a glitch in PQ looking online however I am wondering if there are any workarounds.
My desired output is simply the same expansion but rows with errors just appear empty in the expanded section.

Answer:

You just replace errors with null before your expansion.
enter image description here

If you have better answer, please add a comment about this, thank you!

excel expand powerbi powerquery
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Watching state object in pinia doesn’t fire when object changes

22/03/2023

Resolved: Create From/To Pairs by sequential date R dplyr

22/03/2023

Resolved: Using a variable on next page before the if(isset statement

22/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.