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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Einomi
Helper V
Helper V

Extract Text before "("

Dear Community

 

I would like a M code to help me identify "(" in my string then extract the text before it

 

For example, I have the following function in Excel

 

=REDUCE(A2,CHAR(SEQUENCE(26,,65,1)),LAMBDA(x,Y,SUBSTITUTE(x,Y,"')))

 

With Power Query I would like the list of all the functions that were used to write it

 

My expected result should be, a list with the follwing records

 

REDUCE

CHAR

SEQUENCE

LAMBDA

SUBSTITUTE

 

Thanks for your time

1 ACCEPTED SOLUTION

Hi @Einomi ,

 

Try the pbix attached if that is what you are looking for.

Hope this helps.

 

mussaenda_0-1663597478072.png

 

View solution in original post

9 REPLIES 9
wdx223_Daniel
Super User
Super User

wdx223_Daniel_0-1663814469063.png

 

Oh I did not see your post @wdx223_Daniel I will give it a try, thanks

You are a genius 🙂

mussaenda
Super User
Super User

hi @Einomi ,

 

Are you able to achieve your requirement?

Hi @mussaenda 

 

I teste with a few formulas, it should work, any issues I'll let you know but for now I will mark this as resolved

 

Thanks for your assistance

Einomi
Helper V
Helper V

any ideas @mussaenda ? 😊

Hi @Einomi ,

 

Try the pbix attached if that is what you are looking for.

Hope this helps.

 

mussaenda_0-1663597478072.png

 

Einomi
Helper V
Helper V

Thanks @Vijay_A_Verma 

 

However, I am not looking for the equivalent in PQ 😊

 

I would like the list of the functions used (obviously the final goal was not the function itself but rather an example)

Vijay_A_Verma
Super User
Super User

Equivalent function in PQ is (Data is your column name here)

= Text.Combine(List.RemoveItems(Text.ToList([Data]),{"A".."Z"}))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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 Kudoed Authors