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
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
Anonymous
Not applicable

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