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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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