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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.