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
In this example I am trying to return true or false in column C based on whether one of the rows in column B contains the string "white" within a larger string for all distinct values within column A.
| A | B | C |
| 123 | redwhitegreen | True |
| 456 | yellowpurple | False |
| 123 | redblue | True |
| 456 | blueblack | False |
| 123 | greenblue | True |
| 456 | redblack | False |
| 789 | whitesilver | True |
Hi @Anonymous ,
Please try:
Measure =
var _a = COUNTROWS(FILTER(ALL('Table'),[A ]=SELECTEDVALUE('Table'[A ])&&CONTAINSSTRING([B],"white")))
return _a>0
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @Anonymous ,
How about this:
Here the code for the measure:
Measure =
IF (
CALCULATE (
CONTAINSSTRING (
MAX ( 'Table'[B] ), "white" ), ALLEXCEPT ('Table', 'Table'[A] )
),
true,
false
)
Let me know, if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
Doesn't look like all distinct values of Column A received a TRUE from my end when they should have.
Hi @Anonymous,
Please could you share the data and the screenshot showing which ones do not receive a true though they should have?
Thanks
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |