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
WorkHard_
Frequent Visitor

Formula to extract rows from multiline text that match criteria

In a multiline text column formatted like this:

Record 1 - S
Record 2 - L
Record 3 - XL
Record nth - XXL


How would I extract from this multiline text only rows that contain "XL" so that the result becomes

Record 3 - XL


 

1 ACCEPTED SOLUTION

4 REPLIES 4
Ahmedx
Super User
Super User

and try this code

Screenshot_5.png

Ahmedx
Super User
Super User

I wrote a method in M code and also in DAX

Screenshot_2.pngScreenshot_3.png

Hi @AHM ,

Not quite sure I understand. In my case, the text is in a single multiline row.

It's like this:

WorkHard__0-1704741263192.png


not like this:

WorkHard__1-1704741320364.png

 


The expected result is:

WorkHard__2-1704741475500.png

 



pls try this

Screenshot_2.png

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.