??Ask ChatGTP: ?? Provide a summary of common commands used in DAX (Data Analysis Expressions) language with an example
Power BI Dashboard

??Ask ChatGTP: ?? Provide a summary of common commands used in DAX (Data Analysis Expressions) language with an example

Data Analysis Expressions (DAX) is a formula language used in:

Microsoft Power BI

Excel Power Pivot

SQL Server Analysis Services (SSAS)

to perform data analysis and create calculated columns, measures, and custom tables.

DAX functions enable users to perform complex calculations and data manipulations within their data models. Below is a summary of some commonly used DAX functions, along with examples:

WikipediaMicrosoft Learn

DAX REFERENCE:

DAX function reference - DAX | Microsoft Learn

CALCULATE: Evaluates an expression in a modified filter context.

  1. Learn R, Python & Data Science Online+1 Analytics Vidhya+1

CALCULATE

SUM and SUMX: Aggregate functions that sum values.

SUM and SUMX

AVERAGE and AVERAGEX: Calculate the average of values.

AVERAGE and AVERAGEX

COUNT and COUNTROWS: Count the number of non-blank values or rows.

  1. Learn R, Python & Data Science Online

COUNT and COUNTROWS

MIN and MAX: Return the minimum or maximum value in a column.

  1. Medium

MIN and MAX

IF: Performs a logical test and returns different values depending on whether the test evaluates to TRUE or FALSE.

IF:

RELATED: Returns a related value from another table.

RELATED

FILTER: Returns a table that represents a subset of another table or expression.

  1. Learn R, Python & Data Science Online+1Microsoft Learn+1

FILTER

RANKX: Returns the ranking of a number in a list of numbers for each row in the table argument.

RANKX

DISTINCTCOUNT: Counts the number of distinct values in a column.

RELATEDTABLE: Returns a table that is related to the current table through a relationship.

RELATEDTABLE

EARLIER: Returns the current value of a column in an outer evaluation pass of the mentioned column.

EARLIER

FORMAT: Changes the format of a number or date to a string in the specified format.

FORMAT

LOOKUPVALUE: Returns the value in a column for the row that meets all criteria specified by search conditions.

LOOKUPVALUE

USERELATIONSHIP: Specifies an existing relationship to be used in a specific calculation.

USERELATIONSHIP

VALUES: Returns a one-column table that contains the distinct values from the specified column.

VALUES

ISBLANK: Checks whether a value is blank, and returns TRUE or FALSE.

ISBLANK

ISNUMBER: Checks whether a value is a number, and returns TRUE or FALSE.

ISNUMBER

CONCATENATE: Joins two text strings into one text string.

CONCATENATE

DAX REFERENCE:

DAX function reference - DAX | Microsoft Learn




要查看或添加评论,请登录

Raul E Garcia的更多文章

社区洞察