0
0
Power BIbi_tool~5 mins

COUNTROWS in Power BI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AThe number of columns in the table
BThe number of rows in the table
CThe sum of all numeric values in the table
DThe average of all values in the table
Which DAX expression counts rows where SalesAmount is greater than 100?
ACOUNTROWS(FILTER(Sales, Sales[SalesAmount] > 100))
BCOUNTROWS(Sales[SalesAmount] > 100)
CCOUNTROWS(SalesAmount > 100)
DCOUNTROWS(Sales, SalesAmount > 100)
Can COUNTROWS be used on a calculated table expression?
AYes
BNo
COnly if the table is physical
DOnly with numeric columns
What will COUNTROWS return if the table is empty?
AError
B1
C0
DNull
Which scenario is a good use case for COUNTROWS?
ACounting total sales amount
BCalculating average price
CFinding maximum sales date
DCounting how many customers 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.