Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kangkopi15
Helper I
Helper I

New simplify new column from another column

Dear Experts, I need your help again, I have this table called Grade with all the details, and I want to create a new column called Grade Final with general details, by referring to the previous column.
How can I do this in DAX, essentially I want to generalize the Grade number in the Grade Final column

GradeGrade Final
Senior Manager (3.3)Grade 3
Manager (3.1 - 3.2)Grade 3
Senior Associate (2.1)Grade 2
Director (4)Grade 4
Program Manager (2.3)Grade 2
Deputy Program Manager (2.1)Grade 2
  



1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @kangkopi15 

 

Your example data is different to your actual data in that the actual data has some grades that do not contain ().

 

try this instead

 

Grade Final = 

VAR _Bracket = SEARCH("(", [Grade], ,0)

RETURN

IF (_Bracket > 0 , "Grade " & MID([Grade], _Bracket +1,1), "Grade " & MID([Grade], LEN([Grade]),1))

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

4 REPLIES 4
PhilipTreacy
Super User
Super User

Hi @kangkopi15 

 

Your example data is different to your actual data in that the actual data has some grades that do not contain ().

 

try this instead

 

Grade Final = 

VAR _Bracket = SEARCH("(", [Grade], ,0)

RETURN

IF (_Bracket > 0 , "Grade " & MID([Grade], _Bracket +1,1), "Grade " & MID([Grade], LEN([Grade]),1))

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


This is working, thank you @PhilipTreacy 

PhilipTreacy
Super User
Super User

Hi @kangkopi15 

 

Create the new column with this

 

Grade Final = "Grade " & MID([Grade], FIND("(", [Grade])+1,1)

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi @PhilipTreacy I tried to use the formula in the actual table, but unfortunately it doesn't work

kangkopi15_0-1711095968042.png

I suppose to have Band 3, Band 3, Band 2 and so on under Band column

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.