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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.