1. Microsoft Learn. (2023). Use DAX in Power BI Desktop. In the "Tutorial: Create your own measures in Power BI Desktop" section
it is explained that measures are used for creating dynamic aggregation calculations. The example for counting order lines uses COUNTROWS('Sales')
directly supporting the chosen answer.
Reference: Module "Model data in Power BI"
Unit "Create DAX calculations in Power BI Desktop"
Section "Tutorial: Create your own measures in Power BI Desktop".
2. Microsoft Docs. (2023). COUNTROWS function (DAX). The official documentation states
"This function counts the number of rows in the specified table
or in a table defined by an expression." This confirms it is the correct function for counting transactions.
Reference: Data Analysis Expressions (DAX) reference
COUNTROWS function documentation.
3. Microsoft Learn. (2023). Calculated columns vs. measures. This documentation explicitly contrasts the two
stating
"Measures are used when you display resulting values in a report... that reflect user selections." This confirms a measure is the correct choice over a calculated column for this reporting scenario.
Reference: Module "Model data in Power BI"
Unit "Introduction to creating DAX calculations in Power BI Desktop"
Section "Calculated columns vs. measures".