0
0
Power BIbi_tool~20 mins

OData and REST API connections in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
OData and REST API Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding OData vs REST API in Power BI

Which statement correctly describes a key difference between OData and REST API connections in Power BI?

AOData connections only support XML format, whereas REST API supports JSON only.
BREST API automatically generates data models, but OData requires manual data shaping.
COData provides a standardized queryable data feed, while REST API requires custom parsing of JSON responses.
DREST API connections in Power BI do not support authentication, but OData does.
Attempts:
2 left
💡 Hint

Think about how Power BI interacts with data formats and query standards.

dax_lod_result
intermediate
2:00remaining
DAX Measure for Counting API Calls by Date

Given a table 'ApiCalls' with columns 'CallDate' and 'Status', which DAX measure correctly counts the number of successful calls (Status = "Success") per day?

Power BI
Measure = CALCULATE(COUNTROWS(ApiCalls), FILTER(ApiCalls, ApiCalls[Status] = "Success"))
AMeasure = COUNTROWS(FILTER(ApiCalls, ApiCalls[Status] = "Success"))
BMeasure = CALCULATE(COUNTROWS(ApiCalls), FILTER(ApiCalls, ApiCalls[Status] = "Success"))
CMeasure = COUNTROWS(ApiCalls[Status] = "Success")
DMeasure = CALCULATE(COUNT(ApiCalls[Status]), ApiCalls[Status] = "Success")
Attempts:
2 left
💡 Hint

Remember that FILTER returns a table and CALCULATE modifies filter context.

visualization
advanced
2:00remaining
Best Visualization for API Response Time Analysis

You have connected Power BI to a REST API that returns response times for each API call. Which visualization best helps identify slow response trends over time?

ALine chart showing average response time per day
BPie chart showing percentage of calls per status
CStacked bar chart showing count of calls by endpoint
DTable listing all API calls with response times
Attempts:
2 left
💡 Hint

Think about how to show trends over time clearly.

🔧 Formula Fix
advanced
2:00remaining
Debugging REST API Connection Failure

You set up a REST API connection in Power BI but get an authentication error. Which of the following is the most likely cause?

AThe data returned is in JSON format instead of XML.
BThe API endpoint URL is missing the query parameters.
CThe Power BI desktop version is outdated.
DThe API key was not included in the HTTP request headers.
Attempts:
2 left
💡 Hint

Authentication errors usually relate to missing or incorrect credentials.

data_modeling
expert
3:00remaining
Modeling Data from Multiple OData Feeds

You have two OData feeds: 'Customers' and 'Orders'. Each feed is connected separately in Power BI. What is the best way to model these tables to analyze total sales per customer?

ACreate a relationship between 'Customers[CustomerID]' and 'Orders[CustomerID]' and use a measure to sum order amounts.
BAppend both tables into one combined table and sum sales directly.
CUse only the 'Orders' table since it contains customer IDs and sales data.
DCreate a calculated column in 'Customers' that fetches order totals via API calls.
Attempts:
2 left
💡 Hint

Think about how relational data is modeled in Power BI.