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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.