0
0
Power BIbi_tool~20 mins

Web data import in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Web Data Import Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Web Data Import Authentication

You want to import data from a web API that requires authentication. Which method should you use in Power BI to securely connect and import the data?

AUse the Web connector with anonymous access and include credentials in the URL query string.
BUse the Web connector and select the appropriate authentication method like Basic or OAuth in the credentials prompt.
CUse the Web connector with no authentication and hope the API allows public access.
DDownload the data manually and import it as a CSV file instead of using the Web connector.
Attempts:
2 left
💡 Hint

Think about how Power BI handles secure connections and credentials for web sources.

dax_lod_result
intermediate
2:00remaining
DAX Measure for Counting Web Import Refreshes

You have a table 'WebRefreshLog' with a column 'RefreshDateTime' recording each time the web data import refreshes. Write a DAX measure to count how many refreshes happened in the last 7 days.

Power BI
RefreshCountLast7Days = CALCULATE(COUNTROWS(WebRefreshLog), FILTER(WebRefreshLog, WebRefreshLog[RefreshDateTime] >= TODAY() - 7))
ARefreshCountLast7Days = CALCULATE(COUNTROWS(WebRefreshLog), FILTER(WebRefreshLog, WebRefreshLog[RefreshDateTime] >= TODAY() - 7))
BRefreshCountLast7Days = CALCULATE(COUNTROWS(WebRefreshLog), WebRefreshLog[RefreshDateTime] >= TODAY() - 7)
CRefreshCountLast7Days = COUNTROWS(FILTER(WebRefreshLog, WebRefreshLog[RefreshDateTime] >= TODAY() - 7))
DRefreshCountLast7Days = COUNTROWS(WebRefreshLog) - 7
Attempts:
2 left
💡 Hint

Remember that CALCULATE changes filter context and FILTER creates a table to filter on.

visualization
advanced
2:00remaining
Best Visualization for Web Data Import Status Over Time

You want to create a dashboard visual showing the success or failure of web data imports over the past month, updated daily. Which visualization type best shows trends and status clearly?

AA line chart with two lines: one for success count and one for failure count per day.
BA table listing each refresh date and its status.
CA pie chart showing total success vs failure counts for the month.
DA clustered bar chart showing counts of success and failure by day.
Attempts:
2 left
💡 Hint

Think about how to best show trends over time with multiple categories.

🔧 Formula Fix
advanced
2:00remaining
Debugging Web Data Import Query Failure

Your Power BI web data import query fails with an error: "Access denied". You confirmed the URL and credentials are correct. What is the most likely cause?

AThe Power BI desktop version is outdated and cannot connect to web sources.
BThe URL is missing the https:// prefix.
CThe web API requires a user-agent header that Power BI is not sending by default.
DThe data source is too large to import via web connector.
Attempts:
2 left
💡 Hint

Think about common web API security requirements beyond credentials.

data_modeling
expert
3:00remaining
Modeling Web Data Import Logs for Performance Analysis

You have imported web data logs with columns: 'ImportID', 'StartTime', 'EndTime', 'Status'. You want to analyze average import duration by status and filter by date ranges efficiently. Which data model design is best?

ACreate a calculated column 'Duration' as EndTime - StartTime; use EndTime as the only date filter column without a Date table.
BCreate a measure to calculate duration on the fly as EndTime - StartTime; no Date table needed because filtering is done on StartTime column directly.
CStore duration externally and import it as a column; use StartTime as text for filtering to improve performance.
DCreate a calculated column 'Duration' as EndTime - StartTime and use it in measures; add a separate Date table linked to StartTime for filtering.
Attempts:
2 left
💡 Hint

Think about best practices for time calculations and filtering in Power BI models.