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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.