Forum Discussion
comparing text values in two columns in current row
I can reference the current row value in columns [Col1] to [Col2] in a column calculation, such as
[CalcCol] = [Col1] = [Col2]
[CalcCol] = [Col1] > [Col2]
It works for text too, but how can I perform such a simple parsing function such as:
[CalcCol] = find( [Col1] , [Col2] )
Seems like nothing simple is available..?
4 Replies
- Weav8060Frequent Visitor
thank you jppv20, CONTAINSSTRING() is the one, allowing references to current value in MORE THAN ONE column. Neither FIND() nor SEARCH() allow this, nor does their documentation spell this out unequivocally. I also note CONTAINSSTRING() is not included in this list Text functions (DAX) - DAX | Microsoft Docs . I am still puzzled at DAX documentation... 🙂
- AnonymousNot applicable
Hi Weav8060
How do you compare two text column?
Is your logic that
[Col1] = [Col2] then [CalcCol] = [Col1] = [Col2]
[Col1] contain [Col2] and [Col2] is less than [Col1] then [CalcCol] = [Col1] ?
I think you can share a sample and show me a screenshot with the result you want.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickl