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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
alanhodgson
Solution Supplier
Solution Supplier

DAX: Text Functions help

Hey Community,

 

I am struggling today. I have a column with data the looks like "CustomerName (Location)". I want to make a new column off a DAX formula that will pull the location out of the column, Also, I have filtered the data on the page level to a specific company (might need a FILTER statement in my formula). This is my current expression:

 

Location = RIGHT('Query'[Customer Name], LEN('Query'[Customer Name]) - 1)

 

When I try to increase the subtracted amount, I get an error because some of the other non filtered values in the column are smaller. Also, the CustomerName portion has a static length.

Any help is appreciated!

 

Cheers,

 

Alan

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

Why not split the entire column in the Query Editor - Split by (Custom) Delimiter?

 

In the Query Editor you can also Trim and Clean much easier Smiley Happy

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

Why not split the entire column in the Query Editor - Split by (Custom) Delimiter?

 

In the Query Editor you can also Trim and Clean much easier Smiley Happy

Hey @Sean,

 

That worked perfectly, not sure why I didn't think of that.

 

Thanks,

 

Alan

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.