Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi all,
I want to call an API but if returns nothing the Expanded Column1 give me an error. If there a way to skip it?
let
Source = Json.Document(Web.Contents("https://api.site.com/api-public/report/query/2?datainicial=2020-05-01&datafinal=2020-05-31 23:59:59"), 65001),
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"created_date", "video_id", "tag_id", "watched_1s_app", "watched_3s_app", "skip_0s_app", "total_impressions", "time_watched", "time_watched_without_push", "time_watched_from_push", "likes", "favorites", "shares", "searches", "%_watched_10", "%_watched_10_25", "%_watched_25_50", "%_watched_50_75", "%_watched_75_100"}, {"created_date", "video_id", "tag_id", "watched_1s_app", "watched_3s_app", "skip_0s_app", "total_impressions", "time_watched", "time_watched_without_push", "time_watched_from_push", "likes", "favorites", "shares", "searches", "%_watched_10", "%_watched_10_25", "%_watched_25_50", "%_watched_50_75", "%_watched_75_100"})
in
#"Expanded Column1"
Another thing is that I use those result, to each month, to merge into a single table. I dont know if this is going to be a headache later, if I just skip the next step.
Any ideas?
Thanks!
@efilipe you can use try otherwise, check these posts:
https://docs.microsoft.com/en-us/power-query/handlingerrors
https://blog.gbrueckl.at/2013/12/error-handling-in-power-query/
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 44 | |
| 42 | |
| 40 | |
| 40 |