Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Compare two columns in different Tables using DAX

I ahve two columns in tweo different tables connected -M to M relationship, and I would like to compare the text from the columns to see which ones match or not. I tried a "solution" given here some time ago, but is not working properly. It doesn't diferentiate between match/no match, giving only one value. Here is the script used: 

Equal value seq =
CALCULATE(
var __MWseq = SELECTEDVALUE(PM_details[sequencedescription])
var __REFseq = SELECTEDVALUE('Reference Table'[Description of Task Sequence])
return
if(__MWseq =  __REFseq, 1, 0),
USERELATIONSHIP(PM_details[idassetpm], Assets_extended[__id])), and the result. What could fix the issue! Many thanks !
Some records match, but the formula doesn't show it.Some records match, but the formula doesn't show it.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

I fixed it! I used a measure instead of calc. column and applied formatting. It works. MATCH-NO MATCH MEASURE.png

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I fixed it! I used a measure instead of calc. column and applied formatting. It works. MATCH-NO MATCH MEASURE.png

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors