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:
Source = SharePoint.Files("https://company.sharepoint.com/sites/marketing"),
Filtered = Table.SelectRows(Source, each Text.EndsWith([Name], ".xlsx"))

What does the Filtered table contain?
AOnly files named exactly '.xlsx'
BOnly Excel files in the root folder of the marketing site
CAll files in the marketing site ending with .xlsx
DAll files in the marketing site except Excel files
Step-by-Step Solution
Solution:
  1. Step 1: Understand SharePoint.Files() output

    SharePoint.Files() returns all files in the site and subfolders.
  2. Step 2: Analyze the filter condition

    Table.SelectRows filters rows where the file name ends with '.xlsx', so it keeps all Excel files.
  3. Final Answer:

    All files in the marketing site ending with .xlsx -> Option C
  4. Quick Check:

    Filter = files ending with .xlsx [OK]
Quick Trick: Text.EndsWith filters file extensions easily [OK]
Common Mistakes:
  • Assuming only root folder files are included
  • Thinking it excludes Excel files
  • Misreading filter as exact name match

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes