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.
Hi, I am working on PowerQuery.
May I ask how I could extract the data from ( ) only if there is a ( )
| Example | Desired result |
| Tom | Tom |
| 1(Peter) | Peter |
| David | David |
| Oscar | Oscar |
| 2(Alex) | Alex |
Many thanks!
Solved! Go to Solution.
Hi, @Anonymous
Please try the following methods. Use Split Column twice in Power query. first split with "(" and second split with ")".
The results are shown in the figure.
Then add a custom column.
if[Example.2.1]<>null then [Example.2.1] else [Example.1]
You will get the results you expect.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Please try the following methods. Use Split Column twice in Power query. first split with "(" and second split with ")".
The results are shown in the figure.
Then add a custom column.
if[Example.2.1]<>null then [Example.2.1] else [Example.1]
You will get the results you expect.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try the "column from example" feature, it's pretty good at figuring things out:
https://docs.microsoft.com/en-us/power-query/column-from-example
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.