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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
acortez
New Member

Power Query extract account number from a column with different texts

I need to extract the account numbers only, what formula should I use for custom column?

acortez_0-1740787941762.png

acortez_1-1740787986422.png

 

Thanks!

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

filter by items that contain a dash "-"

View solution in original post

SundarRaj
Super User
Super User

Hi @acortez 
1. You could use a List.Transform function and extract only the Account Numbers. I'll attach an image of the code dor your reference. Thanks!

SundarRaj_0-1740799758049.png

SundarRaj_1-1740799795114.png

 

 

Sundar Rajagopalan

View solution in original post

5 REPLIES 5
v-sgandrathi
Community Support
Community Support

Hi @acortez,

 

hank you @SundarRaj and @lbendlin for your response regarding the issue.

I'm glad that your query was resolved. If the response provided by the community member addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.

 Thank you for your understanding!

Thanks for connecting with the Microsoft Fabric Community Forum.

Hi @acortez,

 

I wanted to follow up on our previous suggestions regarding the issue. We would love to hear back from you to ensure we can assist you further.

If the response has addressed your query, please accept it as a solution and give a ‘Kudos’ so other members can easily find it. Please let us know if there’s anything else we can do to help.

Thanks for using Microsoft Fabric Community Forum.

Hi @acortez,

 

I wanted to follow up on the previous suggestions regarding the issue. We would love to hear back from you to ensure we can assist you further.

If my response has addressed your query, please accept it as a solution and give a Kudos so other members can easily find it. Please let us know if there’s anything else we can do to help.

Thank You for choosing Microsoft Community Forum.

SundarRaj
Super User
Super User

Hi @acortez 
1. You could use a List.Transform function and extract only the Account Numbers. I'll attach an image of the code dor your reference. Thanks!

SundarRaj_0-1740799758049.png

SundarRaj_1-1740799795114.png

 

 

Sundar Rajagopalan
lbendlin
Super User
Super User

filter by items that contain a dash "-"

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.