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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors