Power BI DAX

Learn how to write powerful DAX formulas to build advanced calculations in Power BI. Master measures, calculated columns, filter context, row context, time intelligence, and optimization techniques to create dynamic and high-performance analytical reports.

🔍
No topics found matching your search.

📊 DAX Basics and Syntax

Comments within DAX

Learn how to write comments inside DAX code to improve readability and documentation in Power BI.

Variables in DAX

Understand how to use VAR and RETURN to simplify complex DAX calculations in Power BI.

Row and Filter Context

Learn how row context and filter context influence calculations in DAX expressions.

Context Transition in DAX

Understand how CALCULATE triggers context transition in DAX calculations.

Calculated Columns in Power BI

Create calculated columns using DAX formulas to derive new values from existing data.

DAX Query View in Power BI

Explore and test DAX queries using the DAX Query View interface in Power BI.

&& Logical Operator in DAX

Use the logical AND operator to evaluate multiple conditions within DAX expressions.

IN DAX Operator in Power BI

Filter data efficiently using the IN operator with multiple values.

Text Concatenation DAX Operator (&) in Power BI

Combine multiple text values together using the concatenation operator.

OR DAX (||) Operator in Power BI

Evaluate multiple logical conditions using the OR operator in DAX.

Comparison DAX Operator in Power BI

Compare values using operators like =, >, <,>=, and <= in DAX formulas.

Measures in Power BI

Create dynamic calculations that respond to filters and slicers in reports.

Calculated Tables in Power BI

Generate new tables using DAX expressions for advanced modeling scenarios.

🔤 Text Functions

SEARCH DAX Function

Learn how the SEARCH function locates text within another text string in Power BI DAX.

FIND DAX Function

Understand how FIND searches for text with case sensitivity in DAX.

LEFT DAX Function

Extract characters from the beginning of a text string using LEFT.

RIGHT DAX Function

Return characters from the end of a text string in Power BI.

LOWER DAX Function

Convert text values into lowercase format.

UPPER DAX Function

Transform text values into uppercase letters.

TRIM DAX Function

Remove extra spaces from text except single spaces between words.

LEN DAX Function

Calculate the total number of characters in a string.

VALUE DAX Function

Convert text representations of numbers into numeric values.

CONTAINSSTRING DAX Function

Check whether a string contains a specific substring.

CONCATENATE DAX Function

Join two text strings together in Power BI.

SUBSTITUTE DAX Function

Replace specific text within a string with new text.

REPLACE DAX Function

Replace characters in a string based on their position.

MID DAX Function

Extract characters from the middle of a text string.

EXACT DAX Function

Compare two text values and check if they are exactly the same.

REPT DAX Function

Repeat text multiple times using the REPT function.

CONCATENATEX DAX Function

Concatenate values across rows using expressions.

COMBINEVALUES DAX Function

Combine multiple column values into a single string.

📅 Date and Time Functions

TODAY DAX Function

Return the current date in Power BI using the TODAY function.

NOW DAX Function

Retrieve the current date and time in Power BI.

NEXTDAY DAX Function

Return the next day relative to a given date context.

NEXTMONTH DAX Function

Return the first date of the next month in the current context.

NEXTQUARTER DAX Function

Calculate the next quarter based on the selected date context.

NEXTYEAR DAX Function

Return dates from the next year based on the current filter context.

DATESINPERIOD DAX Function

Return a set of dates within a specified period.

ENDOFMONTH DAX Function

Return the last date of the month in the current context.

ENDOFQUARTER DAX Function

Return the last date of the current quarter.

ENDOFYEAR DAX Function

Return the last date of the year in the current context.

EOMONTH DAX Function

Return the last day of a month relative to a start date.

QUARTER DAX Function

Extract the quarter number from a date.

SAMEPERIODLASTYEAR DAX Function

Return dates from the same period in the previous year.

PARALLELPERIOD DAX Function

Return dates shifted by months, quarters, or years.

WEEKDAY DAX Function

Return the weekday number for a given date.

DATEADD DAX Function

Shift dates forward or backward in time.

PREVIOUSDAY DAX Function

Return the previous day relative to the current filter context.

PREVIOUSMONTH DAX Function

Return dates from the previous month.

PREVIOUSQUARTER DAX Function

Return the dates from the previous quarter.

PREVIOUSYEAR DAX Function

Return the dates from the previous year in the current context.

