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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have 2 columns within the same table and I trying to find a DAX function that uses the value of 1 column to search the other to see if it contains the 1st as an exact match.
Column 1 contains a list of fitting numbers.
Column 2 contains a description of the fitting and in some cases the fitting number as well.
Any help would be appreciated.
Solved! Go to Solution.
Hi @_Kelz0484
Please try this m code:
let a = List.Contains(Text.Split([Description]," "),[Fitting No])
in if a = true then "Exact Match" else "Mismatch"
You can add a custom column in power query:
Then paste the code in it:
The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @_Kelz0484
Please try this m code:
let a = List.Contains(Text.Split([Description]," "),[Fitting No])
in if a = true then "Exact Match" else "Mismatch"
You can add a custom column in power query:
Then paste the code in it:
The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@_Kelz0484 Can you provide some sample data posted as text to test with?
Hi @_Kelz0484
Would a column llike this help?
Result =
IF(
LEN( [Fitting No] ) = 0,
"Mismatch",
IF(
CONTAINSSTRINGEXACT(
[Description],
[Fitting No]
),
"Exact Match",
"Mismatch"
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |