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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello Power BI Community,
I have a question regarding extracting certain words out from text.
Please find below as the dummy data created.
From this dummy data, I would like to do 3 things.
The final output that I desire is the screenshot above.
There is no consistancy in the texts, but is there a way to achieve my goal?
Many thanks,
H
Solved! Go to Solution.
Hi @hidenseek9,
Please create calculatec column using the formulas below.
Type =
IF (
IFERROR ( SEARCH ( "Greek", Sheet1[Name] ), 0 ) = 0,
BLANK (),
RIGHT (
LEFT ( Sheet1[Name], IFERROR ( SEARCH ( "Greek", Sheet1[Name] ) + 4, 0 ) ),
5
)
)
Pot =
IF (
IFERROR ( SEARCH ( "1P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "3P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "4P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "6P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "8P", Sheet1[Name] ), 0 )
= 0,
BLANK (),
RIGHT (
LEFT (
Sheet1[Name],
IFERROR ( SEARCH ( "1P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "3P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "4P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "6P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "8P", Sheet1[Name] ), 0 )
+ 1
),
2
)
)
Costco =
IF ( IFERROR ( SEARCH ( "CO_", Sheet1[Name] ), 0 ) = 0, BLANK (), "Costco" )
Please see expected result as follows, you can download attachment file for more details.
Best Regards,
Angelia
Hi @hidenseek9,
Please create calculatec column using the formulas below.
Type =
IF (
IFERROR ( SEARCH ( "Greek", Sheet1[Name] ), 0 ) = 0,
BLANK (),
RIGHT (
LEFT ( Sheet1[Name], IFERROR ( SEARCH ( "Greek", Sheet1[Name] ) + 4, 0 ) ),
5
)
)
Pot =
IF (
IFERROR ( SEARCH ( "1P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "3P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "4P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "6P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "8P", Sheet1[Name] ), 0 )
= 0,
BLANK (),
RIGHT (
LEFT (
Sheet1[Name],
IFERROR ( SEARCH ( "1P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "3P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "4P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "6P", Sheet1[Name] ), 0 )
+ IFERROR ( SEARCH ( "8P", Sheet1[Name] ), 0 )
+ 1
),
2
)
)
Costco =
IF ( IFERROR ( SEARCH ( "CO_", Sheet1[Name] ), 0 ) = 0, BLANK (), "Costco" )
Please see expected result as follows, you can download attachment file for more details.
Best Regards,
Angelia
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 101 | |
| 76 | |
| 56 | |
| 51 | |
| 46 |