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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
I have a variable within a measure that returns a comma separated string, e.g., "No,Yes,Yes,N/A,No"
Using this variable, I'm trying to make the measure display the string 'Yes' if there are only Yes values, 'No' if there are only No values, 'Both' if there are both values, and 'N/A' if there are no values or if it's N/A.
I've tried using both the SUBSTITUTE and the CONTAINSSTRINGEXACT functions but it does not seem to be doing what I was hoping for.
Thank you.
Hi,
Share some data to work with and show the expected result.