Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I need compare two tables by text columns
Table1[MatchCol] has only unique text
Table2[MatchCol] has dublicates
I need found all MatchCol Ids from Table1 and Table2, to know which Ids from Table1[MatchCol] matches Table2[MatchCol] and wise versa (find difference in Tables)
one to one relations do this tricks but only with both tables unique values, and i got error "The cardinality you selected isnt valid for this relationship
How to do that?
Solved! Go to Solution.
Here is one way without changing the relationship:
Matching =
COUNTROWS(
INTERSECT(VALUES('Table 1'[T1]), VALUES('Table 2'[T2])))No Match in T2 =
SUMX (
VALUES ( 'Table 1'[T1] ),
CALCULATE (
IF (
ISBLANK ( MAX ( 'Table 1'[T1] ) ),
BLANK (),
COUNTROWS ( EXCEPT ( VALUES ( 'Table 1'[T1] ), VALUES ( 'Table 2'[T2] ) ) )
)
)
)
No Match in T1 =
COUNTROWS(EXCEPT(VALUES('Table 2'[T2]), VALUES('Table 1'[T1])))
Proud to be a Super User!
Paul on Linkedin.
Here is one way without changing the relationship:
Matching =
COUNTROWS(
INTERSECT(VALUES('Table 1'[T1]), VALUES('Table 2'[T2])))No Match in T2 =
SUMX (
VALUES ( 'Table 1'[T1] ),
CALCULATE (
IF (
ISBLANK ( MAX ( 'Table 1'[T1] ) ),
BLANK (),
COUNTROWS ( EXCEPT ( VALUES ( 'Table 1'[T1] ), VALUES ( 'Table 2'[T2] ) ) )
)
)
)
No Match in T1 =
COUNTROWS(EXCEPT(VALUES('Table 2'[T2]), VALUES('Table 1'[T1])))
Proud to be a Super User!
Paul on Linkedin.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.