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
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
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.

Top Solution Authors