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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Help with DAX formula

Hi,

I have text data in one column (Japanese address in Alphabet), and I need to extract some data from the right.

 

Example:

ColumnA

123-52, ZZZZ, ZZZZZZ City, ZZZZZZ Prefecture, 1234567, JAPAN

 

and what I need to extract is "ZZZZZZ Prefecture, 1234567, JAPAN"

in other words, find the third "," from the right, and extract all the numbers and characters on the right hand side of that.

 

It might be a bit easier to find third comma from the left but I cannot use it since it could be third or fourth from the left depending on the format of the address, but it is always the third from right.

 

Thanks in advance !

 

 

1 ACCEPTED SOLUTION
zlokesh
Resolver I
Resolver I

Hi @Anonymous,

                      Please go through the below Screen shot, will solve your problem.

 

If you find this as solution "Accept as solution" else let me know Thanks.

 

Formula:-              NewColumn = SUBSTITUTE(REPLACE(SplitExample[Column1],1,7,""),",","") 

 

 

Comma ReplacementComma Replacement

View solution in original post

3 REPLIES 3
zlokesh
Resolver I
Resolver I

Hi @Anonymous,

                      Please go through the below Screen shot, will solve your problem.

 

If you find this as solution "Accept as solution" else let me know Thanks.

 

Formula:-              NewColumn = SUBSTITUTE(REPLACE(SplitExample[Column1],1,7,""),",","") 

 

 

Comma ReplacementComma Replacement

Thejeswar
Super User
Super User

There should be some coniditon based on which you are showing after last 2 commas or after last 3 commas. What is that?

Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

How about splitting the Column from Query Editor/Power Query using "Comma" as a delimiter

 

Then you can recombine the last three columns

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors