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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Calculated Dax column to extract last word in text string from another column

I have a column called [Subscription Name] with three words in it and I want a new column with just the last word in it. 

See my vision below.

I want to do this as a Dax calculated column because in Query Editor it takes forever to load and apply my dataset because it's huge. 

 

Subscription Name1Subscription Name2
Company International DevelopmentDevelopment
Org Global ProductionProduction
Company European OperationsOperations

 

I've found a few threads with similar queries but none just for extracting the last word. 

Any help would be really appreciated 🙂

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey,

Besides the fact that it would be way better to do this using the query editor here is a DAX statement for a calculated column.

 

Derived Column = 
VAR firstspace = FIND(" ";'Table'[Subscription Name1];1)
VAR secondspace = FIND(" ";'Table'[Subscription Name1];firstspace+1)
VAR lenght = LEN('Table'[Subscription Name1])
RETURN
MID('Table'[Subscription Name1];secondspace + 1;lenght - secondspace +1)


Btw, if this post helps please consider marking it as a solution AND copying it to the other topic as there are by accident two copies of this question.

 

View solution in original post

2 REPLIES 2
sagar_ap
Regular Visitor

If you try using column from examples, it will find the formula for you immediately.

Anonymous
Not applicable

Hey,

Besides the fact that it would be way better to do this using the query editor here is a DAX statement for a calculated column.

 

Derived Column = 
VAR firstspace = FIND(" ";'Table'[Subscription Name1];1)
VAR secondspace = FIND(" ";'Table'[Subscription Name1];firstspace+1)
VAR lenght = LEN('Table'[Subscription Name1])
RETURN
MID('Table'[Subscription Name1];secondspace + 1;lenght - secondspace +1)


Btw, if this post helps please consider marking it as a solution AND copying it to the other topic as there are by accident two copies of this question.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.