Complete the code to set the relationship direction to single in Power BI.
Relationship.Direction = [1]In Power BI, the relationship direction can be set to 'Single' or 'Both'. 'Single' means filtering flows in one direction only.
Complete the DAX expression to calculate total sales filtered by related product category.
TotalSales = CALCULATE(SUM(Sales[Amount]), RELATEDTABLE([1]))The RELATEDTABLE function filters the Sales table by the related Category table, so 'Category' is the correct table to use.
Fix the error in the DAX formula to enable cross-filtering from 'Customers' to 'Sales'.
CrossFilter = CROSSFILTER(Customers[CustomerID], Sales[CustomerID], [1])The CROSSFILTER function requires 'Both' to enable cross-filtering in both directions between Customers and Sales tables.
Fill both blanks to create a bidirectional relationship between 'Orders' and 'Products' tables.
CREATE RELATIONSHIP Orders[ProductID] TO Products[ProductID] WITH CROSSFILTER [1] AND DIRECTION [2]
To create a bidirectional relationship, both cross-filter and direction must be set to 'Both'.
Fill all three blanks to write a DAX measure that sums sales filtered by related product category with bidirectional filtering.
TotalCategorySales = CALCULATE(SUM(Sales[Amount]), CROSSFILTER(Sales[ProductID], [1][ProductID], [2]), RELATEDTABLE([3]))
The CROSSFILTER function uses 'Products' table and 'Both' direction for bidirectional filtering. RELATEDTABLE uses 'Category' to filter sales by product category.