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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Gugan_BI
Frequent Visitor

Remove item from list starting with underscore

Hi, 

 

 Is there any options to remove items from a list which starts with underscore.

_1,_2,_3 should be removed. It can have any number of items starting with underscore

 

List

A

B

_1

_2

_3

 

Tried List.removematchingitems that remove only exact match.

 

 Thank you

1 ACCEPTED SOLUTION
Jakinta
Solution Sage
Solution Sage

= List.Select(YourList, each not Text.StartsWith(_,"_"))

View solution in original post

2 REPLIES 2
Gugan_BI
Frequent Visitor

Thank you. It works.

Jakinta
Solution Sage
Solution Sage

= List.Select(YourList, each not Text.StartsWith(_,"_"))

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.