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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
vandam2
Frequent Visitor

Filter from within Power BI

i have a list of inventory (computer names)

i would like the option to filter the computers starting with M and has total of 7 characters (eg. M234567)

 

is there a way i can do this from advance filtering? or does it have to be in powerquery?

 

pcnames.png

1 ACCEPTED SOLUTION
CoreyP
Solution Sage
Solution Sage

Try creating a calculated column using LEFT and LEN. Something like..

Filter Flag = IF( AND( LEFT( 'Table'[ComputerName] , 1 ) = "M" , LEN( 'Table'[ComputerName] ) = 7 ) , "true" , "false" )

View solution in original post

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @vandam2 ,

 

Has your problem been solved? If the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out. Thanks in advance.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

CoreyP
Solution Sage
Solution Sage

Try creating a calculated column using LEFT and LEN. Something like..

Filter Flag = IF( AND( LEFT( 'Table'[ComputerName] , 1 ) = "M" , LEN( 'Table'[ComputerName] ) = 7 ) , "true" , "false" )

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

Top Solution Authors