Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi guyz
i have the following values in a column i want to make a calculated column where if there is a bracket then i want the value inside the bracket if there is no bracket then just the normal value
data looks like this
123
456
425
458(548)
856
458
458(586)
any help is appreciated
thanks
Solved! Go to Solution.
Hi @tijuemson
Download this sample PBIX with solution
To do this in a Calculated Column use this code
Column = IF(CONTAINSSTRING('Table'[Data],"("),MID('Table'[Data],FIND("(",'Table'[Data])+1,FIND(")",'Table'[Data])-FIND("(",'Table'[Data])-1),'Table'[Data])
Regards
Phil
Proud to be a Super User!
Hi,
If the number of digits in the bracket are always of 3 digits, then you may use Column By Example in the Query Editor.
Hi @tijuemson
Download this sample PBIX with solution
To do this in a Calculated Column use this code
Column = IF(CONTAINSSTRING('Table'[Data],"("),MID('Table'[Data],FIND("(",'Table'[Data])+1,FIND(")",'Table'[Data])-FIND("(",'Table'[Data])-1),'Table'[Data])
Regards
Phil
Proud to be a Super User!
This is much easier in the query editor where you can use the button on the ribbon Extract button and Text Between Delimiters of ( and )
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 21 | |
| 18 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 53 | |
| 47 | |
| 40 | |
| 38 |