DATESBETWEEN DAX Function

Return dates between a start date and end date.

DAY DAX Function

Extract the day number from a date value.

MONTH DAX Function

Return the month number from a date.

YEAR DAX Function

Extract the year from a date value.

CALENDAR DAX Function

Create a calendar table using a start date and end date.

STARTOFMONTH DAX Function

Return the first date of the month in the current context.

STARTOFQUARTER DAX Function

Return the first date of the current quarter.

STARTOFYEAR DAX Function

Return the first date of the current year.

NETWORKDAYS DAX Function

Calculate working days between two dates excluding weekends.

OPENINGBALANCEMONTH DAX Function

Return the opening balance for the first date of the month.

OPENINGBALANCEQUARTER DAX Function

Return the opening balance for the quarter.

OPENINGBALANCEYEAR DAX Function

Return the opening balance for the year.

CLOSINGBALANCEMONTH DAX Function

Return the closing balance value for the last date of the month.

CLOSINGBALANCEQUARTER DAX Function

Calculate the closing balance for the last date of a quarter.

CLOSINGBALANCEYEAR DAX Function

Return the closing balance value for the last date of the year.

DATE DAX Function

Create a date value using year, month, and day parameters.

EDATE DAX Function

Return a date shifted by a specified number of months.

DATESMTD DAX Function

Return a table of dates for the month-to-date period.

DATESQTD DAX Function

Return dates from the beginning of the quarter to the current date.

DATESYTD DAX Function

Return dates from the beginning of the year to the current context date.

TOTALMTD DAX Function

Calculate month-to-date totals for a given expression.

TOTALQTD DAX Function

Calculate quarter-to-date totals using DAX expressions.

TOTALYTD DAX Function

Calculate year-to-date totals for a specified expression.

FIRSTDATE DAX Function

Return the first date from the current filter context.

LASTDATE DAX Function

Return the last available date in the current filter context.

TIME DAX Function

Create a time value using hour, minute, and second parameters.

SECOND DAX Function

Extract the seconds component from a time value.

MINUTE DAX Function

Extract the minute component from a time value.

HOUR DAX Function

Return the hour component from a given time value.

DATEVALUE DAX Function

Convert a text string into a valid date value.

DATEDIFF DAX Function

Calculate the difference between two dates in specific intervals.

TIMEVALUE DAX Function

Convert a text string into a valid time value.

WEEKNUM DAX Function

Return the week number of a given date within the year.

CALENDARAUTO DAX Function

Automatically generate a calendar table based on model dates.

🧩 Miscellaneous DAX Functions

ISFILTERED DAX Function in Power BI

Learn how the ISFILTERED function detects whether a column is filtered in a report.

ISCROSSFILTERED DAX Function in Power BI

Understand how ISCROSSFILTERED detects filters applied through relationships.

SUMMARIZECOLUMNS DAX Function

Aggregate and group data efficiently using SUMMARIZECOLUMNS.

COUNT DAX Function

Count numeric values within a column using the COUNT function.

COUNTA DAX Function

Count all non-empty values in a column using COUNTA.

DISTINCTCOUNT DAX Function

Count unique values in a column using DISTINCTCOUNT.

HASONEVALUE DAX Function

Check whether a column contains exactly one distinct value in the current context.

SELECTEDVALUE DAX Function

Return the selected value when a single value exists in the filter context.

CONTAINS DAX Function

Check whether specific values exist in a table.

ISEVEN DAX Function

Determine whether a numeric value is even.

ISODD DAX Function

Check whether a number is odd using ISODD.

FORMAT DAX Function

Convert numeric or date values into formatted text.

ISINSCOPE DAX Function

Determine whether a column is currently visible in the evaluation scope.

DISTINCTCOUNTNOBLANK DAX Function

Count distinct values while ignoring blank values.

COUNTBLANK DAX Function

Count blank cells in a column using COUNTBLANK.

EARLIER DAX Function

Reference earlier row context when performing nested calculations.

RANDBETWEEN DAX Function

Generate random numbers within a specified range.

ISERROR DAX Function

Detect whether an expression returns an error.

CONTAINSROW DAX Function

Check whether a row with specific values exists in a table.

GROUPBY DAX Function

Group rows and perform aggregations in DAX queries.

FIXED DAX Function

Format numbers with a fixed decimal representation.

IFERROR DAX Function

Return an alternative value when an expression results in an error.