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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Einomi
Resolver II
Resolver II

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
Resolver II
Resolver II

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
Resolver II
Resolver II

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors