Recall & Review
beginner
What does the COUNTROWS function do in Power BI?
COUNTROWS counts the number of rows in a table or a table expression.
Click to reveal answer
intermediate
How do you use COUNTROWS with a filter in Power BI?
You use COUNTROWS with the FILTER function to count rows that meet specific conditions, like COUNTROWS(FILTER(Table, Condition)).
Click to reveal answer
beginner
True or False: COUNTROWS can count rows in a physical table only.
False. COUNTROWS can count rows in any table expression, including filtered or calculated tables.
Click to reveal answer
beginner
Write a simple DAX formula using COUNTROWS to count all rows in a table named 'Sales'.
COUNTROWS(Sales)
Click to reveal answer
intermediate
Why is COUNTROWS useful in creating dynamic measures in Power BI?
Because it can count rows based on filters or conditions, helping to create measures that update automatically with user selections.
Click to reveal answer
What does COUNTROWS return when used on a table?
✗ Incorrect
COUNTROWS returns the number of rows in the specified table or table expression.
Which DAX expression counts rows where SalesAmount is greater than 100?
✗ Incorrect
You must use FILTER to create a table of rows meeting the condition, then COUNTROWS counts those rows.
Can COUNTROWS be used on a calculated table expression?
✗ Incorrect
COUNTROWS works on any table expression, including calculated or filtered tables.
What will COUNTROWS return if the table is empty?
✗ Incorrect
COUNTROWS returns 0 when the table has no rows.
Which scenario is a good use case for COUNTROWS?
✗ Incorrect
COUNTROWS is useful to count how many rows meet a condition, like customers who made purchases.
Explain how COUNTROWS can be combined with FILTER to count specific rows in a table.
Think about filtering first, then counting.
You got /3 concepts.
Describe a real-life example where COUNTROWS would help in a sales report dashboard.
Imagine you want to know how many orders were made last month.
You got /3 concepts.