
Welcome to the course! In this video, you’ll get a quick tour of what DAX is and what you’ll be able to build by the end.
In this lecture, you will:
Understand what DAX is and why it matters in Power BI
Learn the difference between calculated columns and measures
See the 6 modules of the course and the skills each one covers
Find out how the quizzes, practice exercises and capstone project work
Before the next lecture: Install Power BI Desktop (free) and download the course files, so you can type every formula along with me.
In this lecture, you’ll learn SUMX, the most-used iterator function in DAX. Plain SUM can only add up a single column. SUMX goes through your table row by row, calculates an expression for each row, and then adds up the results.
In this lecture, you will:
Understand how SUMX works and how it differs from SUM
Learn its syntax: SUMX(Table, Expression)
Calculate row-by-row results such as Quantity × Price
Create your first iterator measure and check its result in a Card visual
After this lecture: You’ll be able to write SUMX measures for any calculation that needs to be done row by row before totaling.
MINX, MAXX and AVERAGEX Functions in DAX
In this lecture, you’ll learn three more iterator functions: MINX, MAXX and AVERAGEX. Each one calculates an expression row by row, just like SUMX. The difference is what happens next: MINX returns the lowest result, MAXX the highest, and AVERAGEX the average.
In this lecture, you will:
Understand how MINX, MAXX and AVERAGEX differ from MIN, MAX and AVERAGE
Learn their syntax: MINX(Table, Expression), MAXX(Table, Expression) and AVERAGEX(Table, Expression)
Find the smallest and largest calculated values, such as the cheapest and biggest order (Quantity × Price)
Calculate an average of a row-by-row result, such as the average order value
See how AVERAGEX treats blank values
After this lecture: You’ll be able to find the lowest, highest and average value of any row-by-row calculation, not just of a single column.
In this lecture, you’ll learn COUNTX, which counts the rows in a table where an expression returns a value. It’s useful when you need to count only the rows that have data, not every row.
In this lecture, you will:
Understand how COUNTX differs from COUNT and COUNTROWS
Learn its syntax: COUNTX(Table, Expression)
See why blank values are skipped while zeros are counted
Build a COUNTX measure to count rows with a value, such as orders with a discount
After this lecture: You’ll be able to count rows based on a calculated expression and avoid common mistakes with blanks and zeros.
Time to put SUMX, MINX, MAXX, AVERAGEX and COUNTX into practice on a realistic dataset.
You are a data analyst at a hospital. Using the hospital’s admissions data, you’ll create 5 measures to work out room revenue, the costliest and cheapest stays, the average bill per admission, and how many patients received a concession.
What to do:
Download the two resources attached to this lecture: Hospital_Practice_Data.xlsx and the Practice Exercise – Module 1 PDF.
In Power BI Desktop, go to Get Data → Excel workbook and load the Admissions sheet.
Complete the 5 exercises in the PDF. The last one is a challenge.
Check your answers against the solutions at the end of the PDF.
Tip: Try every exercise yourself before looking at the solutions. Some of the answers will surprise you, especially how COUNTX treats blank values and zeros.
All data in this exercise is fictional and was generated with an AI tool for learning purposes.
In this lecture, you’ll learn AND, which checks whether two conditions are both TRUE. It’s mostly used inside IF when a result depends on more than one rule.
In this lecture, you will:
Learn its syntax: AND(Condition1, Condition2)
Combine AND with IF to label rows that meet two rules at once
Understand that AND accepts only two conditions
Use the && operator to check three or more conditions
After this lecture: You’ll be able to build formulas that return a result only when all your conditions are met.
In this lecture, you’ll learn OR, which checks whether at least one of two conditions is TRUE. It’s useful for flagging rows that match any one of several rules.
In this lecture, you will:
Learn its syntax: OR(Condition1, Condition2)
Combine OR with IF to flag rows that meet either rule
Understand that OR accepts only two conditions
Use the || operator to check three or more conditions
After this lecture: You’ll be able to build formulas that react when any one of your conditions is met.
In this lecture, you’ll learn IF, the most basic decision-making function in DAX. IF checks a condition and returns one value when it’s TRUE and another when it’s FALSE.
In this lecture, you will:
Learn its syntax: IF(Condition, Value_if_True, Value_if_False)
Label rows based on a condition, such as “Large” or “Small” orders
Use IF in both calculated columns and measures
Nest IF functions to check more than one condition
After this lecture: You’ll be able to add simple decision logic to your Power BI reports.
In this lecture, you’ll learn SWITCH, a cleaner alternative to writing many nested IF functions. SWITCH compares a value against a list of options and returns the matching result.
In this lecture, you will:
Learn its syntax: SWITCH(Expression, Value1, Result1, …, Else_Result)
Replace long nested IF formulas with one readable SWITCH
Use SWITCH(TRUE()) to check ranges, such as High, Medium and Low bands
Understand why the order of conditions matters
After this lecture: You’ll be able to write multi-option logic that’s easy to read and maintain.
In this lecture, you’ll learn IFERROR, which catches errors in a formula and replaces them with a value you choose. This keeps your reports clean when the data is messy.
In this lecture, you will:
Learn its syntax: IFERROR(Value, Value_if_Error)
Handle errors such as text that can’t be converted to a number
Return BLANK, 0 or a message instead of an error
Know when to use DIVIDE instead of IFERROR for division
After this lecture: You’ll be able to protect your formulas from errors and keep your visuals working.
In this lecture, you’ll learn CONCATENATE, which joins two text values into one.
In this lecture, you will:
Learn its syntax: CONCATENATE(Text1, Text2)
Combine columns, such as first name and last name, into a full name
Understand that CONCATENATE accepts only two values
Use the & operator to join three or more values
After this lecture: You’ll be able to build full names, labels and keys by combining columns.
In this lecture, you’ll learn three text functions that extract part of a text value. LEFT takes characters from the start, RIGHT takes them from the end, and MID takes them from any position in the middle.
In this lecture, you will:
Learn their syntax: LEFT(Text, Number_of_Characters), RIGHT(Text, Number_of_Characters) and MID(Text, Start_Position, Number_of_Characters)
Extract prefixes and short codes, such as the first 3 letters of a city name
Pull out endings, such as serial numbers or the last digits of an ID
Extract a part from the middle of a code, such as a department or initials
Combine all three to split one code into its separate parts
After this lecture: You’ll be able to extract any part of a text value, whether it’s at the start, the end or in the middle.
In this lecture, you’ll learn FORMAT, which converts numbers and dates into text in the format you choose.
In this lecture, you will:
Learn its syntax: FORMAT(Value, Format_String)
Format numbers with thousands separators, currency and percentages
Show dates as month names, weekday names or custom patterns
Understand that FORMAT returns text, and why that affects sorting
After this lecture: You’ll be able to create readable labels and KPI text for your reports.
In this lecture, you’ll learn two text functions that change the case of text. UPPER converts all letters to capitals, and LOWER converts all letters to lowercase. Both are useful for cleaning up text that was typed inconsistently.
In this lecture, you will:
Learn their syntax: UPPER(Text) and LOWER(Text)
Standardise codes and labels so they always appear in capitals
Clean up text that was typed in mixed case
Combine UPPER with LEFT to create short capital-letter codes
Build values that must be lowercase, such as email addresses or usernames
After this lecture: You’ll be able to keep the text in your data consistent, whatever case it was originally typed in.
In this lecture, you’ll learn the most useful DAX date functions for analysing data over time. Almost every business report looks at time, whether by year, month, quarter or weekday, and these functions make that easy.
In this lecture, you will:
Get the current date and time with TODAY and NOW
Build a date from its parts with DATE
Extract the year, month and day from a date with YEAR, MONTH and DAY
Find the weekday and quarter of a date with WEEKDAY and QUARTER
Calculate the gap between two dates with DATEDIFF
Find the last day of a month with EOMONTH
Show dates as month or weekday names with FORMAT
After this lecture: You’ll be able to break dates into useful parts, calculate time gaps and analyse your data by any period.
In this lecture, you’ll learn two functions that let you use data from connected tables. RELATED brings a single value from the “one” side of a relationship into the “many” side. RELATEDTABLE works the other way, returning all the matching rows from the “many” side.
In this lecture, you will:
Learn their syntax: RELATED(Column) and RELATEDTABLE(Table)
Understand the one-to-many relationship and why the direction matters
Use RELATED to bring a value, such as a product’s price or category, into a fact table
Use RELATEDTABLE with COUNTROWS to count related rows, such as orders per customer
Combine RELATEDTABLE with SUMX to total values from a related table, such as each customer’s total spend
See why RELATED needs a row context, and how SUMX provides one inside a measure
After this lecture: You’ll be able to pull information across connected tables and build calculations that use data from more than one table.
In this lecture, you’ll learn CALCULATE, the most important and powerful function in DAX. CALCULATE evaluates an expression after changing the filter context. That lets you calculate a value for exactly the data you want, whatever filters are already on the report.
In this lecture, you will:
Understand what filter context is and how slicers and visuals filter your data
Learn its syntax: CALCULATE(Expression, Filter1, Filter2, …)
Calculate a measure for one specific group, such as sales for a single category or region
Apply more than one filter at the same time
See how a CALCULATE filter overrides the existing filter on the same column
Build measures you can compare side by side, such as one category’s sales next to total sales
After this lecture: You’ll be able to control which data a measure uses. You’ll also be ready to combine CALCULATE with ALL and ALLEXCEPT in the next lecture.
In this lecture, you’ll learn CALCULATETABLE, the table version of CALCULATE. CALCULATE returns a single value, while CALCULATETABLE returns a whole table after changing the filter context. You can then use that filtered table inside other functions.
In this lecture, you will:
Learn its syntax: CALCULATETABLE(Table, Filter1, Filter2, …)
Understand the difference between CALCULATE and CALCULATETABLE
Return a filtered table, such as only the orders from one region or category
Use CALCULATETABLE inside iterators like SUMX and COUNTROWS to work on a filtered set of rows
Apply more than one filter to the same table
After this lecture: You’ll be able to create filtered tables on the fly and use them to build more flexible measures.
In this lecture, you’ll learn ALL and ALLEXCEPT, two functions that remove filters from your calculations. They’re mostly used inside CALCULATE to compare a value against a bigger total. ALL removes every filter from a table or column. ALLEXCEPT removes all filters except the ones on the columns you choose to keep.
In this lecture, you will:
Learn their syntax: ALL(Table or Column) and ALLEXCEPT(Table, Column1, Column2, …)
Use ALL inside CALCULATE to get a grand total that ignores slicers and visual filters
Build a “% of Total” measure with CALCULATE, ALL and DIVIDE
Use ALLEXCEPT to keep one filter, such as region, while removing the rest
Calculate a share within a group, such as each city’s share of its region’s sales
Understand when to use ALL and when to use ALLEXCEPT
After this lecture: You’ll be able to build percentage-of-total and share-within-group measures that stay correct whatever filters are applied.
Have you built reports in Power BI but got stuck when you needed a calculation the default options couldn’t handle, like profit after discount, each region’s share of total sales, or a customer’s total spend? That’s where DAX comes in. This course teaches you DAX step by step, in simple Hindi, with every formula typed live in Power BI.
You’ll start with the functions used most often in real reports, then move to the most powerful one of all: CALCULATE.
What you’ll learn:
Iterator functions: SUMX, MINX, MAXX, AVERAGEX and COUNTX, for row-by-row calculations
Logical functions: IF, AND, OR, SWITCH and IFERROR, to make decisions and handle errors
Text functions: LEFT, RIGHT, MID, CONCATENATE, FORMAT, UPPER and LOWER, to clean and label data
Date functions: to analyse your data by year, month, quarter and weekday
Relationship functions: RELATED and RELATEDTABLE, to work across connected tables
CALCULATE and filter context: CALCULATE, CALCULATETABLE, ALL and ALLEXCEPT, to build % of total and comparison measures
This isn’t just a video course. Every section includes:
A quiz to check your understanding
A practice exercise on a realistic hospital dataset, with full solutions
Downloadable data files, so you can follow along
At the end, you’ll complete a capstone project. As a data analyst for Zoravi Rides, a cab company in Pune and Mumbai, you’ll turn more than 1,700 rides into a complete Power BI dashboard with real business insights. It’s a project you can add to your portfolio.
Who this course is for:
Power BI users who know the basics and want to write their own DAX
Excel users moving to Power BI
Students and job seekers building data analyst skills
Working professionals who create reports and dashboards
You don’t need any coding experience. All you need is Power BI Desktop (free) and the willingness to practise. Let’s get started!
Note: All datasets in this course are fictional and were generated with the help of an AI tool for learning purposes.