Complete the code to create a relationship between two tables in Power BI.
Model.createRelationship(table1[[1]], table2[ID])The relationship is usually created on a key column like CustomerID that exists in both tables.
Complete the code to filter related rows using DAX.
CALCULATE(SUM(Sales[Amount]), RELATEDTABLE([1]))The RELATEDTABLE function filters rows in the related Products table.
Fix the error in the DAX expression to correctly relate tables.
SUMX(RELATEDTABLE([1]), [SalesAmount])The RELATEDTABLE function returns a table related to the current row, so Products is the correct table to reference for sales amount aggregation.
Fill both blanks to create a relationship and use it in a measure.
Relationship = CREATE_RELATIONSHIP([1][OrderID], [2][ID])
The Orders table's OrderID connects to the Sales table's ID to relate sales to orders.
Fill all three blanks to write a DAX measure that sums sales filtered by related customer region.
TotalSalesRegion = CALCULATE(SUM([1][Amount]), RELATED([2][[3]]))
The measure sums Sales[Amount] filtered by the related Customers table's Region column.