10 Essential DAX Functions Every Power BI Beginner Should Know
Learn the ten DAX functions every new Power BI analyst should understand first, with plain-English explanations and practical code examples.
If you are new to Power BI, DAX can feel intimidating because it looks like Excel formulas at first and then quickly turns into something more powerful. The good news is that you do not need to learn every function at once. Most beginners get the biggest early wins by mastering a small core set that helps them count, sum, filter, compare, and return simple logic.
In practice, these are the functions that show up again and again when you build your first dashboards. Learn what each one does, when to use it, and how it behaves inside a report, and you will move much faster.
1. SUM
SUM is usually the first DAX function people learn because it is simple and immediately useful. It adds the values from a numeric column and returns one result.
Total Sales = SUM(Sales[Revenue])
Use SUM when you need a basic measure such as total revenue, total cost, or total quantity. It is a clean starting point because it also helps you understand a core Power BI idea: a measure recalculates based on the filters currently applied in the report.
2. COUNTROWS
Beginners often reach for COUNT, but COUNTROWS is usually more reliable because it counts rows in a table rather than nonblank values in one column.
Total Orders = COUNTROWS(Sales)
This is useful for metrics like total transactions, number of customers in a filtered view, or how many support tickets were created in a period. If you want to count records, start by asking whether you really want rows instead of values in one field.
3. DISTINCTCOUNT
DISTINCTCOUNT counts unique values in a column. That makes it perfect for questions like "How many customers bought this month?" or "How many products did we sell?"
Unique Customers = DISTINCTCOUNT(Sales[CustomerID])
This function is one of the quickest ways to make a report more analytical. Instead of only looking at totals, you can separate volume from reach. A sales total might go up because a few customers purchased more, while the distinct customer count stays flat.
4. DIVIDE
New analysts often write simple math using /, but DIVIDE is safer because it handles divide-by-zero situations gracefully.
Average Order Value = DIVIDE([Total Sales], [Total Orders], 0)
The third argument is the alternate result. In the example above, Power BI returns 0 instead of an error when there are no orders. Use DIVIDE for ratios, percentages, margin calculations, and any KPI that depends on one number being divided by another.
5. CALCULATE
CALCULATE is the most important DAX function to learn because it changes filter context. That sounds technical, but the practical meaning is simple: it lets you answer questions like "total sales for only one category" or "sales only in the current year."
Online Sales =
CALCULATE(
[Total Sales],
Sales[Channel] = "Online"
)
Once you understand CALCULATE, DAX becomes much more useful. It is the engine behind filtered measures, time intelligence, benchmark comparisons, and many advanced patterns. Beginners do not need every detail immediately, but they should know that CALCULATE is what lets measures behave differently under new conditions.
6. IF
IF helps you return one result when a condition is true and another when it is false. It is ideal for basic business rules.
Sales Status =
IF([Total Sales] > 100000, "Above Target", "Below Target")
This is helpful when you want a label, category, or flag in a report. You might use it to classify high-value customers, identify overdue invoices, or create simple warning indicators. Keep your first IF statements straightforward so they remain easy to read.
7. SELECTEDVALUE
SELECTEDVALUE returns the single selected value from a column, and optionally a fallback if users choose multiple values or none at all.
Selected Region =
SELECTEDVALUE(Regions[RegionName], "All Regions")
This function is great for dynamic titles and subtitles. For example, you can display "Sales for West Region" when a user picks West, or "Sales for All Regions" when nothing specific is selected. Small touches like this make dashboards feel much more polished.
8. FILTER
FILTER returns a filtered table based on a condition. It is often used inside CALCULATE when your logic is more complex than a simple column equals value test.
Large Orders Sales =
CALCULATE(
[Total Sales],
FILTER(Sales, Sales[Revenue] > 1000)
)
This example sums only the rows where revenue is greater than 1000. FILTER becomes important when you need row-level logic, date ranges, threshold checks, or multiple conditions. Beginners should use it carefully because it is powerful, but when paired with CALCULATE it unlocks a lot of report questions.
9. SUMX
SUMX is an iterator function. That means it evaluates an expression row by row and then sums the results. This is essential when the value you want does not already exist in a single column.
Line Revenue =
SUMX(
Sales,
Sales[Quantity] * Sales[UnitPrice]
)
If you only used SUM, you would need a prebuilt revenue column. SUMX calculates the revenue for each row first and then adds everything up. This pattern appears all the time in finance, inventory, and operational reporting.
10. RELATED
Data models in Power BI usually contain multiple tables. RELATED lets you bring a value from a related table into the current row context, usually inside a calculated column.
Product Category =
RELATED(Products[Category])
Imagine you have a Sales table linked to a Products table. RELATED allows you to pull the product category into the sales context so you can classify or segment rows more easily. It also reinforces an important lesson: good DAX depends on good relationships.
How to practice these functions the right way
Do not memorize syntax in isolation. Instead, pick one dataset and build a few measures that answer real business questions:
- What are total sales, total orders, and average order value?
- How many unique customers bought this quarter?
- Which sales came from the online channel?
- Which orders exceeded a certain threshold?
That workflow matters because DAX becomes easier when you see how functions combine. For example, DIVIDE often depends on measures built with SUM and COUNTROWS. CALCULATE often wraps measures you already trust. SUMX helps when SUM is not enough.
Final takeaway
A beginner does not need one hundred formulas to become productive in Power BI. They need a reliable starter toolkit. If you understand SUM, COUNTROWS, DISTINCTCOUNT, DIVIDE, CALCULATE, IF, SELECTEDVALUE, FILTER, SUMX, and RELATED, you can already build useful reports and ask much better analytical questions.
The next step is repetition. Build small measures, test them in visuals, slice them by different filters, and pay attention to how the numbers change. That is how DAX starts to make sense.
If you want structured guidance, hands-on exercises, and beginner-friendly Power BI projects, explore the DataLit Power BI Foundations course. It is designed to help you move from first formulas to confident reporting without getting lost in theory.
Keep building practical Power BI skills.
DataLit courses give you guided exercises, real datasets, and project-based practice across dashboards, DAX, modeling, and reporting workflows so you can turn tutorials into job-ready skill.