Forum Discussion

cspress's avatar
cspress
Regular Visitor
8 years ago
Solved

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 ...
  • Ashish_Mathur's avatar
    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.