Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello Community - This is a new thread for the same topic. Previously I was trying a different formula, but ultimately I think SWITCH might be better as I have two variable that I need to check (different columns, but same table).
First, I need to check if the Product Code fits a certain criteria. Second, I need to check if the ITEM description contains (anywhere) the text "-1".
This formula below only works if I do not include the IN statements. All I get returned is "NA". Just trying to figure out how to include the IN statment, or some other formula that gets to the result below.
The goal would be to return this result, if the row item met the criteria.
Product Code Item SKU Type
CODE123 AB-23-45-1-X Standard SKUs
Solved! Go to Solution.
@Anonymous ,
Try to use Search or Find DAX:
have you checked your data? i have run this on some test data and your code works fine, maybe your data doesn't support your condition?
see attached
Proud to be a Super User!
@Anonymous ,
Try to use Search or Find DAX:
@Tahreem24 Thanks Tahreem, but I am getting the following error:
The search Text provided to function 'SEARCH' could not be found in the given text
@Anonymous ,
There is a simplied version of DAX. I've created same sample like you and also attached the screen shot below with DAX and expected output.
Hope it may help you.
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.