Complete the code to create a one-to-many relationship between Sales and Customers tables.
Relationship = CREATE_RELATIONSHIP(Sales[CustomerID], Customers[[1]])The one-to-many relationship connects Sales[CustomerID] to Customers[CustomerID]. This key uniquely identifies customers.
Complete the DAX formula to calculate total sales amount using the related table.
Total Sales = SUMX(Sales, Sales[Quantity] * Sales[[1]])The total sales amount is quantity multiplied by price per unit.
Fix the error in the DAX formula to count unique customers in Sales table.
Unique Customers = DISTINCTCOUNT(Sales[[1]])Counting unique customers requires the CustomerID column.
Fill both blanks to create a many-to-many relationship between Products and Suppliers tables.
Relationship = CREATE_RELATIONSHIP(Products[[1]], Suppliers[[2]])
Many-to-many relationships connect ProductID in Products to SupplierID in Suppliers.
Fill all three blanks to filter Sales by related Customers from a specific city.
Filtered Sales = CALCULATE(SUM(Sales[Amount]), Customers[[1]] = "[2]", Sales[[3]] > 0)
This formula sums sales amounts where customers are from a specific city and sales quantity is positive.