Forum Discussion
cspress
8 years agoRegular Visitor
Find text within a column and return simplified version
I'm new to PowerBI but pretty experienced in Excel which is probably a hindrance as much as a help. Something I've done in Excel and would like to replicate in Power BI is to search within the text ...
- 8 years ago
Hi,
Try this calculated column formula.
=LOOKUPVALUE(Item_type_mapping[Type],Item_type_mapping[Item],FIRSTNONBLANK(FILTER(VALUES(Item_type_mapping[item]),SEARCH(Item_type_mapping[Item],'Item'[Item Code],1,0)),1))
Hope this helps.
Ashish_Mathur
Super User
8 years agoHi,
Try this calculated column formula.
=LOOKUPVALUE(Item_type_mapping[Type],Item_type_mapping[Item],FIRSTNONBLANK(FILTER(VALUES(Item_type_mapping[item]),SEARCH(Item_type_mapping[Item],'Item'[Item Code],1,0)),1))
Hope this helps.
cspress
8 years agoRegular Visitor
Thanks both for these answers. Both work really well.
- Ashish_Mathur8 years ago
Super User
You are welcome.