top of page
Writer's pictureHari Prasad

Here's a list of DAX (Data Analysis Expressions) queries categorized from beginner to advanced level

Updated: Oct 4, 2023


Here's a list of DAX (Data Analysis Expressions) queries categorized from beginner to advanced level


Beginner Level:

  1. SUMX: Calculates a sum over a table or expression.

  2. CALCULATE: Modifies the filter context of a calculation.

  3. FILTER: Returns a table that contains only the rows that meet a specified condition.

  4. RELATED: Retrieves a value from another table that is related through a common column.

  5. COUNTROWS: Counts the number of rows in a table or table expression.

Intermediate Level:


  1. AVERAGEX: Calculates an average over a table or expression.

  2. ALL: Removes filters from a table or column.

  3. DIVIDE: Performs division, handling potential division by zero errors.

  4. EARLIER: Returns a column value from a previous row context.

  5. RANKX: Assigns a rank to each row in a table based on a specified expression.

Advanced Level:


  1. TOPN: Returns the top N rows of a table based on a ranking expression.

  2. CROSSFILTER: Controls the direction of filters between related tables.

  3. TREATAS: Applies one or more disconnected tables as if they were related to the current context.

  4. UNION: Combines two or more tables into a single table, including duplicates.

  5. LOOKUPVALUE: Returns a single value from another table based on a search condition.

Expert Level:


  1. SUMMARIZE: Creates a summary table based on grouping and aggregation expressions.

  2. VAR: Defines a variable in a DAX expression to store intermediate results.

  3. GENERATE: Creates a table based on iterating over a table and evaluating an expression.

  4. ROLLUP: Calculates an aggregated value across multiple levels of a hierarchy.

  5. DAX Studio: An external tool for DAX that allows advanced analysis and performance optimization.

58 views0 comments

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page