Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have the following querry but it sometimes gives the error "This Web query returned no data". I need to stop this error from being shown and if no data is returned, just leave the tables filled with the results of the last succesful querry. I produced this code using the Data - From Web button.
let
Source = Web.Page(Web.Contents("https://tradingeconomics.com/commodities")),
Data1 = Source{1}[Data],
#"Changed Type" = Table.TransformColumnTypes(Data1,{{"Metals", type text}, {"Price", type number}, {"Day", type number}, {"%", Percentage.Type}, {"Weekly", Percentage.Type}, {"Monthly", Percentage.Type}, {"YoY", Percentage.Type}, {"Date", type date}})
in
#"Changed Type"
Hi @G-Salyer-13
You can use try.. otherwise function, you can refer to the following link.
Solved: Ignore Data source if fails to load - Microsoft Fabric Community
Solved: Append all queries that have no error - Microsoft Fabric Community
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I have no clue how to implement this into the code I posted. This is the code created by the Data - From Web button....
let
Source = Web.Page(Web.Contents("https://tradingeconomics.com/commodities")),
Data1 = Source{1}[Data],
#"Changed Type" = Table.TransformColumnTypes(Data1,{{"Metals", type text}, {"Price", type number}, {"Day", type number}, {"%", Percentage.Type}, {"Weekly", Percentage.Type}, {"Monthly", Percentage.Type}, {"YoY", Percentage.Type}, {"Date", type date}})
in
#"Changed Type"
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.