Bird
0
0

You wrote this Power Query M code to import a table from a web page:

medium📝 Formula Fix Q6 of 15
Power BI - Getting Data
You wrote this Power Query M code to import a table from a web page:
let
  Source = Web.Page(Web.Contents("https://example.com")),
  Tables = Source{0}[Data]
in
  Tables

But you get an error. What is the likely cause?
AThe index 0 does not exist because the page has no tables
BWeb.Page is not a valid Power Query function
CWeb.Contents requires authentication for all URLs
DThe URL string is missing quotes
Step-by-Step Solution
Solution:
  1. Step 1: Understand Web.Page Output

    Web.Page returns a list of tables found on the web page.
  2. Step 2: Check Index Usage

    If the page has no tables, accessing index 0 causes an error.
  3. Final Answer:

    The index 0 does not exist because the page has no tables -> Option A
  4. Quick Check:

    Empty tables list = Index error [OK]
Quick Trick: Check if tables exist before accessing by index [OK]
Common Mistakes:
  • Assuming Web.Page is invalid
  • Ignoring missing tables on page
  • Forgetting quotes around URL

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes