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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi - I was looking if this is possible in power bi .
above is a sample excel file that shows the result ( formula) - Looking similar solution in PB
Thanks
Solved! Go to Solution.
Hi @Aknas
If you want a column try this
Flag = IF(CONTAINSSTRING([Full],[Partial]),"Yes","No")
If you want a measure, try this
Flag Measure = IF(CONTAINSSTRING(SELECTEDVALUE('DataTable'[Full]),SELECTEDVALUE('DataTable'[Partial])),"Yes","No")
If you are happy with a Boolean result for the flag, rather than text, you can just use, e.g.
CONTAINSSTRING(SELECTEDVALUE('DataTable'[Full]),SELECTEDVALUE('DataTable'[Partial]))
and it returns True or False, no need for the IF to return "yes" or "no". This works for both the column and measure.
Regards
Phil
Proud to be a Super User!
Hi @Aknas
If you want a column try this
Flag = IF(CONTAINSSTRING([Full],[Partial]),"Yes","No")
If you want a measure, try this
Flag Measure = IF(CONTAINSSTRING(SELECTEDVALUE('DataTable'[Full]),SELECTEDVALUE('DataTable'[Partial])),"Yes","No")
If you are happy with a Boolean result for the flag, rather than text, you can just use, e.g.
CONTAINSSTRING(SELECTEDVALUE('DataTable'[Full]),SELECTEDVALUE('DataTable'[Partial]))
and it returns True or False, no need for the IF to return "yes" or "no". This works for both the column and measure.
Regards
Phil
Proud to be a Super User!
Thanks Philip - All worked.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 46 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 176 | |
| 131 | |
| 118 | |
| 82 | |
| 54 |