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! Request now
I have two measures that return country names based on max formulas , some of the returned values contain multiple countries , seperated by a comma. so my current measure i am using is not matching any data which has multiple countries as it would not be an exact match.
Example :
Measure -- Op Country = United States
Measure -- Max Base = Mexcio,United States
so my measure :
Solved! Go to Solution.
Hi , @Pandadev
You can try function CONTAINSSTRING :
Matched Country = IF(CONTAINSSTRING([M_maxbase],[M_op_country]),"Yes","No")
The result will show as below:
By the way ,CONTAINSSTRING is not case-sensitive.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Pandadev Yes, you could use FIND, SEARCH or even SUBSTITUTE
Thanks , could you please show me an example of how one of these formulas would look
Hi , @Pandadev
You can try function CONTAINSSTRING :
Matched Country = IF(CONTAINSSTRING([M_maxbase],[M_op_country]),"Yes","No")
The result will show as below:
By the way ,CONTAINSSTRING is not case-sensitive.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 97 | |
| 76 | |
| 52 | |
| 51 | |
| 46 |