Basic DAX Functions
SUM, COUNT, AVERAGE, MIN, MAX, DISTINCTCOUNT — the foundation of DAX
These are the aggregation functions you will use in almost every Power BI report. They are straightforward — but understanding their exact behaviour, especially COUNTROWS vs COUNT vs DISTINCTCOUNT, prevents calculation errors.
Unlike Excel, DAX functions always reference a table column using the format: TableName[ColumnName]. You will never reference a cell range like A1:A100. This explicit referencing is what makes DAX formulas work correctly across all filter contexts.
Examples
Key Points
- ✓Always use TableName[ColumnName] syntax — never reference ranges
- ✓COUNTROWS counts every row including those with blank values
- ✓COUNT only counts numeric non-blank values — use COUNTA for text columns
- ✓DISTINCTCOUNT is one of the most useful business metrics functions
- ✓MIN/MAX work on dates too — MIN(DateColumn) gives the earliest date
Practice Question
You want to count how many unique customers placed orders. Your Sales table has a CustomerID column where the same customer can appear in multiple rows. Which DAX function should you use?
Related Topics
DAX IntroductionWhat DAX is, how it works, and why it is the most important Power BI skill to masterMeasures vs Calculated ColumnsWhen to use a DAX measure vs a calculated column — a decision that affects performanceCALCULATE — The Most Important DAX FunctionMaster CALCULATE to control filter context and build any business metric in Power BI