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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

DAX calculated column to extract last word from text string

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 🙂

2 REPLIES 2
Adamtall
Resolver III
Resolver III

Hi,

 

try this formula

 

column =
PATHITEM( SUBSTITUTE( [Subscription Name1]; " "; "|" ) ;3 )
 
Hope it helps 🙂
 
/Adam

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.