Bird
0
0

Given this Power Query M code snippet:

medium📝 Formula Result Q4 of 15
Power BI - Getting Data
Given this Power Query M code snippet:
let
  Source = OData.Feed("https://services.odata.org/V4/Northwind/Northwind.svc/Orders"),
  Filtered = Table.SelectRows(Source, each [ShipCountry] = "USA")
in
  Filtered

What will this query return?
AA list of all customers in the USA
BA table of orders shipped to the USA
CAn error because ShipCountry is not a valid column
DA table of products filtered by USA suppliers
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the source

    The OData.Feed connects to the Orders entity from Northwind.
  2. Step 2: Understand the filter

    Table.SelectRows filters rows where ShipCountry equals "USA".
  3. Step 3: Determine output

    The output is a table of orders shipped to the USA.
  4. Final Answer:

    A table of orders shipped to the USA -> Option B
  5. Quick Check:

    Filtering by ShipCountry returns matching orders [OK]
Quick Trick: Filtering OData tables returns matching rows [OK]
Common Mistakes:
  • Confusing Orders with Customers or Products
  • Assuming ShipCountry is invalid
  • Thinking the filter applies to suppliers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes