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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have a table that looks like this right now:
Some of the certificates name has short forms while others dont. I want to create a new column in power query which only take the texts in the bracket. For the certificate that does not has any shortform in the brackets, i want it to show the full name in the new column. I have to do it in power query (something that im still learning)
What i want my table to look like is this:
This is the file: https://drive.google.com/drive/folders/1ojdvJSwOLTcF7c_e58bNLjeUo92aQO_O?usp=share_link
Thank you, Appreciate the help I'm getting.
Solved! Go to Solution.
@Anonymous
you can try this
if Text.PositionOf([certificate],"(") <1 then [certificate] else Text.Middle([certificate], Text.PositionOf([certificate],"(") +1,Text.PositionOf([certificate],")") -Text.PositionOf([certificate],"(")-1 )
Proud to be a Super User!
Hi @Anonymous
Try the above formula by changing the "c" on certificate as "C" it works and give you the result that you are looking for.
Re-sharing the command again here with update :
= Table.AddColumn(#"Changed Type", "Custom", each if Text.PositionOf([Certificate],"(") <1 then [Certificate] else Text.Middle([Certificate], Text.PositionOf([Certificate],"(") +1,Text.PositionOf([Certificate],")") -Text.PositionOf([Certificate],"(")-1 ))
@Anonymous
you can try this
if Text.PositionOf([certificate],"(") <1 then [certificate] else Text.Middle([certificate], Text.PositionOf([certificate],"(") +1,Text.PositionOf([certificate],")") -Text.PositionOf([certificate],"(")-1 )
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |