0
0
Power BIbi_tool~10 mins

OData and REST API connections in Power BI - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Sample data retrieved from an OData REST API connection showing user IDs, names, and countries.

CellValue
A1ID
B1Name
C1Country
A2101
B2Alice
C2USA
A3102
B3Bob
C3Canada
A4103
B4Charlie
C4UK
Formula Trace
OData.Feed("https://services.odata.org/V4/Northwind/Northwind.svc/Customers")
Step 1: OData.Feed("https://services.odata.org/V4/Northwind/Northwind.svc/Customers")
Step 2: Table.SelectColumns(result, {"CustomerID", "CompanyName", "Country"})
Step 3: Table.RenameColumns(result, {{"CustomerID", "ID"}, {"CompanyName", "Name"}})
Cell Reference Map
   A       B        C
1  ID      Name    Country
2  101    Alice      USA
3  102     Bob     Canada
4  103  Charlie       UK
The table columns ID, Name, and Country come from the OData API response after selecting and renaming.
Result
   A       B        C
1  ID      Name    Country
2  101    Alice      USA
3  102     Bob     Canada
4  103  Charlie       UK
The final table shown in Power BI after connecting to the OData REST API, selecting, and renaming columns.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the OData.Feed function do in Power BI?
AIt filters rows in a table.
BIt connects to an OData REST API and retrieves data as a table.
CIt creates a chart from existing data.
DIt renames columns in a table.
Key Result
OData.Feed connects to an OData REST API URL and returns data as a table, which can be filtered and renamed.