DAX Function Guide

INTERSECT
Empty image or helper icon

Sam McKay

CEO & Founder

How does the INTERSECT work?
INTERSECT Function (DAX) compares two tables and find common rows. The INTERSECT function outputs a table with similar rows.
INTERSECT Formula Syntax
INTERSECT (<table_expression1>, <table_expression2>)
How do you use the INTERSECT?

It returns the row intersection of two tables, retaining the duplicates.

Related Blog Posts

Loading

Considerations when using the INTERSECT?
  • Intersect is not commutative. That means, Intersect (T1, T2) can have a different result set than Intersect (T2, T1).
  • Duplicate rows are retained. That means, if a row appears in table_expression1 and table_expression2, it and all duplicates in table_expression_1 are included in the result set.
  • The column names will match the column names in table_expression1.
  • Columns are compared based on the positioning, and data comparison with no type coercion.
  • The returned table does not include columns from the tables related to table_expression1.
Related Video Tutorials

Loading

Formula examples using the INTERSECT
= SUMX (INTERSECT (SalesOldData,SalesNewData),[Sales Amount]) 
Related Courses

Loading