Complete the code to count the number of rows in the 'Sales' table.
TotalRows = [1](Sales)The COUNTROWS function counts the number of rows in a table. Here, it counts rows in the 'Sales' table.
Complete the code to count rows in the 'Customers' table where the 'Country' column equals 'USA'.
USA_Customers = COUNTROWS(FILTER(Customers, Customers[Country] = [1]))Text values in DAX must be enclosed in double quotes. So, "USA" is correct to filter the 'Country' column.
Fix the error in the code to count rows in 'Orders' where 'Status' is 'Completed'.
CompletedOrders = COUNTROWS(FILTER(Orders, Orders[Status] = [1]))The text value 'Completed' must be enclosed in double quotes in DAX. So, "Completed" is correct.
Fill both blanks to count rows in 'Products' where 'Category' is 'Bikes' and 'Price' is greater than 1000.
ExpensiveBikes = COUNTROWS(FILTER(Products, Products[Category] = [1] && Products[Price] [2] 1000))
Use "Bikes" with double quotes for text and the greater than symbol > to filter prices above 1000.
Fill all three blanks to count rows in 'Employees' where 'Department' is 'Sales', 'Age' is greater than 30, and 'Active' is TRUE.
ActiveSalesOver30 = COUNTROWS(FILTER(Employees, Employees[Department] = [1] && Employees[Age] [2] 30 && Employees[Active] = [3]))
Use "Sales" for the department text, > for age comparison, and TRUE() for the boolean active status.