Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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"
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
9 | |
7 | |
6 |