0
0
Power BIbi_tool~10 mins

RELATED for cross-table values in Power BI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the DAX formula to get the related product name from the Products table.

Power BI
ProductName = RELATED([1][ProductName])
Drag options to blanks, or click blank then click option'
ACustomers
BSales
CProducts
DOrders
Attempts:
3 left
💡 Hint
Common Mistakes
Using the current table name instead of the related table.
Confusing RELATED with LOOKUPVALUE.
2fill in blank
medium

Complete the DAX formula to get the related customer city from the Customers table.

Power BI
CustomerCity = RELATED([1][City])
Drag options to blanks, or click blank then click option'
ACustomers
BProducts
CSales
DOrders
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting a table that does not contain the City column.
Using the current table name instead of the related table.
3fill in blank
hard

Fix the error in the DAX formula to correctly get the related category name.

Power BI
CategoryName = RELATED([1][CategoryName])
Drag options to blanks, or click blank then click option'
ACategory
BCategories
CProducts
DSales
Attempts:
3 left
💡 Hint
Common Mistakes
Using singular instead of plural table names.
Using unrelated table names.
4fill in blank
hard

Fill both blanks to create a measure that sums sales amount using RELATED to get the product price.

Power BI
TotalSales = SUMX(Sales, Sales[Quantity] * RELATED([1][[2]]))
Drag options to blanks, or click blank then click option'
AProducts
BPrice
CCost
DSalesAmount
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong table or column names.
Confusing Cost with Price.
5fill in blank
hard

Fill all three blanks to create a calculated column that shows the customer country from the related Customers table and the order year.

Power BI
CustomerCountryYear = RELATED([1][[2]]) & " - " & YEAR([3][OrderDate])
Drag options to blanks, or click blank then click option'
ACustomers
BCountry
COrders
DSales
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong table for OrderDate.
Mixing up column names.