Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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"
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.